Skip to content

Commit d424901

Browse files
authored
ci: Grant checks: read to remaining reusable-workflow callers (#1915)
## Summary Same kind of permission error as #1914, but in the remaining callers — trying to dispatch the beta release surfaced this on `manual_release_beta.yaml`: > The nested job 'release_docs' is requesting 'checks: read', but is only allowed 'checks: none'. A reusable workflow is capped at the permissions the calling job declares. Both `manual_release_docs.yaml` and `manual_version_docs.yaml` request `checks: read` for their (conditional) wait-for-checks step, so every caller must grant it. This PR adds `checks: read` to the three remaining callers: - `manual_release_beta.yaml` → `doc_release_post_publish` - `manual_release_stable.yaml` → `version_docs` - `manual_release_stable.yaml` → `doc_release` I audited the rest: `_checks.yaml` only needs `contents: read` (the default), so its callers in `on_master.yaml` and `on_pull_request.yaml` are fine.
1 parent daf91a9 commit d424901

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/manual_release_beta.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,6 @@ jobs:
104104
contents: write
105105
pages: write
106106
id-token: write
107+
checks: read
107108
uses: ./.github/workflows/manual_release_docs.yaml
108109
secrets: inherit

.github/workflows/manual_release_stable.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ jobs:
138138
needs: [release_prepare, changelog_update, pypi_publish]
139139
permissions:
140140
contents: write
141+
checks: read
141142
uses: ./.github/workflows/manual_version_docs.yaml
142143
with:
143144
# Pass the bumped version explicitly — the job's checkout uses the dispatch ref (pre-bump),
@@ -152,5 +153,6 @@ jobs:
152153
contents: write
153154
pages: write
154155
id-token: write
156+
checks: read
155157
uses: ./.github/workflows/manual_release_docs.yaml
156158
secrets: inherit

0 commit comments

Comments
 (0)