Skip to content

Commit

Permalink
Add concurrency group for CodeQL workflow (#745)
Browse files Browse the repository at this point in the history
Allows currently running jobs to be cancelled if a pull request is
updated. Avoids using build resources to continue running redundant
jobs.

Signed-off-by: Mark S. Lewis <[email protected]>
  • Loading branch information
bestbeforetoday committed Sep 6, 2024
1 parent 03d8d52 commit 618bb5c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
- main
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

Expand Down

0 comments on commit 618bb5c

Please sign in to comment.