Skip to content

Commit 02dd33a

Browse files
tacaswellanntzer
authored andcommitted
CI: auto-fix via zizmor, restrict default permissions
Prevents checkout premissions from leaking Reduces risk of arbitrary code is run by attacker.
1 parent 044bec6 commit 02dd33a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: build
2+
permissions:
3+
contents: read
24

35
on: [push, pull_request]
46

@@ -12,6 +14,8 @@ jobs:
1214
runs-on: ${{ matrix.os }}
1315
steps:
1416
- uses: actions/checkout@v4
17+
with:
18+
persist-credentials: false
1519
- uses: actions/setup-python@v5
1620
with:
1721
python-version: ${{ matrix.python-version }}

0 commit comments

Comments
 (0)