Skip to content

Commit 803e798

Browse files
committed
ci: use GitHub App token for release-please
1 parent 9e3c027 commit 803e798

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/release-please.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,23 @@ on:
55
branches:
66
- main
77

8-
permissions:
9-
contents: write
10-
pull-requests: write
11-
128
jobs:
139
release-please:
1410
runs-on: ubuntu-latest
1511
outputs:
1612
release_created: ${{ steps.release.outputs.release_created }}
1713
tag_name: ${{ steps.release.outputs.tag_name }}
1814
steps:
15+
- name: Generate GitHub App Token
16+
id: app-token
17+
uses: actions/create-github-app-token@v1
18+
with:
19+
app-id: ${{ secrets.RELEASE_BOT_APP_ID }}
20+
private-key: ${{ secrets.RELEASE_BOT_PRIVATE_KEY }}
21+
1922
- uses: googleapis/release-please-action@v4
2023
id: release
2124
with:
22-
token: ${{ secrets.GITHUB_TOKEN }}
25+
token: ${{ steps.app-token.outputs.token }}
2326
config-file: release-please-config.json
2427
manifest-file: .release-please-manifest.json

0 commit comments

Comments
 (0)