Add individual github-token support for handler-managed safe outputs #8250
+271
−17
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Three newly added integration tests were failing due to incomplete support for individual
github-tokenproperties on safe output configurations.Changes
Schema: Added
github-tokenproperty to 11 safe output types (create-issue, add-comment, update-issue, etc.) that were missing it inmain_workflow_schema.jsonToken precedence: Implemented
getFirstHandlerIndividualToken()to resolve tokens for the consolidated handler manager step with precedence: individual token → safe-outputs global → top-level → defaultTest expectations: Updated tests to expect
process_safe_outputsstep ID instead of individual step IDs for handler-managed outputsExample
The handler manager step now uses
ISSUE_SPECIFIC_PATwhen present, falling back toSAFE_OUTPUTS_PATif not specified.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/user/usr/bin/gh gh api user --jq .login b/workflows 4569543/b392/_testmain.go /home/REDACTED/go/pkg/mod/golang.org/[email protected]/pkg/tool/linux_amd64/link -s -w -buildmode=exe /home/REDACTED/go/pkg/mod/golang.org/[email protected] -o ithub/workflows -importcfg /usr/bin/git -s -w -buildmode=exe git(http block)/usr/bin/gh gh api user --jq .login -test.paniconexit0 -test.v=true(http block)/usr/bin/gh gh api user --jq .login tags/v5 origin 1e55e9d28eba8914107888677bf22ef4f6c/log.json by/d4a4a629fc7f3infocmp rE6U/17gxpsi6sEq-1 /home/REDACTED/go/xterm-color git rev-�� 749e02e28142627b /home/REDACTED/go/pkg/mod/golang.oconfig e/git runs/20251231-03/usr/bin/containerd-shim-runc-v2 pkg/mod/golang.o-namespace ache/node/24.12.moby e/git(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.