Interview Prep/CI/CD/GitHub Actions Failures

Reusable workflow fails: `invalid value workflow reference: no version specified`.

IntermediateTroubleshootingGitHub Actions Failures
Answer

Likely causes → uses: for a reusable workflow in another repo requires a ref after @.

Diagnose → Look at the uses: line.

Fix → uses: org/repo/.github/workflows/build.yml@v1; for same-repo use ./.github/workflows/build.yml (no ref).

Prevent → Pin to tags or SHAs.

All CI/CD questions

More on GitHub Actions Failures