Skip to content

[FEATURE] release-extension seam: GITHUB_TOKEN ceiling blocks id-token/attestations (provenance attestation cannot live in the extension point) #1144

Closed

Description

@c-vigo

Description

The managed release.yml calls the release-extension.yml consumer seam with no job-level permissions: block, so the called workflow runs under the caller's workflow-level grant (contents: read, packages: read). GitHub never lets a called reusable workflow ELEVATE the caller's GITHUB_TOKEN — job-level permissions in the callee can only downgrade.

Consequence: any extension step needing more than read (e.g. actions/attest-build-provenance, which requires id-token: write + attestations: write) is silently denied. Found while porting sync-issues-action's provenance attestation into the seam during its devkit adoption (vig-os/sync-issues-action#106) — the attestation had to be re-homed in a consumer-owned tag-push workflow (attest-release.yml) instead, where the job owns its token grant.

Acceptance Criteria

  • Decide the seam's permission contract: either grant the extension job a documented broader ceiling (e.g. add id-token: write, attestations: write — still deny-by-default at the callee), or explicitly document that write-scoped extensions belong in consumer-owned tag-push/post-release workflows
  • Document the pattern in the release extension docs either way

Additional Context

  • The seam grant lives in the managed release.yml extension: job (no permissions: → workflow default applies).
  • Workaround shipping in sync-issues-action: attest-release.yml on push: tags: v*.*.* with its own id-token: write + attestations: write grant.

Activity

  1. added
    feature
    priority:low
    area:workflow
    effort:small
    on Jul 15, 2026
  2. c-vigo commented on Jul 16, 2026

    @c-vigo
    ContributorAuthor

    Resolved on dev via #1148 (merge commit 557add0) — option A. The scaffolded release.yml extension caller job now grants the seam a documented token ceiling (contents: read, packages: write, id-token: write, attestations: write); ceiling-not-grant, default no-op stays read-only, consumers opt in per job. Documented in docs/DOWNSTREAM_RELEASE.md. Ships with the next devkit release.

  3. added a commit that references this issue on Jul 17, 2026
  4. added a commit that references this issue on Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:workfloweffort:smallfeaturepriority:low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions