Skip to content

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

@thisisnic

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

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions