Skip to content

Commit 205ffb4

Browse files
shulaodasapphi-red
andauthored
fix: use client-id instead of deprecated app-id for GitHub App token (#491)
Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
1 parent 8124e76 commit 205ffb4

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/ecosystem-ci-from-pr-rolldown.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
- id: generate-token
7575
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3
7676
with:
77-
app-id: ${{ secrets.PR_GITHUB_APP_ID }}
77+
client-id: ${{ vars.PR_GITHUB_APP_CLIENT_ID }}
7878
private-key: ${{ secrets.PR_GITHUB_APP_PRIVATE_KEY }}
7979
owner: rolldown
8080
repositories: rolldown
@@ -300,7 +300,7 @@ jobs:
300300
- id: generate-token
301301
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3
302302
with:
303-
app-id: ${{ secrets.PR_GITHUB_APP_ID }}
303+
client-id: ${{ vars.PR_GITHUB_APP_CLIENT_ID }}
304304
private-key: ${{ secrets.PR_GITHUB_APP_PRIVATE_KEY }}
305305
owner: rolldown
306306
repositories: rolldown

.github/workflows/ecosystem-ci-from-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
- id: generate-token
8383
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3
8484
with:
85-
app-id: ${{ secrets.PR_GITHUB_APP_ID }}
85+
client-id: ${{ vars.PR_GITHUB_APP_CLIENT_ID }}
8686
private-key: ${{ secrets.PR_GITHUB_APP_PRIVATE_KEY }}
8787
repositories: vite
8888
permission-pull-requests: write # to comment on the vite PR
@@ -228,7 +228,7 @@ jobs:
228228
- id: generate-token
229229
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3
230230
with:
231-
app-id: ${{ secrets.PR_GITHUB_APP_ID }}
231+
client-id: ${{ vars.PR_GITHUB_APP_CLIENT_ID }}
232232
private-key: ${{ secrets.PR_GITHUB_APP_PRIVATE_KEY }}
233233
repositories: |
234234
vite

docs/pr-comment-setup.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
1. Generate a private key. It can be generated on the same page with the App ID. The key will be downloaded when you generate it.
1414
![GitHub App private key](github_app_private_key.png)
1515

16-
## (2) Adding secrets to vitejs/vite and vitejs/vite-ecosystem-ci
16+
## (2) Adding secrets / vars to vitejs/vite and vitejs/vite-ecosystem-ci
1717

1818
- vitejs/vite
19-
- `ECOSYSTEM_CI_GITHUB_APP_ID`: ID of the created GitHub App
20-
- `ECOSYSTEM_CI_GITHUB_APP_PRIVATE_KEY`: the content of the private key of the created GitHub App
19+
- var `ECOSYSTEM_CI_GITHUB_APP_CLIENT_ID`: ID of the created GitHub App
20+
- secret `ECOSYSTEM_CI_GITHUB_APP_PRIVATE_KEY`: the content of the private key of the created GitHub App
2121
- vitejs/vite-ecosystem-ci
22-
- `PR_GITHUB_APP_ID`: ID of the created GitHub App
23-
- `PR_GITHUB_APP_PRIVATE_KEY`: the content of the private key of the created GitHub App
22+
- var `PR_GITHUB_APP_CLIENT_ID`: Client ID of the created GitHub App
23+
- secret `PR_GITHUB_APP_PRIVATE_KEY`: the content of the private key of the created GitHub App
2424

2525
## (3) Adding workflows to vitejs/vite
2626

0 commit comments

Comments
 (0)