Skip to content

Commit a343c38

Browse files
authored
ci: use app token to start the release process (#46)
We removed the PAT in favor of an temporary access token generated via app.
1 parent ec7c313 commit a343c38

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,20 @@ on:
1010
jobs:
1111
release:
1212
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
15+
pull-requests: write
1316
steps:
17+
- uses: actions/create-github-app-token@e995b4e40ace2eb5bf13137d9abe242c98f3aab6 # v1
18+
id: app-token
19+
with:
20+
app-id: ${{ vars.GET_TOKEN_APP_ID }}
21+
private-key: ${{ secrets.GET_TOKEN_APP_PRIVATE_KEY }}
22+
# bootstrap-sha and release-as needs to be removed after first release
1423
- name: Release
15-
# yamllint disable-line rule:comments
16-
uses: google-github-actions/release-please-action@d3c71f9a0a55385580de793de58da057b3560862 # v3.7.4
24+
# yamllint disable-line rule:line-length
25+
uses: google-github-actions/release-please-action@1ddb669c677d585663a83fc535edc428954c4aeb # ratchet:google-github-actions/release-please-action@v3
1726
with:
18-
# to create protected tags
19-
token: ${{ secrets.RELEASE_PLEASE_GITHUB_TOKEN }}
20-
release-type: simple
21-
signoff: "Matthias Kay <[email protected]>"
27+
release-type: python
28+
token: ${{ steps.app-token.outputs.token }}
29+
pull-request-header: ''

0 commit comments

Comments
 (0)