Skip to content

[CI] Set persist-credentials: false in checkout actions #49728

Closed

Description

@thisisnic

Describe the enhancement

Most actions/checkout steps do not set persist-credentials: false. Setting this option is a recommended best practice to avoid credentials being stored in the local git config after checkout.

This affects 56 checkout steps across most workflow files. The zizmor tool can auto-fix these.

Example

Before:

- uses: actions/checkout@v6
  with:
    fetch-depth: 0

After:

- uses: actions/checkout@v6
  with:
    fetch-depth: 0
    persist-credentials: false

Component(s)

Continuous Integration

Activity

  1. added a commit that references this issue on Apr 14, 2026
  2. added this to the 25.0.0 milestone on Apr 14, 2026
  3. thisisnic commented on Apr 14, 2026

    @thisisnic
    MemberAuthor

    Issue resolved by pull request 49734
    #49734

  4. added a commit that references this issue on May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions