Skip to content

Commit 3a7e5f5

Browse files
authored
ci: use GitHub App token for release (#76)
## Summary - generate a GitHub App token in the release workflow - pass the generated token to `oxc-project/release-plz` instead of `secrets.ROLLDOWN_BOT_PAT` ## Verification - `rg --hidden -n "ROLLDOWN_BOT_PAT" /Users/boshen/github/rolldown --glob '!**/.git/**' --glob '!**/node_modules/**' --glob '!**/target/**' --glob '!benchmark-results-storage/**'` - `git diff --check -- .github/workflows/release.yml` - YAML parse sanity check
1 parent 23bdd22 commit 3a7e5f5

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ jobs:
1616
contents: write
1717
id-token: write
1818
steps:
19+
- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
20+
id: app-token
21+
with:
22+
client-id: ${{ secrets.APP_ID }}
23+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
24+
1925
- uses: oxc-project/release-plz@44b98e8dda1a7783d4ec2ef66e2f37a3e8c1c759 # v1.0.4
2026
with:
21-
PAT: ${{ secrets.ROLLDOWN_BOT_PAT }}
27+
PAT: ${{ steps.app-token.outputs.token }}

0 commit comments

Comments
 (0)