Skip to content

Commit 398d25b

Browse files
committed
Add concurrency and permissions
1 parent 3cf5019 commit 398d25b

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
name: CI
2-
permissions:
3-
contents: read
42

53
on:
64
push:
75
branches: [master]
86
pull_request:
97
branches: [master]
108

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
permissions:
14+
contents: read
15+
1116
jobs:
1217
lint:
1318
runs-on: ubuntu-slim

.github/workflows/pip-audit.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ on:
88
schedule:
99
- cron: "0 12 * * *"
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
permissions:
16+
contents: read
17+
1118
jobs:
1219
pip-audit:
1320
runs-on: ubuntu-slim

0 commit comments

Comments
 (0)