Skip to content

Commit 61d5593

Browse files
committed
🧪🚑 Enable security-events @ cron+release
This patch sets the top-level `security-events: write` privilege in the nightly and release GHA CI/CD workflows where they call `ci.yml`, which in turn calls the upstream Zizmor workflow requiring it. The change intends to fix the following error [[1]] we've recently started encountering due to internal changes within GH: ```console Invalid workflow file: .github/workflows/cron.yml#L9 The workflow is not valid. .github/workflows/cron.yml (Line: 9, Col: 3): Error calling workflow 'jazzband/pip-tools/.github/workflows/ci.yml@91636f5'. The nested job 'zizmor' is requesting 'security-events: write', but is only allowed 'security-events: none'. ``` [1]: https://github.com/jazzband/pip-tools/actions/runs/27537892831/workflow
1 parent 91636f5 commit 61d5593

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/cron.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
jobs:
99
main:
1010
name: CI
11+
12+
permissions:
13+
security-events: write # Needed by the nested Zizmor workflow
14+
1115
uses: ./.github/workflows/ci.yml
1216
with:
1317
cpython-versions: >-

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ jobs:
5959
github.event.action == 'published'
6060
&& 'release' || 'nightly'
6161
}}]
62+
63+
permissions:
64+
security-events: write # Needed by the nested Zizmor workflow
65+
6266
uses: ./.github/workflows/ci.yml
6367
with:
6468
release-version: ${{ github.ref_name }}

0 commit comments

Comments
 (0)