Skip to content

Commit f69f960

Browse files
authored
chore: switch to gh apps user (#23)
Signed-off-by: Michele Dolfi <[email protected]>
1 parent 8b7d0d6 commit f69f960

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/cd.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,19 @@ jobs:
3636
runs-on: ubuntu-latest
3737
concurrency: release
3838
steps:
39+
- uses: actions/create-github-app-token@v1
40+
id: app-token
41+
with:
42+
app-id: ${{ vars.CI_APP_ID }}
43+
private-key: ${{ secrets.CI_PRIVATE_KEY }}
3944
- uses: actions/checkout@v4
4045
with:
41-
token: ${{ secrets.GH_PAT }}
46+
token: ${{ steps.app-token.outputs.token }}
4247
fetch-depth: 0 # for fetching tags, required for semantic-release
4348
- uses: ./.github/actions/setup-poetry
4449
- name: Run release script
4550
env:
46-
GH_TOKEN: ${{ secrets.GH_PAT }}
51+
GH_TOKEN: ${{ steps.app-token.outputs.token }}
4752
TARGET_VERSION: ${{ needs.pre-release-check.outputs.TARGET_TAG_V }}
4853
CHGLOG_FILE: CHANGELOG.md
4954
run: ./.github/scripts/release.sh

0 commit comments

Comments
 (0)