Skip to content

Commit 670b60a

Browse files
authored
Add concurrency to CodeQL workflow
Added concurrency settings to cancel in-progress runs on the same branch. Signed-off-by: CØDE N!NJΔ <najaf.shaikh@gmail.com>
1 parent 2968722 commit 670b60a

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/master-codeql.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ on:
1616
branches: ["master"]
1717
pull_request:
1818
branches: ["master"]
19-
19+
20+
# Cancel in-progress runs on the same branch when a new push arrives
21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.ref }}
23+
cancel-in-progress: true
24+
2025
jobs:
2126
analyze:
2227
name: Analyze
@@ -70,3 +75,4 @@ jobs:
7075
with:
7176
category: "/language:${{matrix.language}}"
7277

78+

0 commit comments

Comments
 (0)