Skip to content

Commit 7955807

Browse files
limit GITHUB_TOKEN permissions
1 parent 9e9d7e2 commit 7955807

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/python-publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# documentation.
88

99
name: Upload Python Package
10+
permissions: {}
1011

1112
on:
1213
release:
@@ -16,6 +17,8 @@ jobs:
1617
deploy:
1718

1819
runs-on: ubuntu-latest
20+
permissions:
21+
contents: read
1922
environment:
2023
name: pypi-publish
2124

.github/workflows/unittests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Unit Tests
2+
permissions: {}
23

34
on:
45
push:
@@ -9,6 +10,8 @@ on:
910
jobs:
1011
build:
1112
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
1215
strategy:
1316
matrix:
1417
python-version: [

.github/workflows/verification.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Static Checks
2+
permissions: {}
23

34
on:
45
push:
@@ -9,6 +10,8 @@ on:
910
jobs:
1011
build:
1112
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
1215
steps:
1316
- uses: actions/checkout@v6
1417
with:

0 commit comments

Comments
 (0)