Skip to content

Commit c6ad8d0

Browse files
committed
Use ephemeral Github token for release automation
1 parent 16fac3a commit c6ad8d0

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,20 @@ permissions:
1111
jobs:
1212
release-please:
1313
runs-on: ubuntu-latest
14+
permissions:
15+
id-token: write
1416
steps:
17+
- name: Fetch ephemeral Github token
18+
id: fetch-token
19+
uses: elastic/ci-gh-actions/fetch-github-token@8a7604dfdd4e7fe21f969bfe9ff96e17635ea577 # v1.0.0
20+
with:
21+
vault-instance: "ci-prod"
1522
- uses: googleapis/release-please-action@v4
1623
id: release
1724
with:
1825
release-type: node
1926
package-name: "@elastic/cli"
20-
token: ${{ secrets.RELEASE_PLEASE }}
27+
token: ${{ steps.fetch-token.outputs.token }}
2128

2229
publish:
2330
needs: release-please

0 commit comments

Comments
 (0)