Skip to content

Commit ec8cca6

Browse files
committed
Use GH app for authenticating pull PRs
1 parent fc4d9a2 commit ec8cca6

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,11 @@ jobs:
169169
run: rustup toolchain install nightly --profile minimal
170170
- name: Install rustup-toolchain-install-master
171171
run: cargo install -f rustup-toolchain-install-master
172+
- uses: actions/create-github-app-token@v2
173+
id: app-token
174+
with:
175+
app-id: ${{ vars.APP_CLIENT_ID }}
176+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
172177
- name: Push changes to a branch and create PR
173178
run: |
174179
# Make it easier to see what happens.
@@ -200,7 +205,7 @@ jobs:
200205
git push -u origin $BRANCH
201206
gh pr create -B master --title 'Automatic Rustup' --body 'Please close and re-open this PR to trigger CI, then enable auto-merge.'
202207
env:
203-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
208+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
204209

205210
cron-fail-notify:
206211
name: cronjob failure notification

triagebot.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ new_pr = true
5050
[autolabel."S-waiting-on-author"]
5151
new_draft = true
5252

53-
# Automatically close and reopen PRs made by bots to run CI on them
54-
[bot-pull-requests]
55-
5653
# Canonicalize issue numbers to avoid closing the wrong issue when upstreaming this subtree
5754
[canonicalize-issue-links]
5855

0 commit comments

Comments
 (0)