Skip to content

Commit 315cb37

Browse files
author
Zvi Fried
committed
feat: configure semantic release with GitHub App token for branch protection bypass
- Add GitHub App token generation using tibdex/github-app-token@v2 - Use app token for checkout and semantic release operations - Enables semantic release to bypass branch protection rules - App ID: 1870077 configured in repository secrets - Maintains security while allowing automated releases
1 parent 3b76dc0 commit 315cb37

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/semantic-release.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,18 @@ jobs:
2121
id-token: write
2222

2323
steps:
24+
- name: Generate GitHub App Token
25+
id: generate_token
26+
uses: tibdex/github-app-token@v2
27+
with:
28+
app_id: ${{ secrets.APP_ID }}
29+
private_key: ${{ secrets.APP_PRIVATE_KEY }}
30+
2431
- name: Checkout code
2532
uses: actions/checkout@v5
2633
with:
2734
fetch-depth: 0
28-
token: ${{ secrets.GITHUB_TOKEN }}
35+
token: ${{ steps.generate_token.outputs.token }}
2936

3037
- name: Install uv
3138
uses: astral-sh/setup-uv@v6
@@ -49,7 +56,7 @@ jobs:
4956
5057
- name: Run semantic-release
5158
env:
52-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
5360
PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
5461
run: |
5562
npx semantic-release

0 commit comments

Comments
 (0)