Skip to content

Commit 0f921b0

Browse files
committed
CI: Add concurrency groups and permissions limitations
1 parent 40197a2 commit 0f921b0

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/pre-release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ defaults:
1818
run:
1919
shell: bash
2020

21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.ref }}
23+
cancel-in-progress: true
24+
25+
permissions:
26+
contents: read
27+
2128
jobs:
2229
pre-release:
2330
# Check pre-releases of dependencies on stable Python

.github/workflows/stable.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ defaults:
2424
run:
2525
shell: bash
2626

27+
concurrency:
28+
group: ${{ github.workflow }}-${{ github.ref }}
29+
cancel-in-progress: true
30+
31+
permissions:
32+
contents: read
33+
2734
jobs:
2835
build:
2936
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)