Skip to content

Disable credential persistence in GitHub Actions checkout#330

Merged
jwilder merged 2 commits into
masterfrom
repo-agent/repo-agent/checkout-persists-credentials-unnecessarily
Jun 12, 2026
Merged

Disable credential persistence in GitHub Actions checkout#330
jwilder merged 2 commits into
masterfrom
repo-agent/repo-agent/checkout-persists-credentials-unnecessarily

Conversation

@jwilder

@jwilder jwilder commented Jun 12, 2026

Copy link
Copy Markdown
Owner

What changed

Added persist-credentials: false to every actions/checkout@v6 step in:

  • .github/workflows/ci.yml
  • .github/workflows/codeql.yml

Why

This fixes the finding that checkout was persisting repository credentials in workflow jobs even though these jobs only need read access to fetch source code. Disabling credential persistence reduces unnecessary credential exposure in CI and CodeQL runs.

How to verify

  • Review both workflow files and confirm each actions/checkout@v6 step sets persist-credentials: false.
  • Run or inspect the CI and CodeQL workflows to confirm they still complete successfully with checkout, build, test, lint, vulncheck, e2e, and analysis steps unchanged.

@jwilder jwilder merged commit ec3df3b into master Jun 12, 2026
12 checks passed
@jwilder jwilder deleted the repo-agent/repo-agent/checkout-persists-credentials-unnecessarily branch June 12, 2026 09:18
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.

1 participant