Skip to main content

GA-L003: Invalid job dependency

Error Semantic

Why This Matters

A job's `needs:` field references a job ID that does not exist in this workflow. The workflow will fail to start because GitHub cannot resolve the dependency graph.

How to Fix

Fix the job name in needs: or add the missing job.

Before (incorrect)

jobs:
  deploy:
    needs: [bild]
    runs-on: ubuntu-latest

After (correct)

jobs:
  build:
    runs-on: ubuntu-latest
  deploy:
    needs: [build]
    runs-on: ubuntu-latest

Rule Details

Rule Code
GA-L003
Severity
Error
Category
Semantic

Related Rules