"Required if workflow creates or modifies GitHub resources. Operations requiring safe-outputs: autofix-code-scanning-alert, add-comment, add-labels, add-reviewer, assign-milestone, assign-to-agent, close-discussion, close-issue, close-pull-request, create-agent-session, create-agent-task (deprecated, use create-agent-session), create-code-scanning-alert, create-discussion, create-issue, create-project-status-update, create-pull-request, create-pull-request-review-comment, dispatch-workflow, hide-comment, link-sub-issue, mark-pull-request-as-ready-for-review, missing-tool, noop, push-to-pull-request-branch, remove-labels, reply-to-pull-request-review-comment, resolve-pull-request-review-thread, submit-pull-request-review, threat-detection, update-discussion, update-issue, update-project, update-pull-request, update-release, upload-asset. See documentation for complete details."
Add the four missing operations into the alphabetically-appropriate positions in the comma-separated list:
Objective
Update the
$commentfield inpkg/parser/schemas/main_workflow_schema.jsonfor thesafe-outputsproperty to include four operations that are fully implemented in Go and documented but are missing from the$commentstring.Context
Discussion #17442 identified that the
$commentfield forsafe-outputsis incomplete. Four operations are fully defined in the schema, implemented in Go, and documented, but are not listed in the$comment.Missing Operations
The following four operations need to be added to the
$commentinpkg/parser/schemas/main_workflow_schema.jsonat line 3923, within thesafe-outputsobject:assign-to-userunassign-from-usercreate-projectmissing-dataFile to Modify
pkg/parser/schemas/main_workflow_schema.json$commentfield under"safe-outputs")Current
$commentValueExpected Change
Add the four missing operations into the alphabetically-appropriate positions in the comma-separated list:
assign-to-user→ afterassign-to-agentcreate-project→ aftercreate-issue(or nearcreate-project-status-update)missing-data→ aftermark-pull-request-as-ready-for-review(beforemissing-tool)unassign-from-user→ afterupdate-release/upload-assetor alphabetically nearupdate-*Steps
pkg/parser/schemas/main_workflow_schema.json"safe-outputs"object (around line 3921)$commentstring to include all four missing operations in the operations listmake buildto rebuild the binary (schema is embedded via//go:embed)make agent-finishto validateAcceptance Criteria
assign-to-user,unassign-from-user,create-project,missing-data) are present in the$commentfieldmake buildsucceedsmake agent-finishpasses