CICD-374 · Action commit SHA pinning
Encyclopedia · Advanced security and compliance · All snippets
Previous · CICD-373 · Next · CICD-375
1. Where it fits
- Placement CI policy gate.
- Prerequisites reviewed policies, a short-lived CI identity, and synthetic or approved test inputs.
- Platforms local-linux, github-actions, gitea-actions.
2. Copy the snippet
bash
actionlint
zizmor --offline .github/workflows/3. How it works
The linter checks Actions syntax and catches a subset of expression and workflow consistency errors without starting a runner.
4. Verify the result
Review third-party actions at a full commit SHA and keep an approved version comment next to each pin. Configure the audit policy to fail on unpinned refs.
Validation version-dependent (Bash parse). Status definitions.