ci: use GitHub app token for upstream workflow (#100)

This commit is contained in:
Daniëlle Huisman 2025-06-24 10:37:13 +02:00 committed by GitHub
parent 161919dbb2
commit 1683afb3bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,6 +15,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v4
@ -38,8 +45,8 @@ jobs:
- name: Check for upstream releases
run: cargo run -p scripts --bin upstream
env:
GITHUB_ACTOR: ${{ env.GITHUB_ACTOR }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_ACTOR: rust-for-web[bot]
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
GIT_USER_NAME: rust-for-web[bot]
GIT_USER_EMAIL: 191031261+rust-for-web[bot]@users.noreply.github.com
RUST_LOG: upstream=info