Stop over-claiming the persist-credentials mechanism

The previous comment claimed `git push` reads the token via a git
credential helper wired into $RUNNER_TEMP. I don't actually know that's
how it works end to end — only that checkout stashes the token there
and that subsequent git ops in the same workspace end up authenticating
as the PAT. Describe just the observable contract, not an unverified
internal path.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ullrich Schäfer 2026-04-19 20:58:26 +02:00
parent 5d9ffae38a
commit da56eb2c19
No known key found for this signature in database
GPG key ID: A32FF691A0F752D9

View file

@ -42,13 +42,13 @@ jobs:
- uses: actions/checkout@v6 - uses: actions/checkout@v6
with: with:
ref: ${{ github.head_ref }} ref: ${{ github.head_ref }}
# With `persist-credentials: true`, checkout stores this token # With `persist-credentials: true`, this PAT is stashed by the
# in $RUNNER_TEMP and wires a git credential helper that # action (under $RUNNER_TEMP in recent versions) and made
# supplies it on subsequent HTTPS git calls. That's what makes # available to subsequent git operations in this workspace —
# the later `git push` authenticate as the PAT, which in turn # so the later `git push` authenticates as the PAT, which is
# re-triggers CI on the dedupe commit. `true` is the checkout # what gets CI to re-trigger on the dedupe commit. `true` is
# default — made explicit here so the mechanism is visible # the checkout default; pinned explicitly here because it's
# from the YAML instead of implicit in the action. # load-bearing for this workflow.
token: ${{ secrets.DEPENDABOT_DEDUPE_TOKEN }} token: ${{ secrets.DEPENDABOT_DEDUPE_TOKEN }}
persist-credentials: true persist-credentials: true
- uses: pnpm/action-setup@v6 - uses: pnpm/action-setup@v6