Skip to content

Commit d8011e7

Browse files
committed
build: adjust permissions and comment unusual ones
Needed for zizmor 1.13.0
1 parent 2b003ee commit d8011e7

File tree

6 files changed

+10
-11
lines changed

6 files changed

+10
-11
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ jobs:
3030
name: Analyze
3131
runs-on: ubuntu-latest
3232
permissions:
33-
actions: read
33+
actions: read # CodeQL wrote this action.
3434
contents: read
35-
security-events: write
35+
security-events: write # CodeQL wrote this action.
3636

3737
strategy:
3838
fail-fast: false

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
name: "Check changed files"
3434
runs-on: ubuntu-latest
3535
permissions:
36-
pull-requests: read
36+
pull-requests: read # Needed for this check to run on pull requests
3737
outputs:
3838
run_coverage: ${{ steps.filter.outputs.run_coverage }}
3939
workflow: ${{ steps.filter.outputs.workflow }}

.github/workflows/kit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ jobs:
269269
- non-binary
270270
runs-on: ubuntu-latest
271271
permissions:
272-
id-token: write
272+
id-token: write # Needed for signing artifacts
273273
steps:
274274
- name: "Download artifacts"
275275
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ jobs:
5454
name: "Publish to Test PyPI"
5555
if: ${{ github.event.action == 'publish-testpypi' }}
5656
permissions:
57-
id-token: write
58-
attestations: write
57+
id-token: write # needed for actions/attest-build-provenance
58+
attestations: write # needed for actions/attest-build-provenance
5959
runs-on: "ubuntu-latest"
6060
environment:
6161
name: "testpypi"
@@ -94,8 +94,8 @@ jobs:
9494
name: "Publish to PyPI"
9595
if: ${{ github.event.action == 'publish-pypi' }}
9696
permissions:
97-
id-token: write
98-
attestations: write
97+
id-token: write # needed for actions/attest-build-provenance
98+
attestations: write # needed for actions/attest-build-provenance
9999
runs-on: "ubuntu-latest"
100100
environment:
101101
name: "pypi"

.github/workflows/quality.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
name: "Check changed files"
3131
runs-on: ubuntu-latest
3232
permissions:
33-
pull-requests: read
33+
pull-requests: read # Needed for this check to run on pull requests
3434
outputs:
3535
python: ${{ steps.filter.outputs.python }}
3636
docs: ${{ steps.filter.outputs.docs }}
@@ -161,7 +161,6 @@ jobs:
161161
runs-on: ubuntu-latest
162162
permissions:
163163
contents: read
164-
actions: read
165164

166165
needs: changed
167166
if: ${{ needs.changed.outputs.actions == 'true' || needs.changed.outputs.workflow == 'true' }}

.github/workflows/testsuite.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
name: "Check changed files"
3333
runs-on: ubuntu-latest
3434
permissions:
35-
pull-requests: read
35+
pull-requests: read # Needed for this check to run on pull requests
3636
outputs:
3737
run_tests: ${{ steps.filter.outputs.run_tests }}
3838
steps:

0 commit comments

Comments
 (0)