Skip to content

Commit 650e6d5

Browse files
authored
Update actions with permissions and concurrency (#3870)
1 parent 5870ab0 commit 650e6d5

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

.github/workflows/dependabot.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on: pull_request
44
permissions:
55
pull-requests: write
66

7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
9+
cancel-in-progress: true
10+
711
jobs:
812
dependabot:
913
runs-on: ubuntu-latest

.github/workflows/dependency-review.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on: [pull_request]
1010
permissions:
1111
contents: read
1212

13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
15+
cancel-in-progress: true
16+
1317
jobs:
1418
dependency-review:
1519
runs-on: ubuntu-latest

.github/workflows/labels-sync.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
paths:
88
- ".github/labels.json"
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
1014
jobs:
1115
sync:
1216
runs-on: ubuntu-latest

.github/workflows/main.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ name: "Main"
33
on:
44
push:
55

6+
permissions:
7+
contents: write
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
613
jobs:
714
lint:
815
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)