Skip to content

Commit 10fca99

Browse files
authored
🔧 Set workflow permissions (#32)
1 parent a7a1737 commit 10fca99

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎.github/workflows/pre-commit.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
pre-commit:
1111
runs-on: ubuntu-latest
1212
timeout-minutes: 5
13+
permissions:
14+
contents: read
1315
steps:
1416
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1517
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0

‎.github/workflows/release.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
environment: release
1212
timeout-minutes: 60
1313
permissions:
14+
contents: read
1415
# IMPORTANT: this permission is mandatory for trusted publishing
1516
id-token: write
1617
steps:

‎.github/workflows/test.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
test:
1515
runs-on: ubuntu-latest
1616
timeout-minutes: 15
17+
permmissions:
18+
contents: read
1719
strategy:
1820
matrix:
1921
python-version:

0 commit comments

Comments
 (0)