Skip to content

Commit ed4a8f7

Browse files
committed
Use GitHub App token for automated timing-file PR
GITHUB_TOKEN-authored events don't trigger other workflows (GitHub's recursion guard), so the weekly auto-PR from update-test-timing.yml never got normal CI checks, only Snyk. Minting a token via the quarto-dev-bot GitHub App instead makes GitHub treat the PR as opened by a regular actor, so pull_request-triggered CI runs on it.
1 parent 32bcc03 commit ed4a8f7

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎.github/workflows/update-test-timing.yml‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,18 @@ jobs:
3131
name: timed test file
3232
path: tests/
3333

34+
- name: Generate GitHub App token
35+
id: app-token
36+
uses: actions/create-github-app-token@v2
37+
with:
38+
app-id: ${{ secrets.QUARTO_DEV_BOT_APP_ID }}
39+
private-key: ${{ secrets.QUARTO_DEV_BOT_APP_PRIVATE_KEY }}
40+
3441
- name: Create Pull Request for new tests timing
3542
id: cpr
3643
uses: peter-evans/create-pull-request@v8
3744
with:
38-
token: ${{ secrets.GITHUB_TOKEN }}
45+
token: ${{ steps.app-token.outputs.token }}
3946
add-paths: tests/timing-for-ci.txt
4047
commit-message: |
4148
timing for new tests [auto PR]

0 commit comments

Comments
 (0)