Skip to content

fix: grant packages: read on reusable-calling release jobs - #948

Merged
c-vigo merged 1 commit into
release/0.5.0from
bugfix/947-release-caller-packages-read
Jul 8, 2026
Merged

c-vigo merged 1 commit into
release/0.5.0from
bugfix/947-release-caller-packages-read

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Problem

#920 added packages: read to the reusable release workflows' jobs (release-core x3, release-publish x2) to pull the authenticated GHCR image, but the reusable-calling jobs (core, publish) in the scaffold release.yml weren't updated to grant it. A reusable workflow can't request a permission its calling job didn't grant → a consumer release run fails with startup_failure.

Surfaced by the 0.5.0-rc1 smoke-test's downstream release orchestration (release run startup_failure). Worked in 0.4.1 (no packages: read anywhere). Never caught upstream (the devcontainer repo's own release.yml is monolithic; the split lives only in the shipped scaffold). Refs #943.

Fix

Grant packages: read on the core and publish calling jobs. Verified each caller's grant is now a superset of its callee's requested scopes:

  • release-core needs {actions:write, contents:write, pull-requests:read, packages:read} — core now grants all (actions:write was already present).
  • release-publish needs {contents:write, packages:read} — publish now grants both.
  • release-extension needs {contents:read} — extension caller inherits the workflow-level {contents:read, packages:read}.

promote-release.yml audited: it calls no reusables and already sets packages: read where needed — no change.

Refs: #947

#920 added packages: read to the reusable release workflows'
(release-core, release-publish) jobs so they can pull the authenticated
GHCR image, but the reusable-workflow-calling jobs (core, publish) in the
scaffold release.yml were not updated to grant it. A reusable workflow
cannot request a permission its calling job did not grant, so a consumer
release run fails with startup_failure. Grant packages: read on both
callers (release-extension requests none; the extension caller inherits
the workflow-level default). Verified: each caller's grant is now a
superset of its callee's requested scopes.

Refs: #947
@c-vigo
c-vigo merged commit 7208512 into release/0.5.0 Jul 8, 2026
13 checks passed
@c-vigo
c-vigo deleted the bugfix/947-release-caller-packages-read branch July 8, 2026 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant