Skip to content

Commit 08b9db0

Browse files
committed
build: be explicit about actions only having permission to read contents
1 parent aa34080 commit 08b9db0

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/coverage.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ defaults:
1919
env:
2020
PIP_DISABLE_PIP_VERSION_CHECK: 1
2121

22+
permissions:
23+
contents: read
24+
2225
jobs:
2326
coverage:
2427
name: "Python ${{ matrix.python-version }} on ${{ matrix.os }}"

.github/workflows/python-nightly.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ env:
2222
PIP_DISABLE_PIP_VERSION_CHECK: 1
2323
COVERAGE_IGOR_VERBOSE: 1
2424

25+
permissions:
26+
contents: read
27+
2528
jobs:
2629
tests:
2730
name: "Python ${{ matrix.python-version }}"

0 commit comments

Comments
 (0)