Skip to content

Commit c5929ae

Browse files
committed
ci: replace OXC_BOT_PAT with GitHub App tokens
1 parent 97f4927 commit c5929ae

2 files changed

Lines changed: 14 additions & 2 deletions

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
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@e2b12f55ad64a22af8e93634b94439c42913afca # v1.0.6
2026
with:
21-
PAT: ${{ secrets.OXC_BOT_PAT }}
27+
PAT: ${{ steps.app-token.outputs.token }}

.github/workflows/update-builtins.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,16 @@ jobs:
2222
name: Update Node.js Built-in Modules
2323
runs-on: ubuntu-latest
2424
steps:
25+
- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3
26+
id: app-token
27+
with:
28+
client-id: ${{ secrets.APP_ID }}
29+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
30+
2531
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2632
with:
2733
persist-credentials: true
28-
token: ${{ secrets.OXC_BOT_PAT }}
34+
token: ${{ steps.app-token.outputs.token }}
2935

3036
- uses: oxc-project/setup-node@4c26e7cb3605b6bdef5450dacd02c434b10fd8ba # v1.2.0
3137

0 commit comments

Comments
 (0)