GA-B002: Missing concurrency group
Info Best Practice
Why This Matters
Without a `concurrency:` group, multiple workflow runs for the same branch or PR execute simultaneously, wasting resources. A concurrency group with `cancel-in-progress: true` automatically cancels outdated runs.
How to Fix
Add a concurrency group to the workflow
Before (incorrect)
name: CI
on: push After (correct)
name: CI
on: push
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true Rule Details
- Rule Code
- GA-B002
- Severity
- Info
- Category
- Best Practice