Skip to content

Commit 0e16d2f

Browse files
committed
fix: try github apps instead of token
1 parent a42ff19 commit 0e16d2f

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,18 @@ jobs:
1919
dist_artifacts_dir: dist
2020
lock_file_artifact: uv.lock
2121
steps:
22+
- name: Create GitHub App Token
23+
uses: actions/create-github-app-token@v2
24+
id: app-token
25+
with:
26+
app-id: ${{ secrets.APP_ID }}
27+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
28+
2229
- name: Check out repository
2330
uses: actions/checkout@v5
2431
with:
2532
ref: ${{ github.ref }}
26-
token: ${{ secrets.GITHUB_TOKEN }}
33+
token: ${{ steps.app-token.outputs.token }}
2734
fetch-depth: 0
2835

2936
- name: Configure Git user
@@ -49,7 +56,7 @@ jobs:
4956
id: release
5057
uses: python-semantic-release/python-semantic-release@v10.4.1
5158
with:
52-
github_token: ${{ secrets.GITHUB_TOKEN }}
59+
github_token: ${{ steps.app-token.outputs.token }}
5360
git_committer_name: "github-actions"
5461
git_committer_email: "actions@users.noreply.github.com"
5562
changelog: true
@@ -59,7 +66,7 @@ jobs:
5966
uses: python-semantic-release/publish-action@v10.4.1
6067
if: steps.release.outputs.released == 'true'
6168
with:
62-
github_token: ${{ secrets.GITHUB_TOKEN }}
69+
github_token: ${{ steps.app-token.outputs.token }}
6370
tag: ${{ steps.release.outputs.tag }}
6471

6572
- name: Upload | Distribution Artifacts

0 commit comments

Comments
 (0)