Conversation
Copilot
AI
changed the title
[WIP] Fix extra empty commit not triggering CI
fix: extra-empty-commit trigger push authenticates as CI-trigger token, not GITHUB_TOKEN
Jul 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GH_AW_CI_TRIGGER_TOKEN/github-token-for-extra-empty-commitwas silently ignored. Theactions/checkoutpersist-credentials: truedefault writeshttp.<serverUrl>/.extraheadercarryingGITHUB_TOKEN; git applies that header to every matching request, taking precedence over any token embedded in the remote URL. The empty commit was pushed asgithub-actions[bot], so no CI runs were triggered.Changes
actions/setup/js/git_auth_helpers.cjs(new): shared helpers forhttp.<serverUrl>/.extraheadermanagement —getPersistedExtraheader,checkoutHasPersistedExtraheader(moved fromdynamic_checkout.cjs),overridePersistedExtraheader(--replace-allto collapse to a singleAuthorizationheader),restorePersistedExtraheaderactions/setup/js/extra_empty_commit.cjs: before the push, override the extraheader with the CI-trigger token; use a credential-free remote URL; restore the original extraheader in afinallyblock so the token doesn't leak into subsequent steps:actions/setup/js/dynamic_checkout.cjs: importcheckoutHasPersistedExtraheaderfrom the shared moduleactions/setup/js/extra_empty_commit.test.cjs/extra_empty_commit.integration.test.cjs: addgetExecOutputmock, new tests asserting the--replace-alloverride fires before push with correct base64 token, and the extraheader is restored/unset after pushdocs/src/content/docs/reference/triggering-ci.mdx: clarify the trigger works regardless ofpersist-credentialsstate; add troubleshooting note (verifyactoris the PAT/App identity, notgithub-actions[bot])