Automation · GitHub Actions
Actions
Cheat sheet · https://pcornel.dk/topic.php?topic=5521
Answer
Actions are reusable steps in GitHub Actions workflows, referenced with uses: such as actions/checkout@v4. Pin third-party actions to a full commit SHA to protect against tampered tags.
Remember
- Pin to a full commit SHA.
- Review third-party actions.
- Prefer official actions.
First checks
grep -rn 'uses:' .github/workflows— actions used- Pin to full commit SHA — supply chain
- Dependabot for actions — updates
Verify in this order
uses: action@sha → executes in job
Where it usually breaks
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
GitHub Actions → Actions · operational reference
| Layer | GitHub Actions → Actions operational reference |
|---|---|
| Runtime/ownership | GitHub Actions custom actions · identify controller/parser, durable intent, identity and target ownership before mutation |
| Persistent intent | Versioned definition/configuration with explicit dependencies, scope and credential boundary |
| Verification | Inspect action.yml/action.yaml, pin the action revision, run a fixture workflow, validate inputs/outputs/exit code and inspect runner logs plus downstream result. |
| Expected interpretation | The action metadata matches the implementation, declared inputs/outputs are deterministic, failures set the expected status, and the calling workflow pins a reviewed revision. |
| Recovery boundary | Preserve correlation IDs + pre-state, repair first failing boundary, then verify the target independently |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5521