ci/actions-pinned
Actions are pinned to commit SHAs
| Severity | warning |
| Tiers | 1 |
| Stacks | any |
| Scope | root |
| Kind | expr |
| Source | library v0.0.0-20261011205826-ecb4e9b3ffd4 |
| Selected by | fleetlint-recommended@0.1.0 |
Requirement
Every uses: reference in a workflow is pinned to a full 40-character commit SHA with a version comment. Local actions (./path) and docker:// references are exempt.
Why
A tag can be moved; a SHA cannot. Pinning is what makes a workflow reproducible and tamper-evident.
Applies when
workflows().size() > 0Check
For each item in:
grep(".github/workflows/*.y*ml", r'^\s*-?\s*uses:\s*["\x27]?([^\s"\x27#]+)') + grep(".gitea/workflows/*.y*ml", r'^\s*-?\s*uses:\s*["\x27]?([^\s"\x27#]+)')item.match.startsWith("./") || item.match.startsWith("docker://") || item.match.matches("@[0-9a-f]{40}$")Fix
Run pinact run and commit; let Renovate keep the pins current.
Agent instruction: Run pinact run to pin all uses: references to SHAs with version comments; do not change anything else in the workflows.
See: https://fleetlint.org/baseline/#security
Generated by fleetlint docs from catalog v0.0.0-20261011205826-ecb4e9b3ffd4.