Skip to content

Commit

Permalink
more tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoieni committed Jan 31, 2025
1 parent 18113cf commit 24a91cf
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions .github/workflows/dry-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,39 @@ jobs:
uses: actions/create-github-app-token@v1
id: rust-lang-ci-token
with:
# GitHub App ID secret name
app-id: ${{ secrets.GH_APP_ID }}
# GitHub App private key secret name
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
# Set the owner, so the token can be used in all repositories
owner: rust-lang-ci

- name: Generate GitHub token (rust-lang-deprecated)
uses: actions/create-github-app-token@v1
id: rust-lang-deprecated-token
with:
app-id: ${{ secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
owner: rust-lang-deprecated

- name: Generate GitHub token (rust-lang-nursery)
uses: actions/create-github-app-token@v1
id: rust-lang-nursery-token
with:
app-id: ${{ secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
owner: rust-lang-nursery

- name: Generate GitHub token (bors-rs)
uses: actions/create-github-app-token@v1
id: bors-rs-token
with:
app-id: ${{ secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
owner: bors-rs

- name: Dry run
env:
GITHUB_TOKEN_RUST-LANG: ${{ steps.rust-lang-token.outputs.token }}
GITHUB_TOKEN_RUST-LANG-CI: ${{ steps.rust-lang-token.outputs.token }}
GITHUB_TOKEN_RUST-LANG-CI: ${{ steps.rust-lang-ci-token.outputs.token }}
GITHUB_TOKEN_RUST-LANG-DEPRECATED: ${{ steps.rust-lang-deprecated-token.outputs.token }}
GITHUB_TOKEN_RUST-LANG-NURSERY: ${{ steps.rust-lang-nursery-token.outputs.token }}
GITHUB_TOKEN_BORS-RS: ${{ steps.bors-rs-token.outputs.token }}
run: cargo run -- --only-print-plan github

0 comments on commit 24a91cf

Please sign in to comment.