Skip to content

Commit 65841d2

Browse files
committed
ci: Narrow permissions of Github Actions.
see https://docs.zizmor.sh/audits/#excessive-permissions
1 parent 3ad2311 commit 65841d2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
merge_group:
1111
workflow_dispatch:
1212

13+
permissions: {}
14+
1315
env:
1416
PYTHON_LATEST: 3.13
1517

@@ -180,6 +182,8 @@ jobs:
180182
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
181183
needs: [lint, check, prepare-release-notes]
182184
runs-on: ubuntu-latest
185+
permissions:
186+
id-token: write
183187
steps:
184188
- name: Download distributions
185189
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)