diff --git a/.changeset/patch-fix-safe-output-agent-output.md b/.changeset/patch-fix-safe-output-agent-output.md new file mode 100644 index 00000000000..41f7b44f3cb --- /dev/null +++ b/.changeset/patch-fix-safe-output-agent-output.md @@ -0,0 +1,5 @@ +--- +"gh-aw": patch +--- + +Fixed empty GITHUB_AW_AGENT_OUTPUT in safe output jobs by downloading agent_output.json artifact instead of relying on job outputs diff --git a/.github/workflows/artifacts-summary.lock.yml b/.github/workflows/artifacts-summary.lock.yml index bfc4cac7c8c..e033864f871 100644 --- a/.github/workflows/artifacts-summary.lock.yml +++ b/.github/workflows/artifacts-summary.lock.yml @@ -3434,11 +3434,21 @@ jobs: discussion_number: ${{ steps.create_discussion.outputs.discussion_number }} discussion_url: ${{ steps.create_discussion.outputs.discussion_url }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Create Output Discussion id: create_discussion uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_NAME: "Artifacts Summary" GITHUB_AW_DISCUSSION_CATEGORY: "artifacts" with: @@ -3660,11 +3670,21 @@ jobs: tools_reported: ${{ steps.missing_tool.outputs.tools_reported }} total_count: ${{ steps.missing_tool.outputs.total_count }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Record Missing Tool id: missing_tool uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} with: script: | async function main() { diff --git a/.github/workflows/audit-workflows.lock.yml b/.github/workflows/audit-workflows.lock.yml index 92cfc29ab8d..39565979801 100644 --- a/.github/workflows/audit-workflows.lock.yml +++ b/.github/workflows/audit-workflows.lock.yml @@ -3308,11 +3308,21 @@ jobs: discussion_number: ${{ steps.create_discussion.outputs.discussion_number }} discussion_url: ${{ steps.create_discussion.outputs.discussion_url }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Create Output Discussion id: create_discussion uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_NAME: "Agentic Workflow Audit Agent" GITHUB_AW_DISCUSSION_CATEGORY: "audits" with: @@ -3534,11 +3544,21 @@ jobs: tools_reported: ${{ steps.missing_tool.outputs.tools_reported }} total_count: ${{ steps.missing_tool.outputs.total_count }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Record Missing Tool id: missing_tool uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} with: script: | async function main() { diff --git a/.github/workflows/brave.lock.yml b/.github/workflows/brave.lock.yml index 181dacd1221..985294b5e08 100644 --- a/.github/workflows/brave.lock.yml +++ b/.github/workflows/brave.lock.yml @@ -4204,11 +4204,21 @@ jobs: run: | echo "Output: $AGENT_OUTPUT" echo "Output types: $AGENT_OUTPUT_TYPES" + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Add Issue Comment id: add_comment uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_NAME: "Brave Web Search Agent" with: script: | @@ -4497,11 +4507,21 @@ jobs: tools_reported: ${{ steps.missing_tool.outputs.tools_reported }} total_count: ${{ steps.missing_tool.outputs.total_count }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Record Missing Tool id: missing_tool uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} with: script: | async function main() { @@ -4618,11 +4638,21 @@ jobs: echo "Comment Repo: $COMMENT_REPO" echo "Agent Output Types: $AGENT_OUTPUT_TYPES" echo "Agent Conclusion: $AGENT_CONCLUSION" + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Update reaction comment with error notification id: update_reaction uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_COMMENT_ID: ${{ needs.activation.outputs.comment_id }} GITHUB_AW_COMMENT_REPO: ${{ needs.activation.outputs.comment_repo }} GITHUB_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} diff --git a/.github/workflows/changeset-generator.lock.yml b/.github/workflows/changeset-generator.lock.yml index c7f3c7d41a6..7a57d7e2b14 100644 --- a/.github/workflows/changeset-generator.lock.yml +++ b/.github/workflows/changeset-generator.lock.yml @@ -3999,11 +3999,21 @@ jobs: tools_reported: ${{ steps.missing_tool.outputs.tools_reported }} total_count: ${{ steps.missing_tool.outputs.total_count }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Record Missing Tool id: missing_tool uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} with: script: | async function main() { diff --git a/.github/workflows/ci-doctor.lock.yml b/.github/workflows/ci-doctor.lock.yml index b42bb032865..4fa1535ee67 100644 --- a/.github/workflows/ci-doctor.lock.yml +++ b/.github/workflows/ci-doctor.lock.yml @@ -3519,11 +3519,21 @@ jobs: issue_number: ${{ steps.create_issue.outputs.issue_number }} issue_url: ${{ steps.create_issue.outputs.issue_url }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Create Output Issue id: create_issue uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_NAME: "CI Failure Doctor" GITHUB_AW_WORKFLOW_SOURCE: "githubnext/agentics/workflows/ci-doctor.md" GITHUB_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/githubnext/agentics/tree/main/workflows/ci-doctor.md" @@ -3810,11 +3820,21 @@ jobs: run: | echo "Output: $AGENT_OUTPUT" echo "Output types: $AGENT_OUTPUT_TYPES" + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Add Issue Comment id: add_comment uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_NAME: "CI Failure Doctor" GITHUB_AW_WORKFLOW_SOURCE: "githubnext/agentics/workflows/ci-doctor.md" GITHUB_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/githubnext/agentics/tree/main/workflows/ci-doctor.md" @@ -4105,11 +4125,21 @@ jobs: tools_reported: ${{ steps.missing_tool.outputs.tools_reported }} total_count: ${{ steps.missing_tool.outputs.total_count }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Record Missing Tool id: missing_tool uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} with: script: | async function main() { @@ -4227,11 +4257,21 @@ jobs: echo "Comment Repo: $COMMENT_REPO" echo "Agent Output Types: $AGENT_OUTPUT_TYPES" echo "Agent Conclusion: $AGENT_CONCLUSION" + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Update reaction comment with error notification id: update_reaction uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_COMMENT_ID: ${{ needs.activation.outputs.comment_id }} GITHUB_AW_COMMENT_REPO: ${{ needs.activation.outputs.comment_repo }} GITHUB_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} diff --git a/.github/workflows/cli-version-checker.lock.yml b/.github/workflows/cli-version-checker.lock.yml index d661d898f75..ea1204f86a9 100644 --- a/.github/workflows/cli-version-checker.lock.yml +++ b/.github/workflows/cli-version-checker.lock.yml @@ -3211,11 +3211,21 @@ jobs: git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.name "${{ github.workflow }}" echo "Git configured with standard GitHub Actions identity" + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Create Pull Request id: create_pull_request uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_ID: "agent" GITHUB_AW_WORKFLOW_NAME: "CLI Version Checker" GITHUB_AW_BASE_BRANCH: ${{ github.ref_name }} @@ -3631,11 +3641,21 @@ jobs: tools_reported: ${{ steps.missing_tool.outputs.tools_reported }} total_count: ${{ steps.missing_tool.outputs.total_count }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Record Missing Tool id: missing_tool uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} with: script: | async function main() { diff --git a/.github/workflows/daily-doc-updater.lock.yml b/.github/workflows/daily-doc-updater.lock.yml index 0feb950662c..bf6f02fc275 100644 --- a/.github/workflows/daily-doc-updater.lock.yml +++ b/.github/workflows/daily-doc-updater.lock.yml @@ -3353,11 +3353,21 @@ jobs: git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.name "${{ github.workflow }}" echo "Git configured with standard GitHub Actions identity" + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Create Pull Request id: create_pull_request uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_ID: "agent" GITHUB_AW_WORKFLOW_NAME: "Daily Documentation Updater" GITHUB_AW_BASE_BRANCH: ${{ github.ref_name }} @@ -3773,11 +3783,21 @@ jobs: tools_reported: ${{ steps.missing_tool.outputs.tools_reported }} total_count: ${{ steps.missing_tool.outputs.total_count }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Record Missing Tool id: missing_tool uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} with: script: | async function main() { diff --git a/.github/workflows/daily-news.lock.yml b/.github/workflows/daily-news.lock.yml index b687efacaea..45d064efab0 100644 --- a/.github/workflows/daily-news.lock.yml +++ b/.github/workflows/daily-news.lock.yml @@ -3449,11 +3449,21 @@ jobs: discussion_number: ${{ steps.create_discussion.outputs.discussion_number }} discussion_url: ${{ steps.create_discussion.outputs.discussion_url }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Create Output Discussion id: create_discussion uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_NAME: "Daily News" GITHUB_AW_DISCUSSION_CATEGORY: "daily-news" with: @@ -3675,11 +3685,21 @@ jobs: tools_reported: ${{ steps.missing_tool.outputs.tools_reported }} total_count: ${{ steps.missing_tool.outputs.total_count }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Record Missing Tool id: missing_tool uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} with: script: | async function main() { diff --git a/.github/workflows/dev.lock.yml b/.github/workflows/dev.lock.yml index f5424e81d6c..7d7e8630df7 100644 --- a/.github/workflows/dev.lock.yml +++ b/.github/workflows/dev.lock.yml @@ -3834,11 +3834,21 @@ jobs: issue_number: ${{ steps.create_issue.outputs.issue_number }} issue_url: ${{ steps.create_issue.outputs.issue_url }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Create Output Issue id: create_issue uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_NAME: "Dev" GITHUB_AW_SAFE_OUTPUTS_STAGED: "true" with: @@ -4111,11 +4121,21 @@ jobs: tools_reported: ${{ steps.missing_tool.outputs.tools_reported }} total_count: ${{ steps.missing_tool.outputs.total_count }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Record Missing Tool id: missing_tool uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} with: script: | async function main() { diff --git a/.github/workflows/duplicate-code-detector.lock.yml b/.github/workflows/duplicate-code-detector.lock.yml index cd151f14a43..4b0dfd0348c 100644 --- a/.github/workflows/duplicate-code-detector.lock.yml +++ b/.github/workflows/duplicate-code-detector.lock.yml @@ -3043,11 +3043,21 @@ jobs: issue_number: ${{ steps.create_issue.outputs.issue_number }} issue_url: ${{ steps.create_issue.outputs.issue_url }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Create Output Issue id: create_issue uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_NAME: "Duplicate Code Detector" GITHUB_AW_ISSUE_TITLE_PREFIX: "[duplicate-code] " GITHUB_AW_ISSUE_LABELS: "code-quality,automated-analysis" @@ -3321,11 +3331,21 @@ jobs: tools_reported: ${{ steps.missing_tool.outputs.tools_reported }} total_count: ${{ steps.missing_tool.outputs.total_count }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Record Missing Tool id: missing_tool uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} with: script: | async function main() { diff --git a/.github/workflows/example-workflow-analyzer.lock.yml b/.github/workflows/example-workflow-analyzer.lock.yml index e7ad75cea59..f2b6db5c942 100644 --- a/.github/workflows/example-workflow-analyzer.lock.yml +++ b/.github/workflows/example-workflow-analyzer.lock.yml @@ -3019,11 +3019,21 @@ jobs: issue_number: ${{ steps.create_issue.outputs.issue_number }} issue_url: ${{ steps.create_issue.outputs.issue_url }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Create Output Issue id: create_issue uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_NAME: "Weekly Workflow Analysis" GITHUB_AW_ISSUE_TITLE_PREFIX: "[workflow-analysis] " GITHUB_AW_ISSUE_LABELS: "automation,ci-improvement" @@ -3297,11 +3307,21 @@ jobs: tools_reported: ${{ steps.missing_tool.outputs.tools_reported }} total_count: ${{ steps.missing_tool.outputs.total_count }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Record Missing Tool id: missing_tool uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} with: script: | async function main() { diff --git a/.github/workflows/github-mcp-tools-report.lock.yml b/.github/workflows/github-mcp-tools-report.lock.yml index dd8b39c55d4..1aaa4c7736e 100644 --- a/.github/workflows/github-mcp-tools-report.lock.yml +++ b/.github/workflows/github-mcp-tools-report.lock.yml @@ -3526,11 +3526,21 @@ jobs: discussion_number: ${{ steps.create_discussion.outputs.discussion_number }} discussion_url: ${{ steps.create_discussion.outputs.discussion_url }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Create Output Discussion id: create_discussion uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_NAME: "GitHub MCP Remote Server Tools Report Generator" GITHUB_AW_DISCUSSION_CATEGORY: "audits" with: @@ -3773,11 +3783,21 @@ jobs: git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.name "${{ github.workflow }}" echo "Git configured with standard GitHub Actions identity" + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Create Pull Request id: create_pull_request uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_ID: "agent" GITHUB_AW_WORKFLOW_NAME: "GitHub MCP Remote Server Tools Report Generator" GITHUB_AW_BASE_BRANCH: ${{ github.ref_name }} @@ -4193,11 +4213,21 @@ jobs: tools_reported: ${{ steps.missing_tool.outputs.tools_reported }} total_count: ${{ steps.missing_tool.outputs.total_count }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Record Missing Tool id: missing_tool uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} with: script: | async function main() { diff --git a/.github/workflows/go-pattern-detector.lock.yml b/.github/workflows/go-pattern-detector.lock.yml index e30c58a0c3f..3ec980448dc 100644 --- a/.github/workflows/go-pattern-detector.lock.yml +++ b/.github/workflows/go-pattern-detector.lock.yml @@ -3136,11 +3136,21 @@ jobs: issue_number: ${{ steps.create_issue.outputs.issue_number }} issue_url: ${{ steps.create_issue.outputs.issue_url }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Create Output Issue id: create_issue uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_NAME: "Go Pattern Detector" GITHUB_AW_ISSUE_TITLE_PREFIX: "[ast-grep] " GITHUB_AW_ISSUE_LABELS: "code-quality,ast-grep" @@ -3414,11 +3424,21 @@ jobs: tools_reported: ${{ steps.missing_tool.outputs.tools_reported }} total_count: ${{ steps.missing_tool.outputs.total_count }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Record Missing Tool id: missing_tool uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} with: script: | async function main() { diff --git a/.github/workflows/issue-classifier.lock.yml b/.github/workflows/issue-classifier.lock.yml index b3a42870bae..d5676c7a278 100644 --- a/.github/workflows/issue-classifier.lock.yml +++ b/.github/workflows/issue-classifier.lock.yml @@ -2660,11 +2660,21 @@ jobs: outputs: labels_added: ${{ steps.add_labels.outputs.labels_added }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Add Labels id: add_labels uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_LABELS_ALLOWED: "bug,feature,enhancement,documentation" GITHUB_AW_LABELS_MAX_COUNT: 1 with: @@ -2880,11 +2890,21 @@ jobs: tools_reported: ${{ steps.missing_tool.outputs.tools_reported }} total_count: ${{ steps.missing_tool.outputs.total_count }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Record Missing Tool id: missing_tool uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} with: script: | async function main() { diff --git a/.github/workflows/lockfile-stats.lock.yml b/.github/workflows/lockfile-stats.lock.yml index b01136c5c37..ead82234e69 100644 --- a/.github/workflows/lockfile-stats.lock.yml +++ b/.github/workflows/lockfile-stats.lock.yml @@ -3371,11 +3371,21 @@ jobs: discussion_number: ${{ steps.create_discussion.outputs.discussion_number }} discussion_url: ${{ steps.create_discussion.outputs.discussion_url }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Create Output Discussion id: create_discussion uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_NAME: "Lockfile Statistics Analysis Agent" GITHUB_AW_DISCUSSION_CATEGORY: "audits" with: @@ -3597,11 +3607,21 @@ jobs: tools_reported: ${{ steps.missing_tool.outputs.tools_reported }} total_count: ${{ steps.missing_tool.outputs.total_count }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Record Missing Tool id: missing_tool uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} with: script: | async function main() { diff --git a/.github/workflows/mcp-inspector.lock.yml b/.github/workflows/mcp-inspector.lock.yml index 1f21cc85174..f3dffd93c27 100644 --- a/.github/workflows/mcp-inspector.lock.yml +++ b/.github/workflows/mcp-inspector.lock.yml @@ -4396,11 +4396,21 @@ jobs: discussion_number: ${{ steps.create_discussion.outputs.discussion_number }} discussion_url: ${{ steps.create_discussion.outputs.discussion_url }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Create Output Discussion id: create_discussion uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_NAME: "MCP Inspector Agent" GITHUB_AW_DISCUSSION_CATEGORY: "audits" with: @@ -4622,11 +4632,21 @@ jobs: tools_reported: ${{ steps.missing_tool.outputs.tools_reported }} total_count: ${{ steps.missing_tool.outputs.total_count }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Record Missing Tool id: missing_tool uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} with: script: | async function main() { diff --git a/.github/workflows/pdf-summary.lock.yml b/.github/workflows/pdf-summary.lock.yml index e876a57161d..04c5938e411 100644 --- a/.github/workflows/pdf-summary.lock.yml +++ b/.github/workflows/pdf-summary.lock.yml @@ -4157,11 +4157,21 @@ jobs: run: | echo "Output: $AGENT_OUTPUT" echo "Output types: $AGENT_OUTPUT_TYPES" + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Add Issue Comment id: add_comment uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_NAME: "Resource Summarizer Agent" with: script: | @@ -4450,11 +4460,21 @@ jobs: tools_reported: ${{ steps.missing_tool.outputs.tools_reported }} total_count: ${{ steps.missing_tool.outputs.total_count }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Record Missing Tool id: missing_tool uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} with: script: | async function main() { @@ -4571,11 +4591,21 @@ jobs: echo "Comment Repo: $COMMENT_REPO" echo "Agent Output Types: $AGENT_OUTPUT_TYPES" echo "Agent Conclusion: $AGENT_CONCLUSION" + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Update reaction comment with error notification id: update_reaction uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_COMMENT_ID: ${{ needs.activation.outputs.comment_id }} GITHUB_AW_COMMENT_REPO: ${{ needs.activation.outputs.comment_repo }} GITHUB_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} diff --git a/.github/workflows/plan.lock.yml b/.github/workflows/plan.lock.yml index f087bebafc5..a9708da78d4 100644 --- a/.github/workflows/plan.lock.yml +++ b/.github/workflows/plan.lock.yml @@ -4023,11 +4023,21 @@ jobs: issue_number: ${{ steps.create_issue.outputs.issue_number }} issue_url: ${{ steps.create_issue.outputs.issue_url }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Create Output Issue id: create_issue uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_NAME: "Plan Command" GITHUB_AW_ISSUE_TITLE_PREFIX: "[task] " GITHUB_AW_ISSUE_LABELS: "task,ai-generated" @@ -4301,11 +4311,21 @@ jobs: tools_reported: ${{ steps.missing_tool.outputs.tools_reported }} total_count: ${{ steps.missing_tool.outputs.total_count }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Record Missing Tool id: missing_tool uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} with: script: | async function main() { diff --git a/.github/workflows/poem-bot.lock.yml b/.github/workflows/poem-bot.lock.yml index 2780fc524c5..da9dc31d302 100644 --- a/.github/workflows/poem-bot.lock.yml +++ b/.github/workflows/poem-bot.lock.yml @@ -4230,11 +4230,21 @@ jobs: issue_number: ${{ steps.create_issue.outputs.issue_number }} issue_url: ${{ steps.create_issue.outputs.issue_url }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Create Output Issue id: create_issue uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_NAME: "Poem Bot - A Creative Agentic Workflow" GITHUB_AW_ISSUE_TITLE_PREFIX: "[🎭 POEM-BOT] " GITHUB_AW_ISSUE_LABELS: "poetry,automation,ai-generated" @@ -4519,11 +4529,21 @@ jobs: run: | echo "Output: $AGENT_OUTPUT" echo "Output types: $AGENT_OUTPUT_TYPES" + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Add Issue Comment id: add_comment uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_NAME: "Poem Bot - A Creative Agentic Workflow" GITHUB_AW_COMMENT_TARGET: "*" GITHUB_AW_SAFE_OUTPUTS_STAGED: "true" @@ -4817,11 +4837,21 @@ jobs: review_comment_id: ${{ steps.create_pr_review_comment.outputs.review_comment_id }} review_comment_url: ${{ steps.create_pr_review_comment.outputs.review_comment_url }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Create PR Review Comment id: create_pr_review_comment uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_NAME: "Poem Bot - A Creative Agentic Workflow" GITHUB_AW_PR_REVIEW_COMMENT_SIDE: "RIGHT" GITHUB_AW_SAFE_OUTPUTS_STAGED: "true" @@ -5123,11 +5153,21 @@ jobs: git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.name "${{ github.workflow }}" echo "Git configured with standard GitHub Actions identity" + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Create Pull Request id: create_pull_request uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_ID: "agent" GITHUB_AW_WORKFLOW_NAME: "Poem Bot - A Creative Agentic Workflow" GITHUB_AW_BASE_BRANCH: ${{ github.ref_name }} @@ -5547,11 +5587,21 @@ jobs: outputs: labels_added: ${{ steps.add_labels.outputs.labels_added }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Add Labels id: add_labels uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_LABELS_ALLOWED: "poetry,creative,automation,ai-generated,epic,haiku,sonnet,limerick" GITHUB_AW_LABELS_MAX_COUNT: 5 GITHUB_AW_SAFE_OUTPUTS_STAGED: "true" @@ -5769,11 +5819,21 @@ jobs: issue_number: ${{ steps.update_issue.outputs.issue_number }} issue_url: ${{ steps.update_issue.outputs.issue_url }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Update Issue id: update_issue uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_UPDATE_STATUS: true GITHUB_AW_UPDATE_TITLE: true GITHUB_AW_UPDATE_BODY: true @@ -6258,11 +6318,21 @@ jobs: tools_reported: ${{ steps.missing_tool.outputs.tools_reported }} total_count: ${{ steps.missing_tool.outputs.total_count }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Record Missing Tool id: missing_tool uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} with: script: | async function main() { @@ -6566,11 +6636,21 @@ jobs: echo "Comment Repo: $COMMENT_REPO" echo "Agent Output Types: $AGENT_OUTPUT_TYPES" echo "Agent Conclusion: $AGENT_CONCLUSION" + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Update reaction comment with error notification id: update_reaction uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_COMMENT_ID: ${{ needs.activation.outputs.comment_id }} GITHUB_AW_COMMENT_REPO: ${{ needs.activation.outputs.comment_repo }} GITHUB_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} diff --git a/.github/workflows/q.lock.yml b/.github/workflows/q.lock.yml index 680baca46ab..dd9a390b128 100644 --- a/.github/workflows/q.lock.yml +++ b/.github/workflows/q.lock.yml @@ -4552,11 +4552,21 @@ jobs: run: | echo "Output: $AGENT_OUTPUT" echo "Output types: $AGENT_OUTPUT_TYPES" + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Add Issue Comment id: add_comment uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_NAME: "Q" with: script: | @@ -4866,11 +4876,21 @@ jobs: git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.name "${{ github.workflow }}" echo "Git configured with standard GitHub Actions identity" + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Create Pull Request id: create_pull_request uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_ID: "agent" GITHUB_AW_WORKFLOW_NAME: "Q" GITHUB_AW_BASE_BRANCH: ${{ github.ref_name }} @@ -5286,11 +5306,21 @@ jobs: tools_reported: ${{ steps.missing_tool.outputs.tools_reported }} total_count: ${{ steps.missing_tool.outputs.total_count }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Record Missing Tool id: missing_tool uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} with: script: | async function main() { @@ -5408,11 +5438,21 @@ jobs: echo "Comment Repo: $COMMENT_REPO" echo "Agent Output Types: $AGENT_OUTPUT_TYPES" echo "Agent Conclusion: $AGENT_CONCLUSION" + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Update reaction comment with error notification id: update_reaction uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_COMMENT_ID: ${{ needs.activation.outputs.comment_id }} GITHUB_AW_COMMENT_REPO: ${{ needs.activation.outputs.comment_repo }} GITHUB_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} diff --git a/.github/workflows/repo-tree-map.lock.yml b/.github/workflows/repo-tree-map.lock.yml index 092e55ae0da..e8d815905a6 100644 --- a/.github/workflows/repo-tree-map.lock.yml +++ b/.github/workflows/repo-tree-map.lock.yml @@ -3454,11 +3454,21 @@ jobs: discussion_number: ${{ steps.create_discussion.outputs.discussion_number }} discussion_url: ${{ steps.create_discussion.outputs.discussion_url }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Create Output Discussion id: create_discussion uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_NAME: "Repository Tree Map Generator" GITHUB_AW_DISCUSSION_CATEGORY: "dev" with: @@ -3680,11 +3690,21 @@ jobs: tools_reported: ${{ steps.missing_tool.outputs.tools_reported }} total_count: ${{ steps.missing_tool.outputs.total_count }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Record Missing Tool id: missing_tool uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} with: script: | async function main() { diff --git a/.github/workflows/research.lock.yml b/.github/workflows/research.lock.yml index fb20c0dd3a0..586dc1a9577 100644 --- a/.github/workflows/research.lock.yml +++ b/.github/workflows/research.lock.yml @@ -3430,11 +3430,21 @@ jobs: discussion_number: ${{ steps.create_discussion.outputs.discussion_number }} discussion_url: ${{ steps.create_discussion.outputs.discussion_url }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Create Output Discussion id: create_discussion uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_NAME: "Basic Research Agent" GITHUB_AW_DISCUSSION_CATEGORY: "research" with: @@ -3656,11 +3666,21 @@ jobs: tools_reported: ${{ steps.missing_tool.outputs.tools_reported }} total_count: ${{ steps.missing_tool.outputs.total_count }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Record Missing Tool id: missing_tool uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} with: script: | async function main() { diff --git a/.github/workflows/scout.lock.yml b/.github/workflows/scout.lock.yml index 649460d412e..0bacce47709 100644 --- a/.github/workflows/scout.lock.yml +++ b/.github/workflows/scout.lock.yml @@ -4580,11 +4580,21 @@ jobs: run: | echo "Output: $AGENT_OUTPUT" echo "Output types: $AGENT_OUTPUT_TYPES" + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Add Issue Comment id: add_comment uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_NAME: "Scout" with: script: | @@ -4873,11 +4883,21 @@ jobs: tools_reported: ${{ steps.missing_tool.outputs.tools_reported }} total_count: ${{ steps.missing_tool.outputs.total_count }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Record Missing Tool id: missing_tool uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} with: script: | async function main() { @@ -4994,11 +5014,21 @@ jobs: echo "Comment Repo: $COMMENT_REPO" echo "Agent Output Types: $AGENT_OUTPUT_TYPES" echo "Agent Conclusion: $AGENT_CONCLUSION" + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Update reaction comment with error notification id: update_reaction uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_COMMENT_ID: ${{ needs.activation.outputs.comment_id }} GITHUB_AW_COMMENT_REPO: ${{ needs.activation.outputs.comment_repo }} GITHUB_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} diff --git a/.github/workflows/security-fix-pr.lock.yml b/.github/workflows/security-fix-pr.lock.yml index 1003025fd27..3742f1a0a82 100644 --- a/.github/workflows/security-fix-pr.lock.yml +++ b/.github/workflows/security-fix-pr.lock.yml @@ -3298,11 +3298,21 @@ jobs: git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.name "${{ github.workflow }}" echo "Git configured with standard GitHub Actions identity" + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Create Pull Request id: create_pull_request uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_ID: "agent" GITHUB_AW_WORKFLOW_NAME: "Security Fix PR" GITHUB_AW_BASE_BRANCH: ${{ github.ref_name }} @@ -3718,11 +3728,21 @@ jobs: tools_reported: ${{ steps.missing_tool.outputs.tools_reported }} total_count: ${{ steps.missing_tool.outputs.total_count }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Record Missing Tool id: missing_tool uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} with: script: | async function main() { diff --git a/.github/workflows/smoke-claude.lock.yml b/.github/workflows/smoke-claude.lock.yml index f85133750e9..5c2c60f1b2f 100644 --- a/.github/workflows/smoke-claude.lock.yml +++ b/.github/workflows/smoke-claude.lock.yml @@ -2978,11 +2978,21 @@ jobs: issue_number: ${{ steps.create_issue.outputs.issue_number }} issue_url: ${{ steps.create_issue.outputs.issue_url }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Create Output Issue id: create_issue uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_NAME: "Smoke Claude" GITHUB_AW_SAFE_OUTPUTS_STAGED: "true" with: @@ -3255,11 +3265,21 @@ jobs: tools_reported: ${{ steps.missing_tool.outputs.tools_reported }} total_count: ${{ steps.missing_tool.outputs.total_count }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Record Missing Tool id: missing_tool uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} with: script: | async function main() { diff --git a/.github/workflows/smoke-codex.lock.yml b/.github/workflows/smoke-codex.lock.yml index 7a13a3b4731..a678e15ef95 100644 --- a/.github/workflows/smoke-codex.lock.yml +++ b/.github/workflows/smoke-codex.lock.yml @@ -2790,11 +2790,21 @@ jobs: issue_number: ${{ steps.create_issue.outputs.issue_number }} issue_url: ${{ steps.create_issue.outputs.issue_url }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Create Output Issue id: create_issue uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_NAME: "Smoke Codex" GITHUB_AW_SAFE_OUTPUTS_STAGED: "true" with: @@ -3067,11 +3077,21 @@ jobs: tools_reported: ${{ steps.missing_tool.outputs.tools_reported }} total_count: ${{ steps.missing_tool.outputs.total_count }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Record Missing Tool id: missing_tool uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} with: script: | async function main() { diff --git a/.github/workflows/smoke-copilot.lock.yml b/.github/workflows/smoke-copilot.lock.yml index 91dba6d4c1f..b1b9e7b1062 100644 --- a/.github/workflows/smoke-copilot.lock.yml +++ b/.github/workflows/smoke-copilot.lock.yml @@ -3380,11 +3380,21 @@ jobs: issue_number: ${{ steps.create_issue.outputs.issue_number }} issue_url: ${{ steps.create_issue.outputs.issue_url }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Create Output Issue id: create_issue uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_NAME: "Smoke Copilot" GITHUB_AW_SAFE_OUTPUTS_STAGED: "true" with: @@ -3657,11 +3667,21 @@ jobs: tools_reported: ${{ steps.missing_tool.outputs.tools_reported }} total_count: ${{ steps.missing_tool.outputs.total_count }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Record Missing Tool id: missing_tool uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} with: script: | async function main() { diff --git a/.github/workflows/smoke-genaiscript.lock.yml b/.github/workflows/smoke-genaiscript.lock.yml index e0050fc5515..d6e85dbf31a 100644 --- a/.github/workflows/smoke-genaiscript.lock.yml +++ b/.github/workflows/smoke-genaiscript.lock.yml @@ -2149,11 +2149,21 @@ jobs: issue_number: ${{ steps.create_issue.outputs.issue_number }} issue_url: ${{ steps.create_issue.outputs.issue_url }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Create Output Issue id: create_issue uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_NAME: "Smoke GenAIScript" GITHUB_AW_SAFE_OUTPUTS_STAGED: "true" with: @@ -2426,11 +2436,21 @@ jobs: tools_reported: ${{ steps.missing_tool.outputs.tools_reported }} total_count: ${{ steps.missing_tool.outputs.total_count }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Record Missing Tool id: missing_tool uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} with: script: | async function main() { diff --git a/.github/workflows/smoke-opencode.lock.yml b/.github/workflows/smoke-opencode.lock.yml index d6bb2177e8e..673810413ce 100644 --- a/.github/workflows/smoke-opencode.lock.yml +++ b/.github/workflows/smoke-opencode.lock.yml @@ -2117,11 +2117,21 @@ jobs: issue_number: ${{ steps.create_issue.outputs.issue_number }} issue_url: ${{ steps.create_issue.outputs.issue_url }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Create Output Issue id: create_issue uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_NAME: "Smoke OpenCode" GITHUB_AW_SAFE_OUTPUTS_STAGED: "true" with: @@ -2394,11 +2404,21 @@ jobs: tools_reported: ${{ steps.missing_tool.outputs.tools_reported }} total_count: ${{ steps.missing_tool.outputs.total_count }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Record Missing Tool id: missing_tool uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} with: script: | async function main() { diff --git a/.github/workflows/technical-doc-writer.lock.yml b/.github/workflows/technical-doc-writer.lock.yml index d6671842613..850a7cb88b4 100644 --- a/.github/workflows/technical-doc-writer.lock.yml +++ b/.github/workflows/technical-doc-writer.lock.yml @@ -3393,11 +3393,21 @@ jobs: run: | echo "Output: $AGENT_OUTPUT" echo "Output types: $AGENT_OUTPUT_TYPES" + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Add Issue Comment id: add_comment uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_NAME: "Technical Documentation Writer for GitHub Actions" with: script: | @@ -3707,11 +3717,21 @@ jobs: git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.name "${{ github.workflow }}" echo "Git configured with standard GitHub Actions identity" + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Create Pull Request id: create_pull_request uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_ID: "agent" GITHUB_AW_WORKFLOW_NAME: "Technical Documentation Writer for GitHub Actions" GITHUB_AW_BASE_BRANCH: ${{ github.ref_name }} @@ -4127,11 +4147,21 @@ jobs: tools_reported: ${{ steps.missing_tool.outputs.tools_reported }} total_count: ${{ steps.missing_tool.outputs.total_count }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Record Missing Tool id: missing_tool uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} with: script: | async function main() { @@ -4429,11 +4459,21 @@ jobs: echo "Comment Repo: $COMMENT_REPO" echo "Agent Output Types: $AGENT_OUTPUT_TYPES" echo "Agent Conclusion: $AGENT_CONCLUSION" + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Update reaction comment with error notification id: update_reaction uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_COMMENT_ID: ${{ needs.activation.outputs.comment_id }} GITHUB_AW_COMMENT_REPO: ${{ needs.activation.outputs.comment_repo }} GITHUB_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} diff --git a/.github/workflows/tidy.lock.yml b/.github/workflows/tidy.lock.yml index 6636b715d75..9c2fc8beb07 100644 --- a/.github/workflows/tidy.lock.yml +++ b/.github/workflows/tidy.lock.yml @@ -4007,11 +4007,21 @@ jobs: git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.name "${{ github.workflow }}" echo "Git configured with standard GitHub Actions identity" + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Create Pull Request id: create_pull_request uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_ID: "agent" GITHUB_AW_WORKFLOW_NAME: "Tidy" GITHUB_AW_BASE_BRANCH: ${{ github.ref_name }} @@ -4722,11 +4732,21 @@ jobs: tools_reported: ${{ steps.missing_tool.outputs.tools_reported }} total_count: ${{ steps.missing_tool.outputs.total_count }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Record Missing Tool id: missing_tool uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} with: script: | async function main() { diff --git a/.github/workflows/unbloat-docs.lock.yml b/.github/workflows/unbloat-docs.lock.yml index 858adb57231..11a42df8d5f 100644 --- a/.github/workflows/unbloat-docs.lock.yml +++ b/.github/workflows/unbloat-docs.lock.yml @@ -3869,11 +3869,21 @@ jobs: run: | echo "Output: $AGENT_OUTPUT" echo "Output types: $AGENT_OUTPUT_TYPES" + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Add Issue Comment id: add_comment uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_NAME: "Documentation Unbloat" with: script: | @@ -4183,11 +4193,21 @@ jobs: git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.name "${{ github.workflow }}" echo "Git configured with standard GitHub Actions identity" + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Create Pull Request id: create_pull_request uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_WORKFLOW_ID: "agent" GITHUB_AW_WORKFLOW_NAME: "Documentation Unbloat" GITHUB_AW_BASE_BRANCH: ${{ github.ref_name }} @@ -4603,11 +4623,21 @@ jobs: tools_reported: ${{ steps.missing_tool.outputs.tools_reported }} total_count: ${{ steps.missing_tool.outputs.total_count }} steps: + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Record Missing Tool id: missing_tool uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} with: script: | async function main() { @@ -4905,11 +4935,21 @@ jobs: echo "Comment Repo: $COMMENT_REPO" echo "Agent Output Types: $AGENT_OUTPUT_TYPES" echo "Agent Conclusion: $AGENT_CONCLUSION" + - name: Download agent output artifact + continue-on-error: true + uses: actions/download-artifact@v5 + with: + name: agent_output.json + path: /tmp/gh-aw/safe-outputs/ + - name: Setup agent output environment variable + run: | + find /tmp/gh-aw/safe-outputs/ -type f -print + echo "GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/agent_output.json" >> $GITHUB_ENV - name: Update reaction comment with error notification id: update_reaction uses: actions/github-script@v8 env: - GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }} + GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }} GITHUB_AW_COMMENT_ID: ${{ needs.activation.outputs.comment_id }} GITHUB_AW_COMMENT_REPO: ${{ needs.activation.outputs.comment_repo }} GITHUB_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} diff --git a/pkg/workflow/safe_output_helpers.go b/pkg/workflow/safe_output_helpers.go index e4e69dcf6c5..33c4c43c68b 100644 --- a/pkg/workflow/safe_output_helpers.go +++ b/pkg/workflow/safe_output_helpers.go @@ -37,6 +37,9 @@ type GitHubScriptStepConfig struct { func (c *Compiler) buildGitHubScriptStep(data *WorkflowData, config GitHubScriptStepConfig) []string { var steps []string + // Add artifact download steps before the GitHub Script step + steps = append(steps, buildAgentOutputDownloadSteps()...) + // Step name and metadata steps = append(steps, fmt.Sprintf(" - name: %s\n", config.StepName)) steps = append(steps, fmt.Sprintf(" id: %s\n", config.StepID)) @@ -45,8 +48,9 @@ func (c *Compiler) buildGitHubScriptStep(data *WorkflowData, config GitHubScript // Environment variables section steps = append(steps, " env:\n") - // Always add the agent output from the main job - steps = append(steps, fmt.Sprintf(" GITHUB_AW_AGENT_OUTPUT: ${{ needs.%s.outputs.output }}\n", config.MainJobName)) + // Read GITHUB_AW_AGENT_OUTPUT from environment (set by artifact download step) + // instead of directly from job outputs which may be masked by GitHub Actions + steps = append(steps, " GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }}\n") // Add custom environment variables specific to this safe output type steps = append(steps, config.CustomEnvVars...) @@ -66,6 +70,29 @@ func (c *Compiler) buildGitHubScriptStep(data *WorkflowData, config GitHubScript return steps } +// buildAgentOutputDownloadSteps creates steps to download the agent output artifact +// and set the GITHUB_AW_AGENT_OUTPUT environment variable +func buildAgentOutputDownloadSteps() []string { + var steps []string + + // Add step to download agent output artifact + steps = append(steps, " - name: Download agent output artifact\n") + steps = append(steps, " continue-on-error: true\n") + steps = append(steps, " uses: actions/download-artifact@v5\n") + steps = append(steps, " with:\n") + steps = append(steps, fmt.Sprintf(" name: %s\n", "agent_output.json")) // Use constant value directly to avoid import cycle + steps = append(steps, " path: /tmp/gh-aw/safe-outputs/\n") + + // Add environment variables step to set GITHUB_AW_AGENT_OUTPUT + steps = append(steps, " - name: Setup agent output environment variable\n") + steps = append(steps, " run: |\n") + steps = append(steps, " find /tmp/gh-aw/safe-outputs/ -type f -print\n") + // Configure GITHUB_AW_AGENT_OUTPUT to point to downloaded artifact file + steps = append(steps, fmt.Sprintf(" echo \"GITHUB_AW_AGENT_OUTPUT=/tmp/gh-aw/safe-outputs/%s\" >> $GITHUB_ENV\n", "agent_output.json")) + + return steps +} + func generateSafeOutputsConfig(data *WorkflowData) string { // Pass the safe-outputs configuration for validation if data.SafeOutputs == nil { diff --git a/pkg/workflow/safe_output_helpers_test.go b/pkg/workflow/safe_output_helpers_test.go index 8d7cc89b5ab..1a8651b6632 100644 --- a/pkg/workflow/safe_output_helpers_test.go +++ b/pkg/workflow/safe_output_helpers_test.go @@ -28,11 +28,13 @@ func TestBuildGitHubScriptStep(t *testing.T) { Token: "", }, expectedInSteps: []string{ + "- name: Download agent output artifact", + "- name: Setup agent output environment variable", "- name: Test Step", "id: test_step", "uses: actions/github-script@v8", "env:", - "GITHUB_AW_AGENT_OUTPUT: ${{ needs.main_job.outputs.output }}", + "GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }}", "with:", "script: |", "console.log('test');", @@ -55,10 +57,12 @@ func TestBuildGitHubScriptStep(t *testing.T) { Token: "", }, expectedInSteps: []string{ + "- name: Download agent output artifact", + "- name: Setup agent output environment variable", "- name: Create Issue", "id: create_issue", "uses: actions/github-script@v8", - "GITHUB_AW_AGENT_OUTPUT: ${{ needs.agent.outputs.output }}", + "GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }}", "GITHUB_AW_ISSUE_TITLE_PREFIX: \"[bot] \"", "GITHUB_AW_ISSUE_LABELS: \"automation,ai\"", "const issue = true;", @@ -83,9 +87,11 @@ func TestBuildGitHubScriptStep(t *testing.T) { Token: "", }, expectedInSteps: []string{ + "- name: Download agent output artifact", + "- name: Setup agent output environment variable", "- name: Process Output", "id: process", - "GITHUB_AW_AGENT_OUTPUT: ${{ needs.main.outputs.output }}", + "GITHUB_AW_AGENT_OUTPUT: ${{ env.GITHUB_AW_AGENT_OUTPUT }}", "CUSTOM_VAR_1: value1", "CUSTOM_VAR_2: value2", },