Skip to content

Commit 905e78c

Browse files
chore: release-please uses gh app to authenticate (#1164)
1 parent 1b6e0d9 commit 905e78c

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

‎.github/workflows/release.yaml‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
1313
release:
1414
name: Release
1515
runs-on: ubuntu-latest
16+
outputs:
17+
release_created: ${{ steps.semantic-release.outputs.release_created }}
18+
tag_name: ${{ steps.semantic-release.outputs.tag_name }}
1619
steps:
1720
- name: Checkout
1821
uses: actions/checkout@v4
@@ -24,19 +27,26 @@ jobs:
2427
with:
2528
go-version: "1.26"
2629

30+
- name: Generate GitHub App token
31+
id: app-token
32+
uses: actions/create-github-app-token@v2
33+
with:
34+
app-id: ${{ secrets.RELEASE_APP_ID }}
35+
private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
36+
2737
- name: Release
2838
id: semantic-release
2939
uses: googleapis/release-please-action@v4
3040
with:
3141
release-type: simple
32-
token: ${{ secrets.GH_TOKEN }}
42+
token: ${{ steps.app-token.outputs.token }}
3343

3444
- name: Tag Images
3545
if: ${{ steps.semantic-release.outputs.release_created }}
3646
run: |
3747
VERSION=${{ steps.semantic-release.outputs.tag_name }}
3848
env:
39-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
49+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
4050

4151
build-app:
4252
name: Build API App

0 commit comments

Comments
 (0)