From 0409610305b93a64dcf1a5b4ad105806e46dff41 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 8 Mar 2026 23:53:33 +0000 Subject: [PATCH] docs(instructions): document safe-outputs step action outputs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update Output Variables bullets in github-agentic-workflows.md to list the named step outputs emitted by the safe-outputs handler manager for downstream job consumption: - create-issue → created_issue_number, created_issue_url - create-pull-request → created_pr_number, created_pr_url - add-comment → comment_id, comment_url - push-to-pull-request-branch → push_commit_sha, push_commit_url Mirrors the fix in #20130 (4728d84) that properly emits these outputs from the handler manager via emitSafeOutputActionOutputs(). Co-Authored-By: Claude Sonnet 4.6 --- .github/aw/github-agentic-workflows.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/aw/github-agentic-workflows.md b/.github/aw/github-agentic-workflows.md index 97b848ab90d..1c2081306f3 100644 --- a/.github/aw/github-agentic-workflows.md +++ b/.github/aw/github-agentic-workflows.md @@ -1304,7 +1304,11 @@ Create an issue with your final analysis. - **Permission Separation**: The main job doesn't need `issues: write` permission - **Automatic Processing**: AI output is automatically parsed and converted to GitHub issues - **Job Dependencies**: Issue creation only happens after the coding agent completes successfully -- **Output Variables**: The created issue number and URL are available to downstream jobs +- **Output Variables**: The safe-outputs job emits named step outputs for the first successful result of each type: + - `create-issue` → `created_issue_number`, `created_issue_url` + - `create-pull-request` → `created_pr_number`, `created_pr_url` + - `add-comment` → `comment_id`, `comment_url` + - `push-to-pull-request-branch` → `push_commit_sha`, `push_commit_url` ## Trigger Patterns @@ -1809,7 +1813,11 @@ Create an issue with your final analysis. - **Permission Separation**: The main job doesn't need `issues: write` permission - **Automatic Processing**: AI output is automatically parsed and converted to GitHub issues - **Job Dependencies**: Issue creation only happens after the coding agent completes successfully -- **Output Variables**: The created issue number and URL are available to downstream jobs +- **Output Variables**: The safe-outputs job emits named step outputs for the first successful result of each type: + - `create-issue` → `created_issue_number`, `created_issue_url` + - `create-pull-request` → `created_pr_number`, `created_pr_url` + - `add-comment` → `comment_id`, `comment_url` + - `push-to-pull-request-branch` → `push_commit_sha`, `push_commit_url` ### Automatic Pull Request Creation