Skip to content

Consistently use persist-credentials: false for actions/checkout#392

Merged
simi merged 2 commits intomainfrom
use-persist-credentials-false-in-example
Jun 16, 2025
Merged

Consistently use persist-credentials: false for actions/checkout#392
simi merged 2 commits intomainfrom
use-persist-credentials-false-in-example

Conversation

@landongrindheim
Copy link
Copy Markdown
Contributor

The default value for persist-credentials is true. While an issue exists to change the default, there's not a strong signal that the default will change. Given this, consistently setting persist-credentials to false whenever possible is prudent.

Since this snippet is meant to be exemplary, it makes sense to
explicitly set `persist-credentials` to `false`. The default value is
`true`.
This is not exploitable currently, but preventing credentials from being
written to disk keeps it from being unintentionally exploitable in the
future.
@simi simi merged commit c081333 into main Jun 16, 2025
1 check passed
@simi simi deleted the use-persist-credentials-false-in-example branch June 16, 2025 16:55
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.

2 participants