Skip to content

Commit 4c436e5

Browse files
committed
Set the workflow permissions
To pass the zizmor CI check and further secure this repos actions.
1 parent 74e988f commit 4c436e5

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,16 @@ on:
66
branches: [ main ]
77
workflow_dispatch:
88

9+
permissions: {}
10+
911
jobs:
1012
tox:
1113
name: ${{ matrix.name }}
1214
runs-on: ubuntu-latest
1315

16+
permissions:
17+
contents: read
18+
1419
container: python:${{ matrix.python }}
1520

1621
strategy:
@@ -36,12 +41,18 @@ jobs:
3641
name: Zizmor
3742
runs-on: ubuntu-latest
3843

44+
permissions:
45+
contents: read
46+
3947
steps:
4048
- uses: pgjones/actions/zizmor@dbbee601c084d000c4fc711d4b27cb306e15ead1 # v1
4149

4250
compliance:
4351
runs-on: ubuntu-latest
4452

53+
permissions:
54+
contents: read
55+
4556
steps:
4657
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4758
with:

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on:
33
push:
44
tags:
55
- '*'
6+
permissions: {}
7+
68
jobs:
79
build:
810
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)