GitHub Actions Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=5532
Answer
Troubleshoot GitHub Actions by reading the step logs, enabling debug logging (ACTIONS_STEP_DEBUG), checking the trigger and path filters, permissions of GITHUB_TOKEN, secrets availability on forks and runner labels.
Remember
- Read the first failing step.
- Enable debug logging.
- Check permissions and secrets.
First checks
gh run view <id> --log-failed— failed step logs- Re-run with debug (ACTIONS_STEP_DEBUG secret/variable) — verbose
actionlint— config errors
Commands
gh run list --limit 20- Read-only/validation observation for recent workflow run identity, workflow name, branch/event, status and conclusion.
Verify in this order
event → workflow → job → step → error
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.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5532