Skip to content

ci: Grant checks: read to remaining reusable-workflow callers#1915

Merged
vdusek merged 1 commit into
masterfrom
fix/checks-read-permission-on-remaining-callers
May 25, 2026
Merged

ci: Grant checks: read to remaining reusable-workflow callers#1915
vdusek merged 1 commit into
masterfrom
fix/checks-read-permission-on-remaining-callers

Conversation

@vdusek
Copy link
Copy Markdown
Collaborator

@vdusek vdusek commented May 25, 2026

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.yamldoc_release_post_publish
  • manual_release_stable.yamlversion_docs
  • manual_release_stable.yamldoc_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.

Every job that calls `manual_release_docs.yaml` or `manual_version_docs.yaml`
must explicitly grant `checks: read`, since reusable workflows are capped at
the permissions the caller declares. Covers the doc release in the beta
flow and both docs jobs in the stable release flow.
@vdusek vdusek added t-tooling Issues with this label are in the ownership of the tooling team. adhoc Ad-hoc unplanned task added during the sprint. labels May 25, 2026
@vdusek vdusek self-assigned this May 25, 2026
@github-actions github-actions Bot added this to the 141st sprint - Tooling team milestone May 25, 2026
@vdusek vdusek merged commit d424901 into master May 25, 2026
31 checks passed
@vdusek vdusek deleted the fix/checks-read-permission-on-remaining-callers branch May 25, 2026 15:53
@codecov
Copy link
Copy Markdown

codecov Bot commented May 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.87%. Comparing base (daf91a9) to head (93b3e5f).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1915      +/-   ##
==========================================
- Coverage   92.88%   92.87%   -0.02%     
==========================================
  Files         167      167              
  Lines       11714    11714              
==========================================
- Hits        10881    10879       -2     
- Misses        833      835       +2     
Flag Coverage Δ
unit 92.87% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

vdusek added a commit to apify/apify-client-python that referenced this pull request May 26, 2026
## Summary

Ports the CI consolidation and `wait-for-checks` adoption from
`crawlee-python` to `apify-client-python`. See
[apify/crawlee-python#1913](apify/crawlee-python#1913)
for the original rationale and PR description; the follow-up permission
fixes from [#1914](apify/crawlee-python#1914)
and [#1915](apify/crawlee-python#1915) are baked
in here.

Two commits:

1. **Consolidate check workflows into a single Checks workflow** —
merges `_check_code.yaml`, `_check_docs.yaml`, `_check_docstrings.yaml`,
`_check_package.yaml`, and `_tests.yaml` into a single `_checks.yaml`.
Every check now carries the shared `Checks /` prefix. `unit_tests` and
`integration_tests` are gated on a `run_tests` input so `on_master.yaml`
can keep skipping tests for docs-only commits.
2. **Gate manual release workflows on wait-for-checks** — replaces the
inline `code_checks` step in `manual_release_stable.yaml` /
`manual_release_beta.yaml` / `manual_release_docs.yaml` /
`manual_version_docs.yaml` with an
`apify/actions/wait-for-checks@v1.2.0` step that verifies the `Checks`
workflow already passed on the dispatch commit (it runs via
`on_master.yaml` on every push). Every reusable-workflow caller that
ends up requesting `checks: read` (docs jobs in `on_master.yaml`,
`version_docs` / `doc_release` in `manual_release_stable.yaml`,
`doc_release_post_publish` in `manual_release_beta.yaml`) explicitly
grants the permission, since reusable workflows are capped at the
caller's permission set.
vdusek added a commit to apify/apify-shared-python that referenced this pull request May 26, 2026
## Summary

Ports the CI consolidation and `wait-for-checks` adoption from
`crawlee-python` to `apify-shared-python`. See
[apify/crawlee-python#1913](apify/crawlee-python#1913)
for the original rationale and PR description; the follow-up permission
fixes from [#1914](apify/crawlee-python#1914)
and [#1915](apify/crawlee-python#1915) are
referenced for completeness (this repo has no docs workflows so no extra
permission grants are needed).

Two commits:

1. **Consolidate check workflows into a single Checks workflow** —
merges `_check_code.yaml`, `_check_package.yaml`, and `_tests.yaml` into
a single `_checks.yaml`. Every check now carries the shared `Checks /`
prefix. `unit_tests` is gated on a `run_tests` input so `on_master.yaml`
can keep skipping tests for `ci`/`docs` commits.
2. **Gate manual release workflows on wait-for-checks** — replaces the
inline `code_checks` / `tests` jobs in `manual_release_stable.yaml` and
`manual_release_beta.yaml` with an
`apify/actions/wait-for-checks@v1.2.0` step that verifies the `Checks`
workflow already passed on the dispatch commit (it runs via
`on_master.yaml` on every push).
vdusek added a commit to apify/apify-sdk-python that referenced this pull request May 26, 2026
## Summary

Ports the CI consolidation and `wait-for-checks` adoption from
`crawlee-python` to `apify-sdk-python`. See
[apify/crawlee-python#1913](apify/crawlee-python#1913)
for the original rationale and PR description; the follow-up permission
fixes from [#1914](apify/crawlee-python#1914)
and [#1915](apify/crawlee-python#1915) are baked
in here.

Two commits:

1. **Consolidate check workflows into a single Checks workflow** —
merges `_check_code.yaml`, `_check_docs.yaml`, `_check_package.yaml`,
and `_tests.yaml` into a single `_checks.yaml`. Every check now carries
the shared `Checks /` prefix. `unit_tests`, `integration_tests`, and
`e2e_tests` are gated on a `run_tests` input so `on_master.yaml` can
keep skipping tests for docs-only commits.
2. **Gate manual release workflows on wait-for-checks** — replaces the
inline `code_checks` step in `manual_release_stable.yaml` /
`manual_release_beta.yaml` / `manual_release_docs.yaml` /
`manual_version_docs.yaml` with an
`apify/actions/wait-for-checks@v1.2.0` step that verifies the `Checks`
workflow already passed on the dispatch commit (it runs via
`on_master.yaml` on every push). Every reusable-workflow caller that
ends up requesting `checks: read` (docs jobs in `on_master.yaml`,
`version_docs` / `doc_release` in `manual_release_stable.yaml`,
`doc_release_post_publish` in `manual_release_beta.yaml`) explicitly
grants the permission, since reusable workflows are capped at the
caller's permission set.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants