`Error: Cannot find module` or tests pass locally but fail on `ubuntu-latest` only after a runner image update.
AdvancedTroubleshootingGitHub Actions Failures
Answer
Likely causes → ubuntu-latest moved to a new image with different tool versions; unpinned tool versions.
Diagnose → Compare "Runner Image" version in the Set up job section between a green and red run.
Fix → Pin the OS (ubuntu-24.04) and tool versions; fix the code for the new defaults.
Prevent → Pin runner images and upgrade deliberately with a canary workflow.
More on GitHub Actions Failures
Workflow never triggers after pushing. No run appears in the Actions tab.Beginner`Error: Process completed with exit code 1.` with no further detail.Beginner`Error: Resource not accessible by integration` (HTTP 403) when the workflow comments on a PR or pushes a tag.Advanced`Context access might be invalid: SECRET_NAME` and the secret is empty inside the job.Beginner`Unable to resolve action actions/checkout@v5, unable to find version v5`.Beginner`The workflow is not valid. .github/workflows/ci.yml (Line: 14, Col: 9): Unexpected value 'run'`.Beginner