Skip to content

ci(coverage): use app token for push (persist-credentials: false)#1466

Merged
sbryngelson merged 1 commit into
MFlowCode:masterfrom
sbryngelson:coverage-refresh-persist-creds
May 30, 2026
Merged

ci(coverage): use app token for push (persist-credentials: false)#1466
sbryngelson merged 1 commit into
MFlowCode:masterfrom
sbryngelson:coverage-refresh-persist-creds

Conversation

@sbryngelson
Copy link
Copy Markdown
Member

Root cause

The previous run minted the mfc-map-bot app token correctly, but the push still hit GH013 ... Changes must be made through a pull request even with the app on the ruleset bypass list.

Reason: actions/checkout persists the default GITHUB_TOKEN as an http.https://github.com/.extraheader auth header, which overrides the app-token credentials embedded in the push URL. So the push authenticated as github-actions[bot] (not a bypass actor) and was rejected by the require-PR rule. The bypass config was correct all along; the push just never used the app identity.

Refs: community #136531, community #72173, create-github-app-token #81.

Fix

persist-credentials: false on the checkout step, so the push uses the app-token URL. The SLURM build/collect needs no persisted git credentials (it only reads via git rev-parse/git diff and installs public deps), so this is safe.

Follow-up (restores protection)

With this merged, the pull_request (require-PR) rule can be re-added to the master ruleset: humans still need PRs, and only the mfc-map-bot app bypasses it. I'll restore the rule and dispatch a verification run once this lands.

…r the push

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.
Copilot AI review requested due to automatic review settings May 30, 2026 18:42
@sbryngelson sbryngelson merged commit bc46e13 into MFlowCode:master May 30, 2026
22 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants