Repository navigation
Add token-broker authentication for GitHub tools and safe outputs - #79105
Conversation
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
|
@copilot do a security / threat analysis of this feature focused on authorization, scope, incident mitigation |
|
@copilot mark feature as experimental |
Security/threat assessment — authorization, scope, and incident mitigation:
No direct client-side scope parameter or fallback bypass was found. The main go/no-go item is proving consumer-level authorization at the broker; the OIDC/job-step boundaries and revocation behavior must also be covered in deployment tests. |
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
The token-broker feature is marked experimental in the shared feature catalog and documentation, and enabling either GitHub API broker option emits the experimental compile warning. I added regression coverage for both options individually and together. Commit: |
|
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Updated all broker consumers and invalidation to use only |
|
✅ Test Quality Sentinel completed test quality analysis. Warning Threat detection engine error Threat detection could not complete its analysis due to a tooling error. This is not a security finding. What happenedThe threat detection engine failed to produce results. Review the workflow run logs to troubleshoot the error. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
🔎 PR Code Quality Reviewer is reviewing code quality for this pull request... |
|
🚀 PR Specification Reviewer has started processing this pull request |
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft. Warning Threat detection engine error Threat detection could not complete its analysis due to a tooling error. This is not a security finding. What happenedThe threat detection engine failed to produce results. Review the workflow run logs to troubleshoot the error.
|
|
🧠 Matt Pocock Skills Reviewer is reviewing this pull request using Matt Pocock's engineering skills... |
|
✅ Ponytail Reviewer completed successfully! Warning Threat detection engine error Threat detection could not complete its analysis due to a tooling error. This is not a security finding. What happenedThe threat detection engine failed to produce results. Review the workflow run logs to troubleshoot the error. Ponytail ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
…broker-support # Conflicts: # pkg/cli/org_rollout.go Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Merged |
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Added an experimental token-broker overview with exchange, authority, and cleanup diagrams in |
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Visual regression check: docs home pageScope:
Comparison is unavailable: no baseline was provisioned, so no unchanged or changed result is claimed. Accessibility inspection (full snapshot read to EOF; no confirmed violations):
Cleanup: browser closed; preview server stopped.
|
Fixed the failing CJS job in
Fixed the CJS failure in |
|
🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:
Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering. Structured data{
"completed_task": 0,
"head": "1c646b8072aacc913372db483657fe0333ee8196",
"kind": "requested",
"schema_version": "1",
"state": "54981f2cbef46336e90bf8521dfa7e3b361b07157626abdf0e188d333f0d49b3",
"work": [
"42e5d572d9d75b7168fe7d0aeda0717cc07e65ed240f6d299e6fec661214f1ac",
"49c80a00fb3786e9cd4801737bd50a4de83978035bb4a487a6bb6689f2c3cd03",
"51e2287c3d1ee41b7e13769862add61dcd292a623cf943abc5968c984e246bcf"
],
"workflow": "pr-sous-chef"
}
|
…broker-support Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Merged |
Visual regression check: docs homepage
Comparison is unavailable because no baseline was provisioned for this run. No page was marked unchanged. Accessibility inspectionThe homepage accessibility snapshot (desktop viewport) was read to end of file. Found: skip link, labelled banner, main navigation, main and contentinfo landmarks, one h1, h2 per region, and exposed tab and tabpanel roles. Possible issue to verify manually:
This is a snapshot review, not an automated audit. Contrast and layout were not measured, and screenshots were not compared against a baseline. CleanupThe browser was closed and the preview server was stopped. The untracked-artifact check was denied by workflow tool permissions and is reported separately.
|
Adds the token broker as an alternative to GitHub App signing keys for GitHub tools and safe outputs, through
tools.github.token-brokerandsafe-outputs.token-broker. Enterprises can issue scoped installation tokens through one broker instead of creating and distributing an App per repository.token-broker:meanstrue; explicittrueandfalsestill work. The compiler rejects a section's broker combined with itsgithub-apporgithub-token, and keeps existing defaults, imports, and per-handler overrides.github-appbroker capability. Tokens are masked and stay in the job that requested them. Only consuming jobs getid-token: write. There is no fallback to other credentials.GH_AW_TOKEN_BROKER_URLActions secret.dispatch-workflowcredential.specs/token-broker/. The model found four gaps, each now closed:safe-outputs.jobsdo not inheritsafe-outputs.token-broker.The broker server is deployment-owned and not part of this PR. Before broad write rollout, deployments must show in real runs that tokens are least-privilege, revoked when the job ends, refused once the job is closed, and expire if cleanup can't run.