Skip to content

Use persist-credentials: false in all checkout actions#285

Merged
albe merged 2 commits intomainfrom
copilot/set-persist-credentials-false
Mar 30, 2026
Merged

Use persist-credentials: false in all checkout actions#285
albe merged 2 commits intomainfrom
copilot/set-persist-credentials-false

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 30, 2026

Leaving persist-credentials at its default (true) causes the GitHub token to be written into the local git config after checkout, where it persists for the lifetime of the job and can be leaked by subsequent steps.

Changes

  • Added with: persist-credentials: false to all actions/checkout@v6 steps across:
    • .github/workflows/build.yml
    • .github/workflows/bench.yml
    • .github/workflows/stress-test.yml (both stress-test and memory-test jobs)
- uses: actions/checkout@v6
  with:
    persist-credentials: false

Copilot AI changed the title [WIP] Update checkout actions to use persist-credentials: false Use persist-credentials: false in all checkout actions Mar 30, 2026
Copilot finished work on behalf of albe March 30, 2026 19:39
Copilot AI requested a review from albe March 30, 2026 19:39
@albe albe marked this pull request as ready for review March 30, 2026 22:10
@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 98.121%. remained the same
when pulling cbc450e on copilot/set-persist-credentials-false
into 878abef on main.

@albe albe merged commit 735d0ae into main Mar 30, 2026
10 checks passed
@albe albe deleted the copilot/set-persist-credentials-false branch March 30, 2026 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants