Repository navigation
ci: drop persisted token from preview checkouts - #39
Merged
ko3n1g merged 1 commit intoDec 1, 2026
Merged
Conversation
Runs that do not push check out with persist-credentials: false. The push path keeps its persisted App-token checkout. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: oliver könig <[email protected]>
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.
Background
rotate-profile-readme.ymlkeeps its checkout token in.git/config, includingpull_requestand dry-run runs that never push.scripts/rotate_readme.pyfrom the checked-out tree.What changed
persist-credentials: false.Details
.github/workflows/rotate-profile-readme.yml:63:persist-credentials: ${{ env.PUSH == 'true' }}.PUSHis a job-level boolean, already used by the stepif:conditions."true", which isactions/checkout's default, sogit push,git fetchandgit rebasebehave as today.rotate_readme.pymakes no git calls. It reads public repository metadata with the job's read-onlyGITHUB_TOKEN.Tested
actionlint1.7.12: clean before and after.zizmor1.33.1:artipackedgoes from 1 to 0.actions/checkoutv4.2.2 parses the input as(getInput('persist-credentials') || 'false').toUpperCase() === 'TRUE'.PUSH: truein scheduled run 46435851509 andPUSH: falsein PR run 42326015330.python3 scripts/rotate_readme.py --offline --dry-runexits 0 and leaves the tree unchanged.🤖 Generated with Claude Code