Skip to content

Commit e9b365a

Browse files
Use different concurrency groups for different workflows (#2365)
See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency RELEASE_NOTES=n/a Signed-off-by: Dominik Schulz <[email protected]> Signed-off-by: Dominik Schulz <[email protected]>
1 parent 5218945 commit e9b365a

File tree

4 files changed

+29
-11
lines changed

4 files changed

+29
-11
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,19 @@ name: Build gopass
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches:
6+
- master
67
pull_request:
7-
branches: [ master ]
8+
branches:
9+
- master
810

911
concurrency:
10-
group: ci-${{ github.ref }}-build
12+
group: ${{ github.workflow }}-${{ github.ref }}
1113
cancel-in-progress: true
1214

15+
permissions:
16+
contents: read
17+
1318
jobs:
1419
linux:
1520
runs-on: ubuntu-latest

.github/workflows/codeql-analysis.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,22 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: [ master ]
16+
branches:
17+
- master
1718
pull_request:
1819
# The branches below must be a subset of the branches above
19-
branches: [ master ]
20+
branches:
21+
- master
2022
schedule:
2123
- cron: '19 21 * * 0'
2224

2325
concurrency:
24-
group: ci-${{ github.ref }}-codeql
26+
group: ${{ github.workflow }}-${{ github.ref }}
2527
cancel-in-progress: true
2628

29+
permissions:
30+
contents: read
31+
2732
jobs:
2833
analyze:
2934
name: Analyze

.github/workflows/golangci-lint.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@ name: golangci-lint
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches:
6+
- master
67
pull_request:
7-
branches: [ master ]
8+
branches:
9+
- master
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
814

915
permissions:
1016
contents: read

.github/workflows/grype.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ name: Scan gopass
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches:
6+
- master
67
pull_request:
7-
branches: [ master ]
8+
branches:
9+
- master
810

911
concurrency:
10-
group: ci-${{ github.ref }}-build
12+
group: ${{ github.workflow }}-${{ github.ref }}
1113
cancel-in-progress: true
1214

1315
jobs:

0 commit comments

Comments
 (0)