Skip to content

Commit e1c83f4

Browse files
authored
Add concurrency cancellation to codeql-analysis.yml for PR builds
1 parent 750a85a commit e1c83f4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ on:
2020
# The branches below must be a subset of the branches above
2121
branches: [ master ]
2222

23+
# Check all pushes to production branches, but interrupt a PR job if a new commit is pushed.
24+
concurrency:
25+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.run_id }}
26+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
27+
2328
jobs:
2429
analyze:
2530
name: Analyze

0 commit comments

Comments
 (0)