Skip to content

Commit bc46e13

Browse files
authored
ci(coverage): disable persist-credentials so the app token is used for the push (#1466)
actions/checkout persists the default GITHUB_TOKEN as an http.extraheader that overrides the app-token credentials embedded in the push URL, so the push authenticated as github-actions[bot] (not a ruleset bypass actor) and was rejected by the require-PR rule. persist-credentials: false lets the mfc-map-bot app token actually be used, so its ruleset bypass applies. This lets the require-PR rule be restored while the bot still pushes the refreshed map.
1 parent 78dd50f commit bc46e13

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/coverage-refresh.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,14 @@ jobs:
2222
group: phoenix
2323
labels: gt
2424
steps:
25+
# persist-credentials: false stops actions/checkout from configuring the
26+
# default GITHUB_TOKEN as an http.extraheader, which otherwise OVERRIDES the
27+
# app-token credentials embedded in the push URL below — making the push
28+
# authenticate as github-actions[bot] (not a ruleset bypass actor) and get
29+
# rejected by the require-PR rule. With it off, the app token is used and the
30+
# mfc-map-bot bypass applies.
2531
- uses: actions/checkout@v4
26-
with: { clean: false }
32+
with: { clean: false, persist-credentials: false }
2733
- name: Build + collect coverage map (SLURM)
2834
run: bash .github/scripts/submit-slurm-job.sh .github/workflows/common/coverage-refresh.sh cpu none phoenix
2935
# Mint a short-lived GitHub App installation token. The app is on the master

0 commit comments

Comments
 (0)