Skip to content

Commit db31c4b

Browse files
ci: use GitHub app token for upstream workflow (#276)
1 parent 885b8ee commit db31c4b

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/upstream.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18+
- name: Generate GitHub App token
19+
id: app-token
20+
uses: actions/create-github-app-token@v2
21+
with:
22+
app-id: ${{ secrets.APP_ID }}
23+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
24+
1825
- name: Checkout
1926
uses: actions/checkout@v6
2027

@@ -24,7 +31,8 @@ jobs:
2431
- name: Check for upstream releases
2532
run: cargo run -p scripts --bin upstream
2633
env:
27-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28-
GIT_USER_NAME: github-actions[bot]
29-
GIT_USER_EMAIL: github-actions[bot]@users.noreply.github.com
34+
GITHUB_ACTOR: rust-for-web[bot]
35+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
36+
GIT_USER_NAME: rust-for-web[bot]
37+
GIT_USER_EMAIL: 191031261+rust-for-web[bot]@users.noreply.github.com
3038
RUST_LOG: upstream=debug

0 commit comments

Comments
 (0)