Skip to content

Add reusable job authorization manifests - #189

Draft
lox wants to merge 3 commits into
mainfrom
issue-160-job-authorization-pr
Draft

Add reusable job authorization manifests#189
lox wants to merge 3 commits into
mainfrom
issue-160-job-authorization-pr

Conversation

@lox

@lox lox commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Why

Buildkite’s trusted GitHub Actions plugin upload needs compiler-owned, per-concrete-job authorization evidence before issuing GITHUB_TOKEN across local reusable workflows.

Pairs with buildkite/buildkite#32402. Closes #160.

What

  • Emit canonical BUILDKITE_GHA_JOB_AUTHORIZATION manifests only for concrete jobs that statically require GITHUB_TOKEN, including recursive composite-action defaults.
  • Preserve each exact local reusable-workflow caller chain and bind its effective permissions to the existing concrete plan digest.
  • Match GitHub permission inheritance and replacement semantics while rejecting nested elevation above the caller ceiling.
  • Replace workflow-wide reusable-call exclusion with compiler-verified per-job hosted admission, retaining the explicit root-permissions opt-in and existing provenance boundaries.
  • Document the expanded supported subset and add focused authorization, sibling-path, nested-action, permission, cycle/depth, and tokenless coverage.

Verification

  • mise run check

ampagent and others added 3 commits August 12, 2026 14:17
Match manifest validation and admission to buildkite/buildkite#32402, including inactive permissions and reusable matrix identities.

Amp-Thread-ID: https://ampcode.com/threads/T-019ff5e9-e700-704b-b521-b045ad5892bc
Co-authored-by: Lachlan Donald <lachlan@buildkite.com>
Preserve compiler default permission resolution while requiring explicit root workflow permissions for hosted admission.

Co-authored-by: Lachlan Donald <lachlan@buildkite.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019ff5e9-e700-704b-b521-b045ad5892bc
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.

Support GitHub tokens across local reusable workflows

2 participants