diff options
| author | Ralf Jung <post@ralfj.de> | 2025-07-29 11:02:30 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-29 11:02:30 +0000 |
| commit | 6508b5ae4d35411c10bd2f9d415206eb09a4a11a (patch) | |
| tree | e1f091a51febe5b02525cef4baaa89bc8a2b16e0 | |
| parent | dc33eb6c424a1325e53644517f78c3461591211d (diff) | |
| parent | 1fd183ea920bbe20718a4c45315fe2b30bbf4b2d (diff) | |
| download | rust-6508b5ae4d35411c10bd2f9d415206eb09a4a11a.tar.gz rust-6508b5ae4d35411c10bd2f9d415206eb09a4a11a.zip | |
Merge pull request #4505 from Kobzol/ci-gh-app
Use GH app for authenticating pull PRs
| -rw-r--r-- | src/tools/miri/.github/workflows/ci.yml | 10 | ||||
| -rw-r--r-- | src/tools/miri/triagebot.toml | 3 |
2 files changed, 8 insertions, 5 deletions
diff --git a/src/tools/miri/.github/workflows/ci.yml b/src/tools/miri/.github/workflows/ci.yml index c47f9695624..ba496d76712 100644 --- a/src/tools/miri/.github/workflows/ci.yml +++ b/src/tools/miri/.github/workflows/ci.yml @@ -169,7 +169,13 @@ jobs: run: rustup toolchain install nightly --profile minimal - name: Install rustup-toolchain-install-master run: cargo install -f rustup-toolchain-install-master - - name: Push changes to a branch and create PR + # Create a token for the next step so it can create a PR that actually runs CI. + - uses: actions/create-github-app-token@v2 + id: app-token + with: + app-id: ${{ vars.APP_CLIENT_ID }} + private-key: ${{ secrets.APP_PRIVATE_KEY }} + - name: pull changes from rustc and create PR run: | # Make it easier to see what happens. set -x @@ -200,7 +206,7 @@ jobs: git push -u origin $BRANCH gh pr create -B master --title 'Automatic Rustup' --body 'Please close and re-open this PR to trigger CI, then enable auto-merge.' env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} cron-fail-notify: name: cronjob failure notification diff --git a/src/tools/miri/triagebot.toml b/src/tools/miri/triagebot.toml index a0ce9f80024..5d6b596ea54 100644 --- a/src/tools/miri/triagebot.toml +++ b/src/tools/miri/triagebot.toml @@ -50,9 +50,6 @@ new_pr = true [autolabel."S-waiting-on-author"] new_draft = true -# Automatically close and reopen PRs made by bots to run CI on them -[bot-pull-requests] - # Canonicalize issue numbers to avoid closing the wrong issue when upstreaming this subtree [canonicalize-issue-links] |
