1. Speed and costs #
Fewer minutes, more feedback.
Levers #
- Dependency cache,
pathsfilters,concurrencywith cancellation, reduced matrices on pull requests and full ones onmain. timeout-minuteson every job: otherwise a stuck job consumes up to 6 hours.- Short artifact retention (
retention-days) and Linux runners whenever possible (Windows and macOS cost more).
2. Debugging #
Understanding a failure.
Frequent errors #
| Symptom | Likely cause |
|---|---|
| Resource not accessible by integration | insufficient GITHUB_TOKEN permissions |
| Workflow not triggered | branches/paths filter, or workflow missing from the default branch (schedule, dispatch) |
| Empty secret on a fork PR | normal behaviour: secrets are not passed to forks |
| Job queued forever | no runner with the requested labels, or pending environment approval |
Create the ACTIONS_STEP_DEBUG secret set to true (or rerun with "Enable debug logging") for detailed logs; act runs a workflow locally in Docker to iterate faster.
Checklist #
| Item | Check |
|---|---|
| Security | least permissions, pinned actions, OIDC, no public self-hosted runner |
| Reliability | required checks before merge, timeouts |
| Delivery | protected environments, attestations, same image promoted |
| Governance | list of allowed actions at organization level, versioned reusable workflows |
Commands to know #
Commands to know
act -j test: run the test job locallygh run view <id> --log: full loggh run rerun <id> --debug: rerun with debug logs
Sources #
Checked in November 2026: CI/CD platforms change every month, check versions and plans in the vendor's documentation.
