diff --git a/.github/workflows/ace-editor.lock.yml b/.github/workflows/ace-editor.lock.yml index 32ef931ae7..a5dad7b5ee 100644 --- a/.github/workflows/ace-editor.lock.yml +++ b/.github/workflows/ace-editor.lock.yml @@ -67,6 +67,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} slash_command: ${{ needs.pre_activation.outputs.matched_command }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} @@ -79,9 +80,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -306,6 +309,7 @@ jobs: effective_tokens: ${{ steps.parse-mcp-gateway.outputs.effective_tokens }} inference_access_error: ${{ steps.detect-inference-error.outputs.inference_access_error || 'false' }} model: ${{ needs.activation.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -315,9 +319,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -623,9 +630,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for command workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 diff --git a/.github/workflows/agent-performance-analyzer.lock.yml b/.github/workflows/agent-performance-analyzer.lock.yml index ecafc156c9..d4310de3ea 100644 --- a/.github/workflows/agent-performance-analyzer.lock.yml +++ b/.github/workflows/agent-performance-analyzer.lock.yml @@ -73,6 +73,7 @@ jobs: comment_repo: "" lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -82,9 +83,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -301,6 +304,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -310,9 +314,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -958,9 +965,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1038,7 +1048,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1057,9 +1069,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1207,9 +1222,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1225,6 +1242,7 @@ jobs: push_repo_memory: needs: + - activation - agent - detection if: > @@ -1249,9 +1267,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -1310,6 +1331,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1347,9 +1369,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/agent-persona-explorer.lock.yml b/.github/workflows/agent-persona-explorer.lock.yml index 41b173ebb2..eff38c1a00 100644 --- a/.github/workflows/agent-persona-explorer.lock.yml +++ b/.github/workflows/agent-persona-explorer.lock.yml @@ -77,6 +77,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -86,9 +87,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -302,6 +305,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -311,9 +315,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -912,9 +919,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -989,7 +999,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1007,9 +1019,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1156,9 +1171,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1174,6 +1191,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1206,9 +1224,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1258,6 +1279,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1277,9 +1299,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/agentic-observability-kit.lock.yml b/.github/workflows/agentic-observability-kit.lock.yml index ebf498667b..55f8922308 100644 --- a/.github/workflows/agentic-observability-kit.lock.yml +++ b/.github/workflows/agentic-observability-kit.lock.yml @@ -74,6 +74,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -83,9 +84,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -290,6 +293,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -299,9 +303,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -908,9 +915,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -988,7 +998,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1006,9 +1018,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1141,6 +1156,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1179,9 +1195,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/ai-moderator.lock.yml b/.github/workflows/ai-moderator.lock.yml index 4955522357..0a490094a4 100644 --- a/.github/workflows/ai-moderator.lock.yml +++ b/.github/workflows/ai-moderator.lock.yml @@ -89,6 +89,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} steps: @@ -100,9 +101,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -334,6 +337,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -343,9 +347,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -880,9 +887,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -970,9 +980,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check user rate limit id: check_rate_limit uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1050,9 +1062,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1119,9 +1134,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Unlock issue after agent workflow id: unlock-issue if: (github.event_name == 'issues' || github.event_name == 'issue_comment') && needs.activation.outputs.issue_locked == 'true' diff --git a/.github/workflows/archie.lock.yml b/.github/workflows/archie.lock.yml index 469cc14b25..545d202b22 100644 --- a/.github/workflows/archie.lock.yml +++ b/.github/workflows/archie.lock.yml @@ -80,6 +80,7 @@ jobs: comment_url: ${{ steps.add-comment.outputs.comment-url }} lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} slash_command: ${{ needs.pre_activation.outputs.matched_command }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} @@ -92,9 +93,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -378,6 +381,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -387,9 +391,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -910,9 +917,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1004,7 +1014,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1023,9 +1035,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1174,9 +1189,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for command workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1203,6 +1220,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1239,9 +1257,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/artifacts-summary.lock.yml b/.github/workflows/artifacts-summary.lock.yml index 0d36efee63..17b95640e9 100644 --- a/.github/workflows/artifacts-summary.lock.yml +++ b/.github/workflows/artifacts-summary.lock.yml @@ -69,6 +69,7 @@ jobs: comment_repo: "" lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -78,9 +79,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -279,6 +282,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -288,9 +292,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -788,9 +795,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -864,7 +874,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -883,9 +895,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1019,6 +1034,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1051,9 +1067,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/audit-workflows.lock.yml b/.github/workflows/audit-workflows.lock.yml index 200489f711..e5a3b2c6cc 100644 --- a/.github/workflows/audit-workflows.lock.yml +++ b/.github/workflows/audit-workflows.lock.yml @@ -81,6 +81,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -90,9 +91,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -321,6 +324,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -330,9 +334,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -1065,9 +1072,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1148,7 +1158,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1166,9 +1178,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1316,6 +1331,7 @@ jobs: push_repo_memory: needs: + - activation - agent - detection if: > @@ -1340,9 +1356,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -1401,6 +1420,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1434,9 +1454,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1486,6 +1509,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1505,9 +1529,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 @@ -1532,7 +1559,9 @@ jobs: path: /tmp/gh-aw/cache-memory upload_assets: - needs: agent + needs: + - activation + - agent if: (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'upload_asset') runs-on: ubuntu-slim permissions: @@ -1550,9 +1579,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: diff --git a/.github/workflows/auto-triage-issues.lock.yml b/.github/workflows/auto-triage-issues.lock.yml index 7b279f549c..de536c4ffe 100644 --- a/.github/workflows/auto-triage-issues.lock.yml +++ b/.github/workflows/auto-triage-issues.lock.yml @@ -76,6 +76,7 @@ jobs: comment_repo: "" lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} steps: @@ -87,9 +88,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -296,6 +299,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -305,9 +309,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -843,9 +850,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -919,7 +929,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -938,9 +950,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1089,9 +1104,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1122,6 +1139,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1155,9 +1173,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/blog-auditor.lock.yml b/.github/workflows/blog-auditor.lock.yml index 51f721f595..7907c68b6c 100644 --- a/.github/workflows/blog-auditor.lock.yml +++ b/.github/workflows/blog-auditor.lock.yml @@ -72,6 +72,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -81,9 +82,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -291,6 +294,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -300,9 +304,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -922,9 +929,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1001,7 +1011,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1019,9 +1031,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1169,6 +1184,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1202,9 +1218,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/bot-detection.lock.yml b/.github/workflows/bot-detection.lock.yml index 86ab6b0092..2f1482607b 100644 --- a/.github/workflows/bot-detection.lock.yml +++ b/.github/workflows/bot-detection.lock.yml @@ -68,6 +68,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -77,9 +78,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -301,6 +304,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -310,9 +314,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -869,9 +876,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1751,7 +1761,9 @@ jobs: core.setOutput("issue_body", issueBody); safe_outputs: - needs: agent + needs: + - activation + - agent if: (!cancelled()) && needs.agent.result != 'skipped' runs-on: ubuntu-slim permissions: @@ -1783,9 +1795,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/brave.lock.yml b/.github/workflows/brave.lock.yml index a2e6dd30c3..ca8d89c66d 100644 --- a/.github/workflows/brave.lock.yml +++ b/.github/workflows/brave.lock.yml @@ -70,6 +70,7 @@ jobs: comment_url: ${{ steps.add-comment.outputs.comment-url }} lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} slash_command: ${{ needs.pre_activation.outputs.matched_command }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} @@ -82,9 +83,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -335,6 +338,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -344,9 +348,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -857,9 +864,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -951,7 +961,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -970,9 +982,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1121,9 +1136,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for command workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1150,6 +1167,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1186,9 +1204,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/breaking-change-checker.lock.yml b/.github/workflows/breaking-change-checker.lock.yml index aec82c3500..6ee3e0a7d0 100644 --- a/.github/workflows/breaking-change-checker.lock.yml +++ b/.github/workflows/breaking-change-checker.lock.yml @@ -73,6 +73,7 @@ jobs: comment_repo: "" lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -82,9 +83,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -287,6 +290,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -296,9 +300,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -822,9 +829,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -902,7 +912,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -921,9 +933,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1071,9 +1086,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1102,6 +1119,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1139,9 +1157,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/changeset.lock.yml b/.github/workflows/changeset.lock.yml index bd245b8a8b..92ea189642 100644 --- a/.github/workflows/changeset.lock.yml +++ b/.github/workflows/changeset.lock.yml @@ -88,6 +88,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} steps: @@ -99,9 +100,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -339,6 +342,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -348,9 +352,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -893,9 +900,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -988,9 +998,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1039,9 +1051,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/ci-coach.lock.yml b/.github/workflows/ci-coach.lock.yml index fa7523977a..583f7c99bf 100644 --- a/.github/workflows/ci-coach.lock.yml +++ b/.github/workflows/ci-coach.lock.yml @@ -76,6 +76,7 @@ jobs: comment_repo: "" lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -85,9 +86,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -304,6 +307,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -313,9 +317,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -889,9 +896,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -968,7 +978,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -987,9 +999,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1159,9 +1174,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1249,6 +1267,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1268,9 +1287,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/ci-doctor.lock.yml b/.github/workflows/ci-doctor.lock.yml index 40ca9abfbf..a0b29a46ed 100644 --- a/.github/workflows/ci-doctor.lock.yml +++ b/.github/workflows/ci-doctor.lock.yml @@ -85,6 +85,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -94,9 +95,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -378,6 +381,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -387,9 +391,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -1028,9 +1035,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1128,7 +1138,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1146,9 +1158,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1294,9 +1309,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1312,6 +1329,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1352,9 +1370,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1404,6 +1425,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1423,9 +1445,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/claude-code-user-docs-review.lock.yml b/.github/workflows/claude-code-user-docs-review.lock.yml index 39cbd71ec9..e204419d06 100644 --- a/.github/workflows/claude-code-user-docs-review.lock.yml +++ b/.github/workflows/claude-code-user-docs-review.lock.yml @@ -74,6 +74,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -83,9 +84,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -298,6 +301,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -307,9 +311,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -895,9 +902,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -974,7 +984,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -993,9 +1005,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1143,6 +1158,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1176,9 +1192,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1228,6 +1247,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1247,9 +1267,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/cli-consistency-checker.lock.yml b/.github/workflows/cli-consistency-checker.lock.yml index 55eef3e4f7..e1711477ad 100644 --- a/.github/workflows/cli-consistency-checker.lock.yml +++ b/.github/workflows/cli-consistency-checker.lock.yml @@ -64,6 +64,7 @@ jobs: comment_repo: "" lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -73,9 +74,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -275,6 +278,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -284,9 +288,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -790,9 +797,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -864,7 +874,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -883,9 +895,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1019,6 +1034,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1052,9 +1068,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/cli-version-checker.lock.yml b/.github/workflows/cli-version-checker.lock.yml index 4f9f647ca5..a0182a918f 100644 --- a/.github/workflows/cli-version-checker.lock.yml +++ b/.github/workflows/cli-version-checker.lock.yml @@ -74,6 +74,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -83,9 +84,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -296,6 +299,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -305,9 +309,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -903,9 +910,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -977,7 +987,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -995,9 +1007,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1145,6 +1160,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1178,9 +1194,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1230,6 +1249,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1249,9 +1269,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/cloclo.lock.yml b/.github/workflows/cloclo.lock.yml index 974deb724c..fb4a2d28ba 100644 --- a/.github/workflows/cloclo.lock.yml +++ b/.github/workflows/cloclo.lock.yml @@ -106,6 +106,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} slash_command: ${{ needs.pre_activation.outputs.matched_command }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} @@ -118,9 +119,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -447,6 +450,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -456,9 +460,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -1246,9 +1253,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1342,7 +1352,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1360,9 +1372,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1525,9 +1540,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for command workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1593,9 +1610,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1683,6 +1703,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1702,9 +1723,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/code-scanning-fixer.lock.yml b/.github/workflows/code-scanning-fixer.lock.yml index 22766d599e..fa8a0799a2 100644 --- a/.github/workflows/code-scanning-fixer.lock.yml +++ b/.github/workflows/code-scanning-fixer.lock.yml @@ -71,6 +71,7 @@ jobs: comment_repo: "" lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -80,9 +81,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -295,6 +298,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -304,9 +308,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -881,9 +888,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -961,7 +971,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -980,9 +992,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1130,9 +1145,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1161,6 +1178,7 @@ jobs: push_repo_memory: needs: + - activation - agent - detection if: > @@ -1185,9 +1203,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -1281,9 +1302,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1371,6 +1395,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1390,9 +1415,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/code-simplifier.lock.yml b/.github/workflows/code-simplifier.lock.yml index 864ae34468..2c0979e00c 100644 --- a/.github/workflows/code-simplifier.lock.yml +++ b/.github/workflows/code-simplifier.lock.yml @@ -75,6 +75,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -84,9 +85,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -296,6 +299,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -305,9 +309,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -815,9 +822,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -895,7 +905,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -913,9 +925,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1062,9 +1077,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1129,9 +1146,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/codex-github-remote-mcp-test.lock.yml b/.github/workflows/codex-github-remote-mcp-test.lock.yml index d0f79ec94a..15c9bb10a4 100644 --- a/.github/workflows/codex-github-remote-mcp-test.lock.yml +++ b/.github/workflows/codex-github-remote-mcp-test.lock.yml @@ -65,6 +65,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -74,9 +75,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -262,6 +265,7 @@ jobs: checkout_pr_success: ${{ steps.checkout-pr.outputs.checkout_pr_success || 'true' }} effective_tokens: ${{ steps.parse-mcp-gateway.outputs.effective_tokens }} model: ${{ needs.activation.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -271,9 +275,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: diff --git a/.github/workflows/commit-changes-analyzer.lock.yml b/.github/workflows/commit-changes-analyzer.lock.yml index 413b2344e6..b5378c5032 100644 --- a/.github/workflows/commit-changes-analyzer.lock.yml +++ b/.github/workflows/commit-changes-analyzer.lock.yml @@ -72,6 +72,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -81,9 +82,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -288,6 +291,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -297,9 +301,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -855,9 +862,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -931,7 +941,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -949,9 +961,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1099,6 +1114,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1131,9 +1147,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/constraint-solving-potd.lock.yml b/.github/workflows/constraint-solving-potd.lock.yml index 1c2674560b..e5d8d5f4a4 100644 --- a/.github/workflows/constraint-solving-potd.lock.yml +++ b/.github/workflows/constraint-solving-potd.lock.yml @@ -67,6 +67,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -76,9 +77,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -284,6 +287,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -293,9 +297,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -807,9 +814,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -883,7 +893,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -901,9 +913,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1036,6 +1051,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1068,9 +1084,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1120,6 +1139,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1139,9 +1159,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/contribution-check.lock.yml b/.github/workflows/contribution-check.lock.yml index 7bb38b8cab..4885b2cf97 100644 --- a/.github/workflows/contribution-check.lock.yml +++ b/.github/workflows/contribution-check.lock.yml @@ -68,6 +68,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -77,9 +78,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -285,6 +288,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -294,9 +298,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -841,9 +848,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -916,7 +926,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -934,9 +946,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1069,6 +1084,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1106,9 +1122,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/copilot-agent-analysis.lock.yml b/.github/workflows/copilot-agent-analysis.lock.yml index 1bcbf9ff46..0fd1dfc858 100644 --- a/.github/workflows/copilot-agent-analysis.lock.yml +++ b/.github/workflows/copilot-agent-analysis.lock.yml @@ -78,6 +78,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -87,9 +88,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -316,6 +319,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -325,9 +329,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -944,9 +951,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1024,7 +1034,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1042,9 +1054,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1192,6 +1207,7 @@ jobs: push_repo_memory: needs: + - activation - agent - detection if: > @@ -1216,9 +1232,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -1277,6 +1296,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1309,9 +1329,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1361,6 +1384,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1380,9 +1404,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/copilot-cli-deep-research.lock.yml b/.github/workflows/copilot-cli-deep-research.lock.yml index 16f3f6831f..135580b9da 100644 --- a/.github/workflows/copilot-cli-deep-research.lock.yml +++ b/.github/workflows/copilot-cli-deep-research.lock.yml @@ -68,6 +68,7 @@ jobs: comment_repo: "" lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -77,9 +78,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -296,6 +299,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -305,9 +309,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -847,9 +854,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -927,7 +937,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -946,9 +958,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1082,6 +1097,7 @@ jobs: push_repo_memory: needs: + - activation - agent - detection if: > @@ -1106,9 +1122,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -1167,6 +1186,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1199,9 +1219,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/copilot-pr-merged-report.lock.yml b/.github/workflows/copilot-pr-merged-report.lock.yml index 9d537199f5..6d24e27417 100644 --- a/.github/workflows/copilot-pr-merged-report.lock.yml +++ b/.github/workflows/copilot-pr-merged-report.lock.yml @@ -75,6 +75,7 @@ jobs: comment_repo: "" lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -84,9 +85,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -298,6 +301,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -307,9 +311,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -976,9 +983,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1052,7 +1062,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1071,9 +1083,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1207,6 +1222,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1239,9 +1255,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1291,6 +1310,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1310,9 +1330,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/copilot-pr-nlp-analysis.lock.yml b/.github/workflows/copilot-pr-nlp-analysis.lock.yml index 2cdfc7d967..5f4ad299fb 100644 --- a/.github/workflows/copilot-pr-nlp-analysis.lock.yml +++ b/.github/workflows/copilot-pr-nlp-analysis.lock.yml @@ -78,6 +78,7 @@ jobs: comment_repo: "" lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -87,9 +88,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -318,6 +321,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -327,9 +331,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -944,9 +951,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1024,7 +1034,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1043,9 +1055,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1179,6 +1194,7 @@ jobs: push_repo_memory: needs: + - activation - agent - detection if: > @@ -1203,9 +1219,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -1264,6 +1283,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1296,9 +1316,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1348,6 +1371,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1367,9 +1391,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 @@ -1394,7 +1421,9 @@ jobs: path: /tmp/gh-aw/cache-memory upload_assets: - needs: agent + needs: + - activation + - agent if: (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'upload_asset') runs-on: ubuntu-slim permissions: @@ -1412,9 +1441,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: diff --git a/.github/workflows/copilot-pr-prompt-analysis.lock.yml b/.github/workflows/copilot-pr-prompt-analysis.lock.yml index 289c028e8e..68e0879728 100644 --- a/.github/workflows/copilot-pr-prompt-analysis.lock.yml +++ b/.github/workflows/copilot-pr-prompt-analysis.lock.yml @@ -75,6 +75,7 @@ jobs: comment_repo: "" lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -84,9 +85,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -311,6 +314,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -320,9 +324,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -878,9 +885,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -958,7 +968,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -977,9 +989,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1113,6 +1128,7 @@ jobs: push_repo_memory: needs: + - activation - agent - detection if: > @@ -1137,9 +1153,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -1198,6 +1217,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1230,9 +1250,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1282,6 +1305,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1301,9 +1325,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/copilot-session-insights.lock.yml b/.github/workflows/copilot-session-insights.lock.yml index c9233c5761..c95113b5a4 100644 --- a/.github/workflows/copilot-session-insights.lock.yml +++ b/.github/workflows/copilot-session-insights.lock.yml @@ -81,6 +81,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -90,9 +91,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -328,6 +331,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -337,9 +341,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -1008,9 +1015,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1088,7 +1098,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1106,9 +1118,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1256,6 +1271,7 @@ jobs: push_repo_memory: needs: + - activation - agent - detection if: > @@ -1280,9 +1296,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -1341,6 +1360,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1373,9 +1393,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1425,6 +1448,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1444,9 +1468,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 @@ -1471,7 +1498,9 @@ jobs: path: /tmp/gh-aw/cache-memory upload_assets: - needs: agent + needs: + - activation + - agent if: (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'upload_asset') runs-on: ubuntu-slim permissions: @@ -1489,9 +1518,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: diff --git a/.github/workflows/craft.lock.yml b/.github/workflows/craft.lock.yml index 25a6d45f55..acabc068ac 100644 --- a/.github/workflows/craft.lock.yml +++ b/.github/workflows/craft.lock.yml @@ -67,6 +67,7 @@ jobs: comment_url: ${{ steps.add-comment.outputs.comment-url }} lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} slash_command: ${{ needs.pre_activation.outputs.matched_command }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} @@ -79,9 +80,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -333,6 +336,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -342,9 +346,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -861,9 +868,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -957,7 +967,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -976,9 +988,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1127,9 +1142,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for command workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1195,9 +1212,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/daily-architecture-diagram.lock.yml b/.github/workflows/daily-architecture-diagram.lock.yml index 79b9ae1f01..60702db183 100644 --- a/.github/workflows/daily-architecture-diagram.lock.yml +++ b/.github/workflows/daily-architecture-diagram.lock.yml @@ -71,6 +71,7 @@ jobs: comment_repo: "" lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -80,9 +81,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -290,6 +293,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -299,9 +303,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -870,9 +877,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -946,7 +956,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -965,9 +977,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1138,9 +1153,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1228,6 +1246,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1247,9 +1266,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/daily-assign-issue-to-user.lock.yml b/.github/workflows/daily-assign-issue-to-user.lock.yml index 0a1473f884..d0373d4881 100644 --- a/.github/workflows/daily-assign-issue-to-user.lock.yml +++ b/.github/workflows/daily-assign-issue-to-user.lock.yml @@ -63,6 +63,7 @@ jobs: comment_repo: "" lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -72,9 +73,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -271,6 +274,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -280,9 +284,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -795,9 +802,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -869,7 +879,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -888,9 +900,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1024,6 +1039,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1060,9 +1076,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/daily-choice-test.lock.yml b/.github/workflows/daily-choice-test.lock.yml index 0f2a77f8b1..a4b75175fd 100644 --- a/.github/workflows/daily-choice-test.lock.yml +++ b/.github/workflows/daily-choice-test.lock.yml @@ -67,6 +67,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -76,9 +77,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -278,6 +281,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -287,9 +291,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -847,9 +854,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -924,7 +934,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -942,9 +954,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1092,6 +1107,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1123,9 +1139,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/daily-cli-performance.lock.yml b/.github/workflows/daily-cli-performance.lock.yml index 88b08b8a9c..952eb76cf7 100644 --- a/.github/workflows/daily-cli-performance.lock.yml +++ b/.github/workflows/daily-cli-performance.lock.yml @@ -96,6 +96,7 @@ jobs: comment_repo: "" lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -105,9 +106,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -328,6 +331,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -337,9 +341,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -1035,9 +1042,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1116,7 +1126,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1135,9 +1147,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1287,9 +1302,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1325,6 +1342,7 @@ jobs: push_repo_memory: needs: + - activation - agent - detection if: > @@ -1349,9 +1367,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -1410,6 +1431,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1448,9 +1470,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/daily-cli-tools-tester.lock.yml b/.github/workflows/daily-cli-tools-tester.lock.yml index b9f89545c3..4b35bf2177 100644 --- a/.github/workflows/daily-cli-tools-tester.lock.yml +++ b/.github/workflows/daily-cli-tools-tester.lock.yml @@ -73,6 +73,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -82,9 +83,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -290,6 +293,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -299,9 +303,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -879,9 +886,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -954,7 +964,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -972,9 +984,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1107,6 +1122,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1140,9 +1156,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/daily-code-metrics.lock.yml b/.github/workflows/daily-code-metrics.lock.yml index 4220be6f4b..dac4f0d837 100644 --- a/.github/workflows/daily-code-metrics.lock.yml +++ b/.github/workflows/daily-code-metrics.lock.yml @@ -77,6 +77,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -86,9 +87,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -314,6 +317,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -323,9 +327,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -984,9 +991,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1067,7 +1077,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1085,9 +1097,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1235,6 +1250,7 @@ jobs: push_repo_memory: needs: + - activation - agent - detection if: > @@ -1259,9 +1275,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -1320,6 +1339,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1353,9 +1373,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1405,6 +1428,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1424,9 +1448,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 @@ -1451,7 +1478,9 @@ jobs: path: /tmp/gh-aw/cache-memory upload_assets: - needs: agent + needs: + - activation + - agent if: (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'upload_asset') runs-on: ubuntu-slim permissions: @@ -1469,9 +1498,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: diff --git a/.github/workflows/daily-community-attribution.lock.yml b/.github/workflows/daily-community-attribution.lock.yml index 1ae1484f1e..a96f161c2d 100644 --- a/.github/workflows/daily-community-attribution.lock.yml +++ b/.github/workflows/daily-community-attribution.lock.yml @@ -71,6 +71,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -80,9 +81,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -300,6 +303,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -309,9 +313,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -881,9 +888,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -962,7 +972,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -980,9 +992,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1115,6 +1130,7 @@ jobs: push_repo_memory: needs: + - activation - agent - detection if: > @@ -1139,9 +1155,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -1235,9 +1254,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/daily-compiler-quality.lock.yml b/.github/workflows/daily-compiler-quality.lock.yml index 44229f73dd..07ec5dbfc4 100644 --- a/.github/workflows/daily-compiler-quality.lock.yml +++ b/.github/workflows/daily-compiler-quality.lock.yml @@ -74,6 +74,7 @@ jobs: comment_repo: "" lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -83,9 +84,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -325,6 +328,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -334,9 +338,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -919,9 +926,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -998,7 +1008,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1017,9 +1029,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1153,6 +1168,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1186,9 +1202,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1238,6 +1257,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1257,9 +1277,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/daily-copilot-token-report.lock.yml b/.github/workflows/daily-copilot-token-report.lock.yml index e8125167ca..f01ef4b52b 100644 --- a/.github/workflows/daily-copilot-token-report.lock.yml +++ b/.github/workflows/daily-copilot-token-report.lock.yml @@ -78,6 +78,7 @@ jobs: comment_repo: "" lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -87,9 +88,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -313,6 +316,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -322,9 +326,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -966,9 +973,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1049,7 +1059,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1068,9 +1080,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1204,6 +1219,7 @@ jobs: push_repo_memory: needs: + - activation - agent - detection if: > @@ -1228,9 +1244,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -1289,6 +1308,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1322,9 +1342,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1374,6 +1397,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1393,9 +1417,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 @@ -1420,7 +1447,9 @@ jobs: path: /tmp/gh-aw/cache-memory upload_assets: - needs: agent + needs: + - activation + - agent if: (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'upload_asset') runs-on: ubuntu-slim permissions: @@ -1438,9 +1467,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: diff --git a/.github/workflows/daily-doc-healer.lock.yml b/.github/workflows/daily-doc-healer.lock.yml index 7407192eb4..f64604de32 100644 --- a/.github/workflows/daily-doc-healer.lock.yml +++ b/.github/workflows/daily-doc-healer.lock.yml @@ -77,6 +77,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -86,9 +87,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -319,6 +322,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -328,9 +332,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -1042,9 +1049,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1123,7 +1133,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1141,9 +1153,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1304,9 +1319,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository for qmd indexing uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -1400,9 +1418,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1505,6 +1526,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1524,9 +1546,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/daily-doc-updater.lock.yml b/.github/workflows/daily-doc-updater.lock.yml index 354ca5a138..5abfd6ca4b 100644 --- a/.github/workflows/daily-doc-updater.lock.yml +++ b/.github/workflows/daily-doc-updater.lock.yml @@ -76,6 +76,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -85,9 +86,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -318,6 +321,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -327,9 +331,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -1009,9 +1016,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1088,7 +1098,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1106,9 +1118,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1269,9 +1284,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository for qmd indexing uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -1373,9 +1391,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1463,6 +1484,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1482,9 +1504,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/daily-fact.lock.yml b/.github/workflows/daily-fact.lock.yml index cfd000e42f..0e34054a38 100644 --- a/.github/workflows/daily-fact.lock.yml +++ b/.github/workflows/daily-fact.lock.yml @@ -70,6 +70,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -79,9 +80,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -352,6 +355,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -361,9 +365,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -870,9 +877,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -948,7 +958,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -966,9 +978,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1099,6 +1114,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1136,9 +1152,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/daily-file-diet.lock.yml b/.github/workflows/daily-file-diet.lock.yml index 7a1be41b0c..f55bb6ca6c 100644 --- a/.github/workflows/daily-file-diet.lock.yml +++ b/.github/workflows/daily-file-diet.lock.yml @@ -76,6 +76,7 @@ jobs: comment_repo: "" lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -85,9 +86,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -324,6 +327,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -333,9 +337,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -893,9 +900,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -970,7 +980,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -989,9 +1001,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1139,9 +1154,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1170,6 +1187,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1204,9 +1222,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/daily-firewall-report.lock.yml b/.github/workflows/daily-firewall-report.lock.yml index dca6285ff8..3fca43d365 100644 --- a/.github/workflows/daily-firewall-report.lock.yml +++ b/.github/workflows/daily-firewall-report.lock.yml @@ -78,6 +78,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -87,9 +88,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -305,6 +308,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -314,9 +318,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -966,9 +973,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1046,7 +1056,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1064,9 +1076,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1199,6 +1214,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1232,9 +1248,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1284,6 +1303,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1303,9 +1323,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 @@ -1330,7 +1353,9 @@ jobs: path: /tmp/gh-aw/cache-memory upload_assets: - needs: agent + needs: + - activation + - agent if: (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'upload_asset') runs-on: ubuntu-slim permissions: @@ -1348,9 +1373,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: diff --git a/.github/workflows/daily-function-namer.lock.yml b/.github/workflows/daily-function-namer.lock.yml index be5317bfdb..a812674247 100644 --- a/.github/workflows/daily-function-namer.lock.yml +++ b/.github/workflows/daily-function-namer.lock.yml @@ -75,6 +75,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -84,9 +85,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -329,6 +332,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -338,9 +342,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -958,9 +965,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1035,7 +1045,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1053,9 +1065,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1203,6 +1218,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1237,9 +1253,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1289,6 +1308,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1308,9 +1328,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/daily-integrity-analysis.lock.yml b/.github/workflows/daily-integrity-analysis.lock.yml index abdc93ced1..901b7fe728 100644 --- a/.github/workflows/daily-integrity-analysis.lock.yml +++ b/.github/workflows/daily-integrity-analysis.lock.yml @@ -78,6 +78,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -87,9 +88,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -306,6 +309,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -315,9 +319,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -983,9 +990,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1063,7 +1073,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1081,9 +1093,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1216,6 +1231,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1249,9 +1265,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1301,6 +1320,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1320,9 +1340,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 @@ -1347,7 +1370,9 @@ jobs: path: /tmp/gh-aw/cache-memory upload_assets: - needs: agent + needs: + - activation + - agent if: (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'upload_asset') runs-on: ubuntu-slim permissions: @@ -1365,9 +1390,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: diff --git a/.github/workflows/daily-issues-report.lock.yml b/.github/workflows/daily-issues-report.lock.yml index 26e8994b8d..c55c023e92 100644 --- a/.github/workflows/daily-issues-report.lock.yml +++ b/.github/workflows/daily-issues-report.lock.yml @@ -84,6 +84,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -93,9 +94,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -318,6 +321,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -327,9 +331,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -951,9 +958,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1030,7 +1040,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1048,9 +1060,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1195,9 +1210,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1213,6 +1230,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1246,9 +1264,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1298,6 +1319,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1317,9 +1339,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 @@ -1344,7 +1369,9 @@ jobs: path: /tmp/gh-aw/cache-memory upload_assets: - needs: agent + needs: + - activation + - agent if: (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'upload_asset') runs-on: ubuntu-slim permissions: @@ -1362,9 +1389,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: diff --git a/.github/workflows/daily-malicious-code-scan.lock.yml b/.github/workflows/daily-malicious-code-scan.lock.yml index d7a5841ffb..3b09230543 100644 --- a/.github/workflows/daily-malicious-code-scan.lock.yml +++ b/.github/workflows/daily-malicious-code-scan.lock.yml @@ -69,6 +69,7 @@ jobs: comment_repo: "" lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -78,9 +79,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -279,6 +282,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -288,9 +292,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -798,9 +805,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -875,7 +885,9 @@ jobs: await main(); safe_outputs: - needs: agent + needs: + - activation + - agent if: (!cancelled()) && needs.agent.result != 'skipped' runs-on: ubuntu-slim permissions: @@ -907,9 +919,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/daily-mcp-concurrency-analysis.lock.yml b/.github/workflows/daily-mcp-concurrency-analysis.lock.yml index 1eb0b86c81..c927a20f7c 100644 --- a/.github/workflows/daily-mcp-concurrency-analysis.lock.yml +++ b/.github/workflows/daily-mcp-concurrency-analysis.lock.yml @@ -73,6 +73,7 @@ jobs: comment_repo: "" lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -82,9 +83,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -323,6 +326,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -332,9 +336,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -935,9 +942,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1012,7 +1022,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1031,9 +1043,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1167,6 +1182,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1203,9 +1219,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1267,6 +1286,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1286,9 +1306,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/daily-multi-device-docs-tester.lock.yml b/.github/workflows/daily-multi-device-docs-tester.lock.yml index 1b63cb7ddc..fb59da5c99 100644 --- a/.github/workflows/daily-multi-device-docs-tester.lock.yml +++ b/.github/workflows/daily-multi-device-docs-tester.lock.yml @@ -76,6 +76,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -85,9 +86,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -300,6 +303,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -309,9 +313,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -972,9 +979,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1049,7 +1059,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1067,9 +1079,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1217,6 +1232,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1251,9 +1267,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1302,7 +1321,9 @@ jobs: if-no-files-found: ignore upload_assets: - needs: agent + needs: + - activation + - agent if: (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'upload_asset') runs-on: ubuntu-slim permissions: @@ -1320,9 +1341,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: diff --git a/.github/workflows/daily-news.lock.yml b/.github/workflows/daily-news.lock.yml index d0f8046169..e45dc50a96 100644 --- a/.github/workflows/daily-news.lock.yml +++ b/.github/workflows/daily-news.lock.yml @@ -77,6 +77,7 @@ jobs: comment_repo: "" lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -86,9 +87,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -315,6 +318,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -324,9 +328,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -1018,9 +1025,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1101,7 +1111,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1120,9 +1132,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1256,6 +1271,7 @@ jobs: push_repo_memory: needs: + - activation - agent - detection if: > @@ -1280,9 +1296,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -1341,6 +1360,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1374,9 +1394,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1426,6 +1449,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1445,9 +1469,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 @@ -1472,7 +1499,9 @@ jobs: path: /tmp/gh-aw/cache-memory upload_assets: - needs: agent + needs: + - activation + - agent if: (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'upload_asset') runs-on: ubuntu-slim permissions: @@ -1490,9 +1519,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: diff --git a/.github/workflows/daily-observability-report.lock.yml b/.github/workflows/daily-observability-report.lock.yml index 6fd2199bd7..ad5a522cd2 100644 --- a/.github/workflows/daily-observability-report.lock.yml +++ b/.github/workflows/daily-observability-report.lock.yml @@ -78,6 +78,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -87,9 +88,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -298,6 +301,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -307,9 +311,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -906,9 +913,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -985,7 +995,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1003,9 +1015,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1150,9 +1165,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1168,6 +1185,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1201,9 +1219,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/daily-performance-summary.lock.yml b/.github/workflows/daily-performance-summary.lock.yml index b032a8d989..c947a081c3 100644 --- a/.github/workflows/daily-performance-summary.lock.yml +++ b/.github/workflows/daily-performance-summary.lock.yml @@ -76,6 +76,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -85,9 +86,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -304,6 +307,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -313,9 +317,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -1375,9 +1382,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1455,7 +1465,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1473,9 +1485,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1608,6 +1623,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1641,9 +1657,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1693,6 +1712,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1712,9 +1732,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 @@ -1739,7 +1762,9 @@ jobs: path: /tmp/gh-aw/cache-memory upload_assets: - needs: agent + needs: + - activation + - agent if: (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'upload_asset') runs-on: ubuntu-slim permissions: @@ -1757,9 +1782,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: diff --git a/.github/workflows/daily-regulatory.lock.yml b/.github/workflows/daily-regulatory.lock.yml index 208960540d..887c6b04b6 100644 --- a/.github/workflows/daily-regulatory.lock.yml +++ b/.github/workflows/daily-regulatory.lock.yml @@ -72,6 +72,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -81,9 +82,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -290,6 +293,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -299,9 +303,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -1283,9 +1290,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1363,7 +1373,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1381,9 +1393,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1516,6 +1531,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1549,9 +1565,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/daily-rendering-scripts-verifier.lock.yml b/.github/workflows/daily-rendering-scripts-verifier.lock.yml index 597b51f719..69ce8e31f7 100644 --- a/.github/workflows/daily-rendering-scripts-verifier.lock.yml +++ b/.github/workflows/daily-rendering-scripts-verifier.lock.yml @@ -81,6 +81,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -90,9 +91,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -310,6 +313,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -319,9 +323,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -1020,9 +1027,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1099,7 +1109,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1117,9 +1129,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1281,9 +1296,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1348,9 +1365,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1438,6 +1458,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1457,9 +1478,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/daily-repo-chronicle.lock.yml b/.github/workflows/daily-repo-chronicle.lock.yml index 8e55694b0e..feb4f7493d 100644 --- a/.github/workflows/daily-repo-chronicle.lock.yml +++ b/.github/workflows/daily-repo-chronicle.lock.yml @@ -73,6 +73,7 @@ jobs: comment_repo: "" lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -82,9 +83,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -295,6 +298,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -304,9 +308,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -884,9 +891,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -963,7 +973,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -982,9 +994,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1118,6 +1133,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1151,9 +1167,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1203,6 +1222,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1222,9 +1242,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 @@ -1249,7 +1272,9 @@ jobs: path: /tmp/gh-aw/cache-memory upload_assets: - needs: agent + needs: + - activation + - agent if: (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'upload_asset') runs-on: ubuntu-slim permissions: @@ -1267,9 +1292,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: diff --git a/.github/workflows/daily-safe-output-integrator.lock.yml b/.github/workflows/daily-safe-output-integrator.lock.yml index 194d6e7847..2fddd361bf 100644 --- a/.github/workflows/daily-safe-output-integrator.lock.yml +++ b/.github/workflows/daily-safe-output-integrator.lock.yml @@ -69,6 +69,7 @@ jobs: comment_repo: "" lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -78,9 +79,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -283,6 +286,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -292,9 +296,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -836,9 +843,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -915,7 +925,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -934,9 +946,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1106,9 +1121,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/daily-safe-output-optimizer.lock.yml b/.github/workflows/daily-safe-output-optimizer.lock.yml index ef177a2b17..02547a94c7 100644 --- a/.github/workflows/daily-safe-output-optimizer.lock.yml +++ b/.github/workflows/daily-safe-output-optimizer.lock.yml @@ -82,6 +82,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -91,9 +92,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -309,6 +312,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -318,9 +322,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -1007,9 +1014,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1081,7 +1091,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1099,9 +1111,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1263,9 +1278,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1294,6 +1311,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1327,9 +1345,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1379,6 +1400,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1398,9 +1420,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/daily-safe-outputs-conformance.lock.yml b/.github/workflows/daily-safe-outputs-conformance.lock.yml index 1b61bd4601..6a2697876b 100644 --- a/.github/workflows/daily-safe-outputs-conformance.lock.yml +++ b/.github/workflows/daily-safe-outputs-conformance.lock.yml @@ -71,6 +71,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -80,9 +81,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -284,6 +287,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -293,9 +297,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -856,9 +863,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -933,7 +943,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -951,9 +963,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1101,6 +1116,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1135,9 +1151,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/daily-secrets-analysis.lock.yml b/.github/workflows/daily-secrets-analysis.lock.yml index 00e09af801..df26bd049e 100644 --- a/.github/workflows/daily-secrets-analysis.lock.yml +++ b/.github/workflows/daily-secrets-analysis.lock.yml @@ -69,6 +69,7 @@ jobs: comment_repo: "" lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -78,9 +79,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -281,6 +284,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -290,9 +294,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -790,9 +797,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -869,7 +879,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -888,9 +900,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1024,6 +1039,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1057,9 +1073,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/daily-security-red-team.lock.yml b/.github/workflows/daily-security-red-team.lock.yml index 0017fd47e8..74f188525c 100644 --- a/.github/workflows/daily-security-red-team.lock.yml +++ b/.github/workflows/daily-security-red-team.lock.yml @@ -71,6 +71,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -80,9 +81,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -288,6 +291,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -297,9 +301,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -860,9 +867,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -937,7 +947,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -955,9 +967,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1105,6 +1120,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1139,9 +1155,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/daily-semgrep-scan.lock.yml b/.github/workflows/daily-semgrep-scan.lock.yml index 02d216138f..1a7b6131b2 100644 --- a/.github/workflows/daily-semgrep-scan.lock.yml +++ b/.github/workflows/daily-semgrep-scan.lock.yml @@ -71,6 +71,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -80,9 +81,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -285,6 +288,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -294,9 +298,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -827,9 +834,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -902,7 +912,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -920,9 +932,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1055,6 +1070,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1087,9 +1103,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/daily-syntax-error-quality.lock.yml b/.github/workflows/daily-syntax-error-quality.lock.yml index 1095aec777..831aaf9a2e 100644 --- a/.github/workflows/daily-syntax-error-quality.lock.yml +++ b/.github/workflows/daily-syntax-error-quality.lock.yml @@ -68,6 +68,7 @@ jobs: comment_repo: "" lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -77,9 +78,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -279,6 +282,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -288,9 +292,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -826,9 +833,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -903,7 +913,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -922,9 +934,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1058,6 +1073,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1092,9 +1108,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/daily-team-evolution-insights.lock.yml b/.github/workflows/daily-team-evolution-insights.lock.yml index f53ad2834c..ea2de4832b 100644 --- a/.github/workflows/daily-team-evolution-insights.lock.yml +++ b/.github/workflows/daily-team-evolution-insights.lock.yml @@ -72,6 +72,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -81,9 +82,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -288,6 +291,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -297,9 +301,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -854,9 +861,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -933,7 +943,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -951,9 +963,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1101,6 +1116,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1134,9 +1150,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/daily-team-status.lock.yml b/.github/workflows/daily-team-status.lock.yml index 525d420ff5..715851bcea 100644 --- a/.github/workflows/daily-team-status.lock.yml +++ b/.github/workflows/daily-team-status.lock.yml @@ -79,6 +79,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -88,9 +89,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -294,6 +297,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -303,9 +307,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -809,9 +816,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -893,7 +903,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -911,9 +923,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1060,9 +1075,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check stop-time limit id: check_stop_time uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1078,6 +1095,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1114,9 +1132,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/daily-testify-uber-super-expert.lock.yml b/.github/workflows/daily-testify-uber-super-expert.lock.yml index 16908e2166..81368a74b3 100644 --- a/.github/workflows/daily-testify-uber-super-expert.lock.yml +++ b/.github/workflows/daily-testify-uber-super-expert.lock.yml @@ -76,6 +76,7 @@ jobs: comment_repo: "" lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -85,9 +86,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -338,6 +341,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -347,9 +351,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -931,9 +938,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1012,7 +1022,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1031,9 +1043,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1181,9 +1196,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1212,6 +1229,7 @@ jobs: push_repo_memory: needs: + - activation - agent - detection if: > @@ -1236,9 +1254,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -1297,6 +1318,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1331,9 +1353,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/daily-workflow-updater.lock.yml b/.github/workflows/daily-workflow-updater.lock.yml index 09f60f8443..addedd108c 100644 --- a/.github/workflows/daily-workflow-updater.lock.yml +++ b/.github/workflows/daily-workflow-updater.lock.yml @@ -65,6 +65,7 @@ jobs: comment_repo: "" lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -74,9 +75,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -276,6 +279,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -285,9 +289,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -795,9 +802,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -874,7 +884,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -893,9 +905,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1065,9 +1080,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/dead-code-remover.lock.yml b/.github/workflows/dead-code-remover.lock.yml index da7d51c22f..de7f4fea6b 100644 --- a/.github/workflows/dead-code-remover.lock.yml +++ b/.github/workflows/dead-code-remover.lock.yml @@ -75,6 +75,7 @@ jobs: comment_repo: "" lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -84,9 +85,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -302,6 +305,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -311,9 +315,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -858,9 +865,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -934,7 +944,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -953,9 +965,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1103,9 +1118,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1169,9 +1186,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1259,6 +1279,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1278,9 +1299,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/deep-report.lock.yml b/.github/workflows/deep-report.lock.yml index 2cf8deff8b..74409e65fb 100644 --- a/.github/workflows/deep-report.lock.yml +++ b/.github/workflows/deep-report.lock.yml @@ -79,6 +79,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -88,9 +89,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -321,6 +324,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -330,9 +334,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -1092,9 +1099,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1175,7 +1185,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1193,9 +1205,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1343,6 +1358,7 @@ jobs: push_repo_memory: needs: + - activation - agent - detection if: > @@ -1367,9 +1383,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -1428,6 +1447,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1463,9 +1483,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1515,6 +1538,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1534,9 +1558,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 @@ -1561,7 +1588,9 @@ jobs: path: /tmp/gh-aw/cache-memory upload_assets: - needs: agent + needs: + - activation + - agent if: (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'upload_asset') runs-on: ubuntu-slim permissions: @@ -1579,9 +1608,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: diff --git a/.github/workflows/delight.lock.yml b/.github/workflows/delight.lock.yml index 9bb6beafee..04c25052d5 100644 --- a/.github/workflows/delight.lock.yml +++ b/.github/workflows/delight.lock.yml @@ -71,6 +71,7 @@ jobs: comment_repo: "" lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -80,9 +81,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -298,6 +301,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -307,9 +311,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -887,9 +894,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -971,7 +981,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -990,9 +1002,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1126,6 +1141,7 @@ jobs: push_repo_memory: needs: + - activation - agent - detection if: > @@ -1150,9 +1166,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -1211,6 +1230,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1247,9 +1267,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/dependabot-burner.lock.yml b/.github/workflows/dependabot-burner.lock.yml index 019b8cfdf4..cd9b0eb700 100644 --- a/.github/workflows/dependabot-burner.lock.yml +++ b/.github/workflows/dependabot-burner.lock.yml @@ -71,6 +71,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -80,9 +81,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -286,6 +289,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -295,9 +299,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -801,9 +808,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -876,7 +886,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -894,9 +906,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1043,9 +1058,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1061,6 +1078,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1094,9 +1112,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/dependabot-go-checker.lock.yml b/.github/workflows/dependabot-go-checker.lock.yml index 7f43c265cb..78efd98af8 100644 --- a/.github/workflows/dependabot-go-checker.lock.yml +++ b/.github/workflows/dependabot-go-checker.lock.yml @@ -69,6 +69,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -78,9 +79,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -285,6 +288,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -294,9 +298,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -819,9 +826,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -894,7 +904,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -912,9 +924,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1047,6 +1062,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1080,9 +1096,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/dev-hawk.lock.yml b/.github/workflows/dev-hawk.lock.yml index b035fcc443..cc1d1fc73e 100644 --- a/.github/workflows/dev-hawk.lock.yml +++ b/.github/workflows/dev-hawk.lock.yml @@ -71,6 +71,7 @@ jobs: comment_repo: "" lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -80,9 +81,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -307,6 +310,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -316,9 +320,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -899,9 +906,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -974,7 +984,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -993,9 +1005,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1144,9 +1159,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1162,6 +1179,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1198,9 +1216,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/dev.lock.yml b/.github/workflows/dev.lock.yml index 9cc72d59b6..8d8065ac90 100644 --- a/.github/workflows/dev.lock.yml +++ b/.github/workflows/dev.lock.yml @@ -95,6 +95,7 @@ jobs: label_command: ${{ steps.remove_trigger_label.outputs.label_name }} lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -104,9 +105,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -358,6 +361,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -367,9 +371,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -929,9 +936,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1021,7 +1031,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1040,9 +1052,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1189,9 +1204,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository for qmd indexing uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -1264,9 +1282,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1282,6 +1302,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1315,9 +1336,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/developer-docs-consolidator.lock.yml b/.github/workflows/developer-docs-consolidator.lock.yml index bbc58d5270..0f07a147f8 100644 --- a/.github/workflows/developer-docs-consolidator.lock.yml +++ b/.github/workflows/developer-docs-consolidator.lock.yml @@ -79,6 +79,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -88,9 +89,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -367,6 +370,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -376,9 +380,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -1130,9 +1137,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1212,7 +1222,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1230,9 +1242,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1393,9 +1408,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository for qmd indexing uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -1449,6 +1467,7 @@ jobs: push_repo_memory: needs: + - activation - agent - detection if: > @@ -1473,9 +1492,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -1570,9 +1592,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1660,6 +1685,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1679,9 +1705,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/dictation-prompt.lock.yml b/.github/workflows/dictation-prompt.lock.yml index d34768965f..d7377127b5 100644 --- a/.github/workflows/dictation-prompt.lock.yml +++ b/.github/workflows/dictation-prompt.lock.yml @@ -74,6 +74,7 @@ jobs: comment_repo: "" lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -83,9 +84,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -305,6 +308,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -314,9 +318,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -880,9 +887,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -956,7 +966,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -975,9 +987,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1124,9 +1139,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository for qmd indexing uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -1215,9 +1233,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/discussion-task-miner.lock.yml b/.github/workflows/discussion-task-miner.lock.yml index 3541f1e2b6..aa43a97535 100644 --- a/.github/workflows/discussion-task-miner.lock.yml +++ b/.github/workflows/discussion-task-miner.lock.yml @@ -71,6 +71,7 @@ jobs: comment_repo: "" lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -80,9 +81,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -297,6 +300,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -306,9 +310,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -878,9 +885,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -960,7 +970,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -979,9 +991,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1115,6 +1130,7 @@ jobs: push_repo_memory: needs: + - activation - agent - detection if: > @@ -1139,9 +1155,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -1200,6 +1219,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1239,9 +1259,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/docs-noob-tester.lock.yml b/.github/workflows/docs-noob-tester.lock.yml index dcbbde4ed2..25fe79bfa6 100644 --- a/.github/workflows/docs-noob-tester.lock.yml +++ b/.github/workflows/docs-noob-tester.lock.yml @@ -72,6 +72,7 @@ jobs: comment_repo: "" lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -81,9 +82,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -288,6 +291,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -297,9 +301,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -844,9 +851,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -920,7 +930,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -939,9 +951,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1075,6 +1090,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1107,9 +1123,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1158,7 +1177,9 @@ jobs: if-no-files-found: ignore upload_assets: - needs: agent + needs: + - activation + - agent if: (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'upload_asset') runs-on: ubuntu-slim permissions: @@ -1176,9 +1197,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: diff --git a/.github/workflows/draft-pr-cleanup.lock.yml b/.github/workflows/draft-pr-cleanup.lock.yml index ebb5cc8d0f..a41a1a68e9 100644 --- a/.github/workflows/draft-pr-cleanup.lock.yml +++ b/.github/workflows/draft-pr-cleanup.lock.yml @@ -64,6 +64,7 @@ jobs: comment_repo: "" lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -73,9 +74,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -273,6 +276,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -282,9 +286,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -830,9 +837,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -905,7 +915,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -924,9 +936,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1060,6 +1075,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1096,9 +1112,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/duplicate-code-detector.lock.yml b/.github/workflows/duplicate-code-detector.lock.yml index 22b363fe8c..2d88927bc0 100644 --- a/.github/workflows/duplicate-code-detector.lock.yml +++ b/.github/workflows/duplicate-code-detector.lock.yml @@ -76,6 +76,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -85,9 +86,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -329,6 +332,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -338,9 +342,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -901,9 +908,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -977,7 +987,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -995,9 +1007,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1128,6 +1143,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1163,9 +1179,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/example-permissions-warning.lock.yml b/.github/workflows/example-permissions-warning.lock.yml index 3d798a56e2..18d14538d6 100644 --- a/.github/workflows/example-permissions-warning.lock.yml +++ b/.github/workflows/example-permissions-warning.lock.yml @@ -63,6 +63,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -72,9 +73,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -260,6 +263,7 @@ jobs: effective_tokens: ${{ steps.parse-mcp-gateway.outputs.effective_tokens }} inference_access_error: ${{ steps.detect-inference-error.outputs.inference_access_error || 'false' }} model: ${{ needs.activation.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -269,9 +273,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: diff --git a/.github/workflows/example-workflow-analyzer.lock.yml b/.github/workflows/example-workflow-analyzer.lock.yml index ea756da9e6..68a104df47 100644 --- a/.github/workflows/example-workflow-analyzer.lock.yml +++ b/.github/workflows/example-workflow-analyzer.lock.yml @@ -75,6 +75,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -84,9 +85,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -289,6 +292,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -298,9 +302,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -928,9 +935,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1004,7 +1014,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1022,9 +1034,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1172,6 +1187,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1204,9 +1220,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/firewall-escape.lock.yml b/.github/workflows/firewall-escape.lock.yml index b9c429eb36..2482b99a87 100644 --- a/.github/workflows/firewall-escape.lock.yml +++ b/.github/workflows/firewall-escape.lock.yml @@ -77,6 +77,7 @@ jobs: comment_repo: "" lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} steps: @@ -88,9 +89,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -320,6 +323,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -329,9 +333,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -877,9 +884,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -960,7 +970,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -979,9 +991,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1170,9 +1185,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1188,6 +1205,7 @@ jobs: push_repo_memory: needs: + - activation - agent - detection if: > @@ -1212,9 +1230,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -1272,6 +1293,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1305,9 +1327,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1357,6 +1382,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1376,9 +1402,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/firewall.lock.yml b/.github/workflows/firewall.lock.yml index 6272f77de1..600b8180d2 100644 --- a/.github/workflows/firewall.lock.yml +++ b/.github/workflows/firewall.lock.yml @@ -63,6 +63,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -72,9 +73,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -262,6 +265,7 @@ jobs: effective_tokens: ${{ steps.parse-mcp-gateway.outputs.effective_tokens }} inference_access_error: ${{ steps.detect-inference-error.outputs.inference_access_error || 'false' }} model: ${{ needs.activation.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -271,9 +275,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: diff --git a/.github/workflows/functional-pragmatist.lock.yml b/.github/workflows/functional-pragmatist.lock.yml index 5fef408a36..4350fc0e8d 100644 --- a/.github/workflows/functional-pragmatist.lock.yml +++ b/.github/workflows/functional-pragmatist.lock.yml @@ -70,6 +70,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -79,9 +80,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -288,6 +291,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -297,9 +301,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -807,9 +814,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -887,7 +897,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -905,9 +917,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1076,9 +1091,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/github-mcp-structural-analysis.lock.yml b/.github/workflows/github-mcp-structural-analysis.lock.yml index f222869739..d18c31d21c 100644 --- a/.github/workflows/github-mcp-structural-analysis.lock.yml +++ b/.github/workflows/github-mcp-structural-analysis.lock.yml @@ -76,6 +76,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -85,9 +86,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -303,6 +306,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -312,9 +316,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -953,9 +960,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1029,7 +1039,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1047,9 +1059,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1197,6 +1212,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1229,9 +1245,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1281,6 +1300,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1300,9 +1320,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 @@ -1327,7 +1350,9 @@ jobs: path: /tmp/gh-aw/cache-memory upload_assets: - needs: agent + needs: + - activation + - agent if: (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'upload_asset') runs-on: ubuntu-slim permissions: @@ -1345,9 +1370,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: diff --git a/.github/workflows/github-mcp-tools-report.lock.yml b/.github/workflows/github-mcp-tools-report.lock.yml index b0367806d5..47c21413cf 100644 --- a/.github/workflows/github-mcp-tools-report.lock.yml +++ b/.github/workflows/github-mcp-tools-report.lock.yml @@ -75,6 +75,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -84,9 +85,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -301,6 +304,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -310,9 +314,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -936,9 +943,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1014,7 +1024,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1032,9 +1044,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1218,9 +1233,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1308,6 +1326,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1327,9 +1346,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/github-remote-mcp-auth-test.lock.yml b/.github/workflows/github-remote-mcp-auth-test.lock.yml index 037959b366..89858eeead 100644 --- a/.github/workflows/github-remote-mcp-auth-test.lock.yml +++ b/.github/workflows/github-remote-mcp-auth-test.lock.yml @@ -70,6 +70,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -79,9 +80,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -288,6 +291,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -297,9 +301,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -806,9 +813,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -883,7 +893,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -901,9 +913,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1036,6 +1051,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1068,9 +1084,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/glossary-maintainer.lock.yml b/.github/workflows/glossary-maintainer.lock.yml index ae915cedcc..0909c2b791 100644 --- a/.github/workflows/glossary-maintainer.lock.yml +++ b/.github/workflows/glossary-maintainer.lock.yml @@ -79,6 +79,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -88,9 +89,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -368,6 +371,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -377,9 +381,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -1030,9 +1037,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1111,7 +1121,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1129,9 +1141,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1277,9 +1292,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository for qmd indexing uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -1333,6 +1351,7 @@ jobs: push_repo_memory: needs: + - activation - agent - detection if: > @@ -1357,9 +1376,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -1453,9 +1475,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1543,6 +1568,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1562,9 +1588,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/go-fan.lock.yml b/.github/workflows/go-fan.lock.yml index edbf927581..f4dc8a28c4 100644 --- a/.github/workflows/go-fan.lock.yml +++ b/.github/workflows/go-fan.lock.yml @@ -77,6 +77,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -86,9 +87,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -333,6 +336,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -342,9 +346,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -982,9 +989,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1061,7 +1071,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1079,9 +1091,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1229,6 +1244,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1262,9 +1278,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1314,6 +1333,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1333,9 +1353,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/go-logger.lock.yml b/.github/workflows/go-logger.lock.yml index 6fa2bb7020..c77a89ccfe 100644 --- a/.github/workflows/go-logger.lock.yml +++ b/.github/workflows/go-logger.lock.yml @@ -75,6 +75,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -84,9 +85,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -297,6 +300,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -306,9 +310,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -1099,9 +1106,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1175,7 +1185,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1193,9 +1205,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1378,9 +1393,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1468,6 +1486,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1487,9 +1506,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/go-pattern-detector.lock.yml b/.github/workflows/go-pattern-detector.lock.yml index c689e970f5..b537b883f5 100644 --- a/.github/workflows/go-pattern-detector.lock.yml +++ b/.github/workflows/go-pattern-detector.lock.yml @@ -72,6 +72,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -81,9 +82,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -294,6 +297,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -303,9 +307,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -925,9 +932,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -999,7 +1009,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1017,9 +1029,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1167,6 +1182,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1200,9 +1216,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/gpclean.lock.yml b/.github/workflows/gpclean.lock.yml index cc3c778c66..2bbcc5b722 100644 --- a/.github/workflows/gpclean.lock.yml +++ b/.github/workflows/gpclean.lock.yml @@ -72,6 +72,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -81,9 +82,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -293,6 +296,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -302,9 +306,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -841,9 +848,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -916,7 +926,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -934,9 +946,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1069,6 +1084,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1102,9 +1118,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1154,6 +1173,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1173,9 +1193,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/grumpy-reviewer.lock.yml b/.github/workflows/grumpy-reviewer.lock.yml index 313da0143f..55f0c670f2 100644 --- a/.github/workflows/grumpy-reviewer.lock.yml +++ b/.github/workflows/grumpy-reviewer.lock.yml @@ -83,6 +83,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} slash_command: ${{ needs.pre_activation.outputs.matched_command }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} @@ -95,9 +96,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -355,6 +358,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -364,9 +368,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -938,9 +945,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1032,7 +1042,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1050,9 +1062,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1198,9 +1213,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for command workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1227,6 +1244,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1259,9 +1277,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1311,6 +1332,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1330,9 +1352,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/hourly-ci-cleaner.lock.yml b/.github/workflows/hourly-ci-cleaner.lock.yml index aa76a20d1f..e0fe79bb92 100644 --- a/.github/workflows/hourly-ci-cleaner.lock.yml +++ b/.github/workflows/hourly-ci-cleaner.lock.yml @@ -74,6 +74,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -83,9 +84,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -307,6 +310,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -316,9 +320,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -916,9 +923,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -997,7 +1007,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1015,9 +1027,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1186,9 +1201,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/instructions-janitor.lock.yml b/.github/workflows/instructions-janitor.lock.yml index b84f71a9a0..a4f46f800e 100644 --- a/.github/workflows/instructions-janitor.lock.yml +++ b/.github/workflows/instructions-janitor.lock.yml @@ -70,6 +70,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -79,9 +80,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -291,6 +294,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -300,9 +304,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -920,9 +927,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -996,7 +1006,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1014,9 +1026,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1199,9 +1214,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1289,6 +1307,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1308,9 +1327,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/issue-arborist.lock.yml b/.github/workflows/issue-arborist.lock.yml index fc1c9090d8..a604693908 100644 --- a/.github/workflows/issue-arborist.lock.yml +++ b/.github/workflows/issue-arborist.lock.yml @@ -74,6 +74,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -83,9 +84,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -289,6 +292,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -298,9 +302,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -891,9 +898,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -967,7 +977,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -985,9 +997,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1118,6 +1133,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1152,9 +1168,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/issue-monster.lock.yml b/.github/workflows/issue-monster.lock.yml index 6d8dfaf264..c68bcd5343 100644 --- a/.github/workflows/issue-monster.lock.yml +++ b/.github/workflows/issue-monster.lock.yml @@ -436,6 +436,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -445,9 +446,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -663,6 +666,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -672,9 +676,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -1192,9 +1199,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1270,7 +1280,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1288,9 +1300,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1444,9 +1459,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1847,6 +1864,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1886,9 +1904,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/issue-triage-agent.lock.yml b/.github/workflows/issue-triage-agent.lock.yml index 4200cc3534..dec5dfe814 100644 --- a/.github/workflows/issue-triage-agent.lock.yml +++ b/.github/workflows/issue-triage-agent.lock.yml @@ -70,6 +70,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -79,9 +80,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -283,6 +286,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -292,9 +296,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -792,9 +799,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -866,7 +876,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -884,9 +896,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1019,6 +1034,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1054,9 +1070,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/jsweep.lock.yml b/.github/workflows/jsweep.lock.yml index d0fde52f66..336930f8d8 100644 --- a/.github/workflows/jsweep.lock.yml +++ b/.github/workflows/jsweep.lock.yml @@ -74,6 +74,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -83,9 +84,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -331,6 +334,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -340,9 +344,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -915,9 +922,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -995,7 +1005,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1013,9 +1025,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1184,9 +1199,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1274,6 +1292,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1293,9 +1312,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/layout-spec-maintainer.lock.yml b/.github/workflows/layout-spec-maintainer.lock.yml index 183c37d18f..1909a89c3e 100644 --- a/.github/workflows/layout-spec-maintainer.lock.yml +++ b/.github/workflows/layout-spec-maintainer.lock.yml @@ -70,6 +70,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -79,9 +80,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -285,6 +288,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -294,9 +298,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -840,9 +847,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -920,7 +930,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -938,9 +950,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1109,9 +1124,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/lockfile-stats.lock.yml b/.github/workflows/lockfile-stats.lock.yml index ee896eb0be..8879d88fc2 100644 --- a/.github/workflows/lockfile-stats.lock.yml +++ b/.github/workflows/lockfile-stats.lock.yml @@ -74,6 +74,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -83,9 +84,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -294,6 +297,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -303,9 +307,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -891,9 +898,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -967,7 +977,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -985,9 +997,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1135,6 +1150,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1167,9 +1183,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1219,6 +1238,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1238,9 +1258,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/mcp-inspector.lock.yml b/.github/workflows/mcp-inspector.lock.yml index c1a4e130db..e9572a7951 100644 --- a/.github/workflows/mcp-inspector.lock.yml +++ b/.github/workflows/mcp-inspector.lock.yml @@ -108,6 +108,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -117,9 +118,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -377,6 +380,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -386,9 +390,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -1363,9 +1370,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1440,7 +1450,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1458,9 +1470,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1869,6 +1884,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1901,9 +1917,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1954,6 +1973,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1973,9 +1993,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/mergefest.lock.yml b/.github/workflows/mergefest.lock.yml index 54cb928c79..2e961578a6 100644 --- a/.github/workflows/mergefest.lock.yml +++ b/.github/workflows/mergefest.lock.yml @@ -68,6 +68,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} slash_command: ${{ needs.pre_activation.outputs.matched_command }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} @@ -80,9 +81,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -334,6 +337,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -343,9 +347,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -877,9 +884,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -972,7 +982,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -990,9 +1002,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1140,9 +1155,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for command workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1203,9 +1220,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/metrics-collector.lock.yml b/.github/workflows/metrics-collector.lock.yml index b30ac1b66d..213df698f2 100644 --- a/.github/workflows/metrics-collector.lock.yml +++ b/.github/workflows/metrics-collector.lock.yml @@ -71,6 +71,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -80,9 +81,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -290,6 +293,7 @@ jobs: effective_tokens: ${{ steps.parse-mcp-gateway.outputs.effective_tokens }} inference_access_error: ${{ steps.detect-inference-error.outputs.inference_access_error || 'false' }} model: ${{ needs.activation.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -299,9 +303,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -677,9 +684,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -694,7 +703,9 @@ jobs: await main(); push_repo_memory: - needs: agent + needs: + - activation + - agent if: always() && needs.agent.result == 'success' runs-on: ubuntu-slim permissions: @@ -715,9 +726,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: diff --git a/.github/workflows/notion-issue-summary.lock.yml b/.github/workflows/notion-issue-summary.lock.yml index dbc5b9a4af..f64292e1cb 100644 --- a/.github/workflows/notion-issue-summary.lock.yml +++ b/.github/workflows/notion-issue-summary.lock.yml @@ -72,6 +72,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -81,9 +82,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -287,6 +290,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -296,9 +300,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -806,9 +813,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -881,7 +891,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -899,9 +911,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1165,6 +1180,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1194,9 +1210,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/org-health-report.lock.yml b/.github/workflows/org-health-report.lock.yml index 883a9b6bc9..b515b45e84 100644 --- a/.github/workflows/org-health-report.lock.yml +++ b/.github/workflows/org-health-report.lock.yml @@ -76,6 +76,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -85,9 +86,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -303,6 +306,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -312,9 +316,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -895,9 +902,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -972,7 +982,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -990,9 +1002,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1125,6 +1140,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1157,9 +1173,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1209,6 +1228,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1228,9 +1248,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 @@ -1255,7 +1278,9 @@ jobs: path: /tmp/gh-aw/cache-memory upload_assets: - needs: agent + needs: + - activation + - agent if: (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'upload_asset') runs-on: ubuntu-slim permissions: @@ -1273,9 +1298,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: diff --git a/.github/workflows/pdf-summary.lock.yml b/.github/workflows/pdf-summary.lock.yml index 6ed56e6163..f29ddc0a01 100644 --- a/.github/workflows/pdf-summary.lock.yml +++ b/.github/workflows/pdf-summary.lock.yml @@ -94,6 +94,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} slash_command: ${{ needs.pre_activation.outputs.matched_command }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} @@ -106,9 +107,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -379,6 +382,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -388,9 +392,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -950,9 +957,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1047,7 +1057,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1065,9 +1077,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1215,9 +1230,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for command workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1244,6 +1261,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1280,9 +1298,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1332,6 +1353,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1351,9 +1373,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/plan.lock.yml b/.github/workflows/plan.lock.yml index 1dd19cedd8..9f2cfa92c7 100644 --- a/.github/workflows/plan.lock.yml +++ b/.github/workflows/plan.lock.yml @@ -71,6 +71,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} slash_command: ${{ needs.pre_activation.outputs.matched_command }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} @@ -83,9 +84,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -336,6 +339,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -345,9 +349,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -881,9 +888,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -974,7 +984,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -992,9 +1004,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1142,9 +1157,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for command workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1171,6 +1188,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1205,9 +1223,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/poem-bot.lock.yml b/.github/workflows/poem-bot.lock.yml index 45b0ff645b..44a533800e 100644 --- a/.github/workflows/poem-bot.lock.yml +++ b/.github/workflows/poem-bot.lock.yml @@ -88,6 +88,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} slash_command: ${{ needs.pre_activation.outputs.matched_command }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} @@ -100,9 +101,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -373,6 +376,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -382,9 +386,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -1236,9 +1243,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1336,7 +1346,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1354,9 +1366,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1504,9 +1519,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for command workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1533,6 +1550,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1574,9 +1592,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1633,6 +1654,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1652,9 +1674,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 @@ -1679,7 +1704,9 @@ jobs: path: /tmp/gh-aw/cache-memory upload_assets: - needs: agent + needs: + - activation + - agent if: (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'upload_asset') runs-on: ubuntu-slim permissions: @@ -1697,9 +1724,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: diff --git a/.github/workflows/portfolio-analyst.lock.yml b/.github/workflows/portfolio-analyst.lock.yml index 84991ff5be..519a5c2b33 100644 --- a/.github/workflows/portfolio-analyst.lock.yml +++ b/.github/workflows/portfolio-analyst.lock.yml @@ -79,6 +79,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -88,9 +89,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -306,6 +309,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -315,9 +319,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -985,9 +992,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1065,7 +1075,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1083,9 +1095,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1218,6 +1233,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1251,9 +1267,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1303,6 +1322,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1322,9 +1342,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 @@ -1349,7 +1372,9 @@ jobs: path: /tmp/gh-aw/cache-memory upload_assets: - needs: agent + needs: + - activation + - agent if: (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'upload_asset') runs-on: ubuntu-slim permissions: @@ -1367,9 +1392,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: diff --git a/.github/workflows/pr-nitpick-reviewer.lock.yml b/.github/workflows/pr-nitpick-reviewer.lock.yml index 3bf10e7ea1..ba797c768a 100644 --- a/.github/workflows/pr-nitpick-reviewer.lock.yml +++ b/.github/workflows/pr-nitpick-reviewer.lock.yml @@ -78,6 +78,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} slash_command: ${{ needs.pre_activation.outputs.matched_command }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} @@ -90,9 +91,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -352,6 +355,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -361,9 +365,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -947,9 +954,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1044,7 +1054,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1062,9 +1074,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1212,9 +1227,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for command workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1241,6 +1258,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1275,9 +1293,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1327,6 +1348,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1346,9 +1368,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/pr-triage-agent.lock.yml b/.github/workflows/pr-triage-agent.lock.yml index 022ac3662d..ca2e0342bc 100644 --- a/.github/workflows/pr-triage-agent.lock.yml +++ b/.github/workflows/pr-triage-agent.lock.yml @@ -70,6 +70,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -79,9 +80,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -299,6 +302,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -308,9 +312,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -876,9 +883,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -956,7 +966,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -974,9 +986,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1109,6 +1124,7 @@ jobs: push_repo_memory: needs: + - activation - agent - detection if: > @@ -1133,9 +1149,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -1194,6 +1213,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1232,9 +1252,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/prompt-clustering-analysis.lock.yml b/.github/workflows/prompt-clustering-analysis.lock.yml index f55c308ec5..ea098ec641 100644 --- a/.github/workflows/prompt-clustering-analysis.lock.yml +++ b/.github/workflows/prompt-clustering-analysis.lock.yml @@ -85,6 +85,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -94,9 +95,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -311,6 +314,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -320,9 +324,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -1035,9 +1042,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1111,7 +1121,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1129,9 +1141,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1279,6 +1294,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1311,9 +1327,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1363,6 +1382,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1382,9 +1402,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/python-data-charts.lock.yml b/.github/workflows/python-data-charts.lock.yml index 3ed5f07e7d..df3a4f40b9 100644 --- a/.github/workflows/python-data-charts.lock.yml +++ b/.github/workflows/python-data-charts.lock.yml @@ -75,6 +75,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -84,9 +85,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -301,6 +304,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -310,9 +314,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -964,9 +971,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1041,7 +1051,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1059,9 +1071,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1194,6 +1209,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1226,9 +1242,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1278,6 +1297,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1297,9 +1317,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 @@ -1324,7 +1347,9 @@ jobs: path: /tmp/gh-aw/cache-memory upload_assets: - needs: agent + needs: + - activation + - agent if: (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'upload_asset') runs-on: ubuntu-slim permissions: @@ -1342,9 +1367,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: diff --git a/.github/workflows/q.lock.yml b/.github/workflows/q.lock.yml index 11d933cbc9..d4ce2506b2 100644 --- a/.github/workflows/q.lock.yml +++ b/.github/workflows/q.lock.yml @@ -104,6 +104,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} slash_command: ${{ needs.pre_activation.outputs.matched_command }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} @@ -116,9 +117,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -421,6 +424,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -430,9 +434,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -1111,9 +1118,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1208,7 +1218,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1226,9 +1238,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1376,9 +1391,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for command workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1444,9 +1461,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1534,6 +1554,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1553,9 +1574,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/refiner.lock.yml b/.github/workflows/refiner.lock.yml index 6e19c45df6..9f7eeb5a60 100644 --- a/.github/workflows/refiner.lock.yml +++ b/.github/workflows/refiner.lock.yml @@ -84,6 +84,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} steps: @@ -95,9 +96,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -318,6 +321,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -327,9 +331,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -858,9 +865,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -936,7 +946,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -954,9 +966,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1106,9 +1121,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1163,9 +1180,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/release.lock.yml b/.github/workflows/release.lock.yml index 7bb716d3ce..6454e9e93e 100644 --- a/.github/workflows/release.lock.yml +++ b/.github/workflows/release.lock.yml @@ -87,6 +87,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -96,9 +97,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -305,6 +308,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -314,9 +318,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -846,9 +853,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1038,7 +1048,9 @@ jobs: console.log(`✓ Release tag: ${releaseTag}`); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1056,9 +1068,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1205,9 +1220,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1448,6 +1465,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1478,9 +1496,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/repo-audit-analyzer.lock.yml b/.github/workflows/repo-audit-analyzer.lock.yml index 086e9dc83e..2df0941c86 100644 --- a/.github/workflows/repo-audit-analyzer.lock.yml +++ b/.github/workflows/repo-audit-analyzer.lock.yml @@ -75,6 +75,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -84,9 +85,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -298,6 +301,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -307,9 +311,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -835,9 +842,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -914,7 +924,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -932,9 +944,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1067,6 +1082,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1099,9 +1115,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1151,6 +1170,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1170,9 +1190,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (repo-audits) id: download_cache_repo_audits uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/repo-tree-map.lock.yml b/.github/workflows/repo-tree-map.lock.yml index d65e084e0b..8f06d43489 100644 --- a/.github/workflows/repo-tree-map.lock.yml +++ b/.github/workflows/repo-tree-map.lock.yml @@ -70,6 +70,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -79,9 +80,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -283,6 +286,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -292,9 +296,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -792,9 +799,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -869,7 +879,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -887,9 +899,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1022,6 +1037,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1054,9 +1070,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/repository-quality-improver.lock.yml b/.github/workflows/repository-quality-improver.lock.yml index 5d305136cf..edcaccb1dd 100644 --- a/.github/workflows/repository-quality-improver.lock.yml +++ b/.github/workflows/repository-quality-improver.lock.yml @@ -75,6 +75,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -84,9 +85,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -330,6 +333,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -339,9 +343,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -896,9 +903,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -973,7 +983,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -991,9 +1003,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1126,6 +1141,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1158,9 +1174,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1210,6 +1229,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1229,9 +1249,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (focus-areas) id: download_cache_focus_areas uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/research.lock.yml b/.github/workflows/research.lock.yml index ed4c058b50..2f23cd11b7 100644 --- a/.github/workflows/research.lock.yml +++ b/.github/workflows/research.lock.yml @@ -73,6 +73,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -82,9 +83,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -291,6 +294,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -300,9 +304,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -823,9 +830,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -900,7 +910,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -918,9 +930,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1053,6 +1068,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1085,9 +1101,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/safe-output-health.lock.yml b/.github/workflows/safe-output-health.lock.yml index d418965564..66948a8606 100644 --- a/.github/workflows/safe-output-health.lock.yml +++ b/.github/workflows/safe-output-health.lock.yml @@ -79,6 +79,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -88,9 +89,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -303,6 +306,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -312,9 +316,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -995,9 +1002,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1071,7 +1081,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1089,9 +1101,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1239,6 +1254,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1271,9 +1287,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1323,6 +1342,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1342,9 +1362,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/schema-consistency-checker.lock.yml b/.github/workflows/schema-consistency-checker.lock.yml index 79e42d6c93..536ecb8a13 100644 --- a/.github/workflows/schema-consistency-checker.lock.yml +++ b/.github/workflows/schema-consistency-checker.lock.yml @@ -74,6 +74,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -83,9 +84,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -294,6 +297,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -303,9 +307,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -891,9 +898,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -967,7 +977,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -985,9 +997,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1135,6 +1150,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1167,9 +1183,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1219,6 +1238,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1238,9 +1258,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/schema-feature-coverage.lock.yml b/.github/workflows/schema-feature-coverage.lock.yml index 94059d8203..14464c897b 100644 --- a/.github/workflows/schema-feature-coverage.lock.yml +++ b/.github/workflows/schema-feature-coverage.lock.yml @@ -69,6 +69,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -78,9 +79,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -291,6 +294,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -300,9 +304,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -826,9 +833,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -902,7 +912,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -920,9 +932,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1088,9 +1103,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/scout.lock.yml b/.github/workflows/scout.lock.yml index 15dd343eda..d259fa97d1 100644 --- a/.github/workflows/scout.lock.yml +++ b/.github/workflows/scout.lock.yml @@ -125,6 +125,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} slash_command: ${{ needs.pre_activation.outputs.matched_command }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} @@ -137,9 +138,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -414,6 +417,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -423,9 +427,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -1130,9 +1137,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1224,7 +1234,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1242,9 +1254,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1407,9 +1422,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for command workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1436,6 +1453,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1472,9 +1490,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1524,6 +1545,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1543,9 +1565,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/security-compliance.lock.yml b/.github/workflows/security-compliance.lock.yml index bc3adff777..8ba66a724e 100644 --- a/.github/workflows/security-compliance.lock.yml +++ b/.github/workflows/security-compliance.lock.yml @@ -74,6 +74,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -83,9 +84,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -310,6 +313,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -319,9 +323,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -845,9 +852,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -924,7 +934,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -942,9 +954,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1077,6 +1092,7 @@ jobs: push_repo_memory: needs: + - activation - agent - detection if: > @@ -1101,9 +1117,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -1162,6 +1181,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1195,9 +1215,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/security-review.lock.yml b/.github/workflows/security-review.lock.yml index 9e3dcb2246..733bfd6f19 100644 --- a/.github/workflows/security-review.lock.yml +++ b/.github/workflows/security-review.lock.yml @@ -80,6 +80,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} slash_command: ${{ needs.pre_activation.outputs.matched_command }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} @@ -92,9 +93,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -356,6 +359,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -365,9 +369,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -996,9 +1003,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1091,7 +1101,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1109,9 +1121,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1259,9 +1274,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for command workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1288,6 +1305,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1320,9 +1338,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1372,6 +1393,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1391,9 +1413,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/semantic-function-refactor.lock.yml b/.github/workflows/semantic-function-refactor.lock.yml index 330d1b5906..c711f76c87 100644 --- a/.github/workflows/semantic-function-refactor.lock.yml +++ b/.github/workflows/semantic-function-refactor.lock.yml @@ -74,6 +74,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -83,9 +84,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -321,6 +324,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -330,9 +334,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -957,9 +964,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1031,7 +1041,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1049,9 +1061,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1199,6 +1214,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1232,9 +1248,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/sergo.lock.yml b/.github/workflows/sergo.lock.yml index 1a57431e3d..6f2ef73894 100644 --- a/.github/workflows/sergo.lock.yml +++ b/.github/workflows/sergo.lock.yml @@ -76,6 +76,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -85,9 +86,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -331,6 +334,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -340,9 +344,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -971,9 +978,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1050,7 +1060,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1068,9 +1080,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1218,6 +1233,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1251,9 +1267,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1303,6 +1322,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1322,9 +1342,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/slide-deck-maintainer.lock.yml b/.github/workflows/slide-deck-maintainer.lock.yml index 1dcb094aff..de63aa6c29 100644 --- a/.github/workflows/slide-deck-maintainer.lock.yml +++ b/.github/workflows/slide-deck-maintainer.lock.yml @@ -81,6 +81,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -90,9 +91,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -318,6 +321,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -327,9 +331,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -930,9 +937,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1010,7 +1020,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1028,9 +1040,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1177,9 +1192,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1244,9 +1261,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1334,6 +1354,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1353,9 +1374,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/smoke-agent-all-merged.lock.yml b/.github/workflows/smoke-agent-all-merged.lock.yml index 2bfde7b548..75e3e33ede 100644 --- a/.github/workflows/smoke-agent-all-merged.lock.yml +++ b/.github/workflows/smoke-agent-all-merged.lock.yml @@ -80,6 +80,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} steps: @@ -91,9 +92,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -317,6 +320,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -326,9 +330,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -835,9 +842,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -929,7 +939,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -947,9 +959,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1097,9 +1112,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1115,6 +1132,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1151,9 +1169,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/smoke-agent-all-none.lock.yml b/.github/workflows/smoke-agent-all-none.lock.yml index 950d955170..81e8169ba4 100644 --- a/.github/workflows/smoke-agent-all-none.lock.yml +++ b/.github/workflows/smoke-agent-all-none.lock.yml @@ -80,6 +80,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} steps: @@ -91,9 +92,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -317,6 +320,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -326,9 +330,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -835,9 +842,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -929,7 +939,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -947,9 +959,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1097,9 +1112,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1115,6 +1132,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1151,9 +1169,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/smoke-agent-public-approved.lock.yml b/.github/workflows/smoke-agent-public-approved.lock.yml index cbc48a8483..d4a3dbf9d1 100644 --- a/.github/workflows/smoke-agent-public-approved.lock.yml +++ b/.github/workflows/smoke-agent-public-approved.lock.yml @@ -85,6 +85,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} steps: @@ -96,9 +97,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -323,6 +326,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -332,9 +336,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -868,9 +875,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -965,7 +975,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -983,9 +995,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1133,9 +1148,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1151,6 +1168,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1190,9 +1208,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/smoke-agent-public-none.lock.yml b/.github/workflows/smoke-agent-public-none.lock.yml index 72bad1a1d2..880796ff36 100644 --- a/.github/workflows/smoke-agent-public-none.lock.yml +++ b/.github/workflows/smoke-agent-public-none.lock.yml @@ -80,6 +80,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} steps: @@ -91,9 +92,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -317,6 +320,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -326,9 +330,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -835,9 +842,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -929,7 +939,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -947,9 +959,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1097,9 +1112,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1115,6 +1132,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1151,9 +1169,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/smoke-agent-scoped-approved.lock.yml b/.github/workflows/smoke-agent-scoped-approved.lock.yml index e333511d62..ae1244ae97 100644 --- a/.github/workflows/smoke-agent-scoped-approved.lock.yml +++ b/.github/workflows/smoke-agent-scoped-approved.lock.yml @@ -84,6 +84,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} steps: @@ -95,9 +96,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -322,6 +325,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -331,9 +335,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -845,9 +852,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -939,7 +949,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -957,9 +969,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1107,9 +1122,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1125,6 +1142,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1161,9 +1179,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/smoke-call-workflow.lock.yml b/.github/workflows/smoke-call-workflow.lock.yml index f553a2b2bf..a144d2479c 100644 --- a/.github/workflows/smoke-call-workflow.lock.yml +++ b/.github/workflows/smoke-call-workflow.lock.yml @@ -76,6 +76,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} steps: @@ -87,9 +88,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -298,6 +301,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -307,9 +311,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -828,9 +835,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -902,7 +912,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -920,9 +932,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1070,9 +1085,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1088,6 +1105,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1119,9 +1137,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/smoke-claude.lock.yml b/.github/workflows/smoke-claude.lock.yml index 5934621dbf..b16bcc0ae6 100644 --- a/.github/workflows/smoke-claude.lock.yml +++ b/.github/workflows/smoke-claude.lock.yml @@ -105,6 +105,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} steps: @@ -116,9 +117,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -756,6 +759,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -765,9 +769,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -2445,9 +2452,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -2542,7 +2552,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -2560,9 +2572,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -2727,9 +2742,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -2745,6 +2762,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -2788,9 +2806,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -2872,6 +2893,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -2891,9 +2913,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/smoke-codex.lock.yml b/.github/workflows/smoke-codex.lock.yml index cd8ccaa293..507e267e1c 100644 --- a/.github/workflows/smoke-codex.lock.yml +++ b/.github/workflows/smoke-codex.lock.yml @@ -95,6 +95,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} steps: @@ -106,9 +107,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -415,6 +418,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -424,9 +428,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -1405,9 +1412,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1499,7 +1509,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1517,9 +1529,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1663,9 +1678,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository for qmd indexing uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -1738,9 +1756,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1756,6 +1776,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1794,9 +1815,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1856,6 +1880,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1875,9 +1900,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/smoke-copilot-arm.lock.yml b/.github/workflows/smoke-copilot-arm.lock.yml index 45b75bd517..11c18ee46d 100644 --- a/.github/workflows/smoke-copilot-arm.lock.yml +++ b/.github/workflows/smoke-copilot-arm.lock.yml @@ -1,4 +1,4 @@ -# gh-aw-metadata: {"schema_version":"v3","frontmatter_hash":"3e2fe69aad7d2801364a57386fae783d35b5afda5c4e976f829c5953a22349a5","agent_id":"copilot"} +# gh-aw-metadata: {"schema_version":"v3","frontmatter_hash":"e603d70b7bc3dba0312876331b6f358c10fbf40a13be449d18d2a71c98cc8c70","agent_id":"copilot"} # ___ _ _ # / _ \ | | (_) # | |_| | __ _ ___ _ __ | |_ _ ___ @@ -35,6 +35,8 @@ # - COPILOT_GITHUB_TOKEN # - GH_AW_GITHUB_MCP_SERVER_TOKEN # - GH_AW_GITHUB_TOKEN +# - GH_AW_OTEL_ENDPOINT +# - GH_AW_OTEL_HEADERS # - GITHUB_TOKEN # # Custom actions used: @@ -71,6 +73,11 @@ concurrency: run-name: "Smoke Copilot ARM64" +env: + OTEL_EXPORTER_OTLP_ENDPOINT: ${{ secrets.GH_AW_OTEL_ENDPOINT }} + OTEL_SERVICE_NAME: gh-aw + OTEL_EXPORTER_OTLP_HEADERS: ${{ secrets.GH_AW_OTEL_HEADERS }} + jobs: activation: needs: pre_activation @@ -91,6 +98,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} steps: @@ -102,9 +110,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -208,9 +218,9 @@ jobs: run: | bash ${RUNNER_TEMP}/gh-aw/actions/create_prompt_first.sh { - cat << 'GH_AW_PROMPT_5d913d5c763dcde8_EOF' + cat << 'GH_AW_PROMPT_e1fc2cb2cbeaacc4_EOF' - GH_AW_PROMPT_5d913d5c763dcde8_EOF + GH_AW_PROMPT_e1fc2cb2cbeaacc4_EOF cat "${RUNNER_TEMP}/gh-aw/prompts/xpia.md" cat "${RUNNER_TEMP}/gh-aw/prompts/temp_folder_prompt.md" cat "${RUNNER_TEMP}/gh-aw/prompts/markdown.md" @@ -218,7 +228,7 @@ jobs: cat "${RUNNER_TEMP}/gh-aw/prompts/agentic_workflows_guide.md" cat "${RUNNER_TEMP}/gh-aw/prompts/cache_memory_prompt.md" cat "${RUNNER_TEMP}/gh-aw/prompts/safe_outputs_prompt.md" - cat << 'GH_AW_PROMPT_5d913d5c763dcde8_EOF' + cat << 'GH_AW_PROMPT_e1fc2cb2cbeaacc4_EOF' Tools: add_comment(max:2), create_issue, create_discussion, create_pull_request_review_comment(max:5), submit_pull_request_review, add_labels, remove_labels, dispatch_workflow, missing_tool, missing_data, noop, send_slack_message @@ -250,9 +260,9 @@ jobs: {{/if}} - GH_AW_PROMPT_5d913d5c763dcde8_EOF + GH_AW_PROMPT_e1fc2cb2cbeaacc4_EOF cat "${RUNNER_TEMP}/gh-aw/prompts/github_mcp_tools_with_safeoutputs_prompt.md" - cat << 'GH_AW_PROMPT_5d913d5c763dcde8_EOF' + cat << 'GH_AW_PROMPT_e1fc2cb2cbeaacc4_EOF' ## Serena Code Analysis @@ -290,7 +300,7 @@ jobs: {{#runtime-import .github/workflows/shared/github-queries-mcp-script.md}} {{#runtime-import .github/workflows/shared/mcp/serena-go.md}} {{#runtime-import .github/workflows/smoke-copilot-arm.md}} - GH_AW_PROMPT_5d913d5c763dcde8_EOF + GH_AW_PROMPT_e1fc2cb2cbeaacc4_EOF } > "$GH_AW_PROMPT" - name: Interpolate variables and render templates uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -393,6 +403,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -402,9 +413,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -546,12 +560,12 @@ jobs: mkdir -p ${RUNNER_TEMP}/gh-aw/safeoutputs mkdir -p /tmp/gh-aw/safeoutputs mkdir -p /tmp/gh-aw/mcp-logs/safeoutputs - cat > ${RUNNER_TEMP}/gh-aw/safeoutputs/config.json << 'GH_AW_SAFE_OUTPUTS_CONFIG_b3b02bc8bedde255_EOF' + cat > ${RUNNER_TEMP}/gh-aw/safeoutputs/config.json << 'GH_AW_SAFE_OUTPUTS_CONFIG_947e130c0b26d5ea_EOF' {"add_comment":{"allowed_repos":["github/gh-aw"],"hide_older_comments":true,"max":2},"add_labels":{"allowed":["smoke-copilot-arm"],"allowed_repos":["github/gh-aw"]},"create_discussion":{"category":"announcements","close_older_discussions":true,"expires":2,"fallback_to_issue":true,"labels":["ai-generated"],"max":1},"create_issue":{"close_older_issues":true,"close_older_key":"smoke-copilot-arm","expires":2,"group":true,"labels":["automation","testing"],"max":1},"create_pull_request_review_comment":{"max":5,"side":"RIGHT"},"dispatch_workflow":{"max":1,"workflow_files":{"haiku-printer":".yml"},"workflows":["haiku-printer"]},"missing_data":{},"missing_tool":{},"noop":{"max":1,"report-as-issue":"true"},"remove_labels":{"allowed":["smoke"]},"send-slack-message":{"description":"Send a message to Slack (stub for testing)","inputs":{"message":{"description":"The message to send","required":false,"type":"string"}},"output":"Slack message stub executed!"},"submit_pull_request_review":{"max":1}} - GH_AW_SAFE_OUTPUTS_CONFIG_b3b02bc8bedde255_EOF + GH_AW_SAFE_OUTPUTS_CONFIG_947e130c0b26d5ea_EOF - name: Write Safe Outputs Tools run: | - cat > ${RUNNER_TEMP}/gh-aw/safeoutputs/tools_meta.json << 'GH_AW_SAFE_OUTPUTS_TOOLS_META_71157be718379f35_EOF' + cat > ${RUNNER_TEMP}/gh-aw/safeoutputs/tools_meta.json << 'GH_AW_SAFE_OUTPUTS_TOOLS_META_7a5b953e996d8298_EOF' { "description_suffixes": { "add_comment": " CONSTRAINTS: Maximum 2 comment(s) can be added.", @@ -608,8 +622,8 @@ jobs: } ] } - GH_AW_SAFE_OUTPUTS_TOOLS_META_71157be718379f35_EOF - cat > ${RUNNER_TEMP}/gh-aw/safeoutputs/validation.json << 'GH_AW_SAFE_OUTPUTS_VALIDATION_6b9e2ffc5e628cfb_EOF' + GH_AW_SAFE_OUTPUTS_TOOLS_META_7a5b953e996d8298_EOF + cat > ${RUNNER_TEMP}/gh-aw/safeoutputs/validation.json << 'GH_AW_SAFE_OUTPUTS_VALIDATION_cad1a7b1918f47ef_EOF' { "add_comment": { "defaultMax": 1, @@ -839,7 +853,7 @@ jobs: } } } - GH_AW_SAFE_OUTPUTS_VALIDATION_6b9e2ffc5e628cfb_EOF + GH_AW_SAFE_OUTPUTS_VALIDATION_cad1a7b1918f47ef_EOF node ${RUNNER_TEMP}/gh-aw/actions/generate_safe_outputs_tools.cjs - name: Generate Safe Outputs MCP Server Config id: safe-outputs-config @@ -884,7 +898,7 @@ jobs: - name: Setup MCP Scripts Config run: | mkdir -p ${RUNNER_TEMP}/gh-aw/mcp-scripts/logs - cat > ${RUNNER_TEMP}/gh-aw/mcp-scripts/tools.json << 'GH_AW_MCP_SCRIPTS_TOOLS_5f80dec2b93fd240_EOF' + cat > ${RUNNER_TEMP}/gh-aw/mcp-scripts/tools.json << 'GH_AW_MCP_SCRIPTS_TOOLS_1c701d2b9950333f_EOF' { "serverName": "mcpscripts", "version": "1.0.0", @@ -1000,8 +1014,8 @@ jobs: } ] } - GH_AW_MCP_SCRIPTS_TOOLS_5f80dec2b93fd240_EOF - cat > ${RUNNER_TEMP}/gh-aw/mcp-scripts/mcp-server.cjs << 'GH_AW_MCP_SCRIPTS_SERVER_9583ab3a98c30557_EOF' + GH_AW_MCP_SCRIPTS_TOOLS_1c701d2b9950333f_EOF + cat > ${RUNNER_TEMP}/gh-aw/mcp-scripts/mcp-server.cjs << 'GH_AW_MCP_SCRIPTS_SERVER_c0a0a7288717268c_EOF' const path = require("path"); const { startHttpServer } = require("./mcp_scripts_mcp_server_http.cjs"); const configPath = path.join(__dirname, "tools.json"); @@ -1015,12 +1029,12 @@ jobs: console.error("Failed to start mcp-scripts HTTP server:", error); process.exit(1); }); - GH_AW_MCP_SCRIPTS_SERVER_9583ab3a98c30557_EOF + GH_AW_MCP_SCRIPTS_SERVER_c0a0a7288717268c_EOF chmod +x ${RUNNER_TEMP}/gh-aw/mcp-scripts/mcp-server.cjs - name: Setup MCP Scripts Tool Files run: | - cat > ${RUNNER_TEMP}/gh-aw/mcp-scripts/gh.sh << 'GH_AW_MCP_SCRIPTS_SH_GH_487bcc3c1624a635_EOF' + cat > ${RUNNER_TEMP}/gh-aw/mcp-scripts/gh.sh << 'GH_AW_MCP_SCRIPTS_SH_GH_91488b82431e1a7f_EOF' #!/bin/bash # Auto-generated mcp-script tool: gh # Execute any gh CLI command. This tool is accessible as 'mcpscripts-gh'. Provide the full command after 'gh' (e.g., args: 'pr list --limit 5'). The tool will run: gh . Use single quotes ' for complex args to avoid shell interpretation issues. @@ -1031,9 +1045,9 @@ jobs: echo " token: ${GH_AW_GH_TOKEN:0:6}..." GH_TOKEN="$GH_AW_GH_TOKEN" gh $INPUT_ARGS - GH_AW_MCP_SCRIPTS_SH_GH_487bcc3c1624a635_EOF + GH_AW_MCP_SCRIPTS_SH_GH_91488b82431e1a7f_EOF chmod +x ${RUNNER_TEMP}/gh-aw/mcp-scripts/gh.sh - cat > ${RUNNER_TEMP}/gh-aw/mcp-scripts/github-discussion-query.sh << 'GH_AW_MCP_SCRIPTS_SH_GITHUB-DISCUSSION-QUERY_de6480930afd6152_EOF' + cat > ${RUNNER_TEMP}/gh-aw/mcp-scripts/github-discussion-query.sh << 'GH_AW_MCP_SCRIPTS_SH_GITHUB-DISCUSSION-QUERY_93e05781f9ca515e_EOF' #!/bin/bash # Auto-generated mcp-script tool: github-discussion-query # Query GitHub discussions with jq filtering support. Without --jq, returns schema and data size info. Use --jq '.' to get all data, or specific jq expressions to filter. @@ -1168,9 +1182,9 @@ jobs: EOF fi - GH_AW_MCP_SCRIPTS_SH_GITHUB-DISCUSSION-QUERY_de6480930afd6152_EOF + GH_AW_MCP_SCRIPTS_SH_GITHUB-DISCUSSION-QUERY_93e05781f9ca515e_EOF chmod +x ${RUNNER_TEMP}/gh-aw/mcp-scripts/github-discussion-query.sh - cat > ${RUNNER_TEMP}/gh-aw/mcp-scripts/github-issue-query.sh << 'GH_AW_MCP_SCRIPTS_SH_GITHUB-ISSUE-QUERY_728c50db158e2b32_EOF' + cat > ${RUNNER_TEMP}/gh-aw/mcp-scripts/github-issue-query.sh << 'GH_AW_MCP_SCRIPTS_SH_GITHUB-ISSUE-QUERY_c1c61a69acdb8d06_EOF' #!/bin/bash # Auto-generated mcp-script tool: github-issue-query # Query GitHub issues with jq filtering support. Without --jq, returns schema and data size info. Use --jq '.' to get all data, or specific jq expressions to filter. @@ -1249,9 +1263,9 @@ jobs: fi - GH_AW_MCP_SCRIPTS_SH_GITHUB-ISSUE-QUERY_728c50db158e2b32_EOF + GH_AW_MCP_SCRIPTS_SH_GITHUB-ISSUE-QUERY_c1c61a69acdb8d06_EOF chmod +x ${RUNNER_TEMP}/gh-aw/mcp-scripts/github-issue-query.sh - cat > ${RUNNER_TEMP}/gh-aw/mcp-scripts/github-pr-query.sh << 'GH_AW_MCP_SCRIPTS_SH_GITHUB-PR-QUERY_288f75e4dc98f5a6_EOF' + cat > ${RUNNER_TEMP}/gh-aw/mcp-scripts/github-pr-query.sh << 'GH_AW_MCP_SCRIPTS_SH_GITHUB-PR-QUERY_f517760b3784f2a2_EOF' #!/bin/bash # Auto-generated mcp-script tool: github-pr-query # Query GitHub pull requests with jq filtering support. Without --jq, returns schema and data size info. Use --jq '.' to get all data, or specific jq expressions to filter. @@ -1336,7 +1350,7 @@ jobs: fi - GH_AW_MCP_SCRIPTS_SH_GITHUB-PR-QUERY_288f75e4dc98f5a6_EOF + GH_AW_MCP_SCRIPTS_SH_GITHUB-PR-QUERY_f517760b3784f2a2_EOF chmod +x ${RUNNER_TEMP}/gh-aw/mcp-scripts/github-pr-query.sh - name: Generate MCP Scripts Server Config @@ -1409,7 +1423,7 @@ jobs: export MCP_GATEWAY_DOCKER_COMMAND='docker run -i --rm --network host -v /var/run/docker.sock:/var/run/docker.sock -e MCP_GATEWAY_PORT -e MCP_GATEWAY_DOMAIN -e MCP_GATEWAY_API_KEY -e MCP_GATEWAY_PAYLOAD_DIR -e MCP_GATEWAY_PAYLOAD_SIZE_THRESHOLD -e DEBUG -e MCP_GATEWAY_LOG_DIR -e GH_AW_MCP_LOG_DIR -e GH_AW_SAFE_OUTPUTS -e GH_AW_SAFE_OUTPUTS_CONFIG_PATH -e GH_AW_SAFE_OUTPUTS_TOOLS_PATH -e GH_AW_ASSETS_BRANCH -e GH_AW_ASSETS_MAX_SIZE_KB -e GH_AW_ASSETS_ALLOWED_EXTS -e DEFAULT_BRANCH -e GITHUB_MCP_SERVER_TOKEN -e GITHUB_MCP_GUARD_MIN_INTEGRITY -e GITHUB_MCP_GUARD_REPOS -e GITHUB_REPOSITORY -e GITHUB_SERVER_URL -e GITHUB_SHA -e GITHUB_WORKSPACE -e GITHUB_TOKEN -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RUN_ATTEMPT -e GITHUB_JOB -e GITHUB_ACTION -e GITHUB_EVENT_NAME -e GITHUB_EVENT_PATH -e GITHUB_ACTOR -e GITHUB_ACTOR_ID -e GITHUB_TRIGGERING_ACTOR -e GITHUB_WORKFLOW -e GITHUB_WORKFLOW_REF -e GITHUB_WORKFLOW_SHA -e GITHUB_REF -e GITHUB_REF_NAME -e GITHUB_REF_TYPE -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GH_AW_MCP_SCRIPTS_PORT -e GH_AW_MCP_SCRIPTS_API_KEY -e GH_AW_SAFE_OUTPUTS_PORT -e GH_AW_SAFE_OUTPUTS_API_KEY -e GH_AW_GH_TOKEN -e GH_DEBUG -e GH_TOKEN -v /tmp/gh-aw/mcp-payloads:/tmp/gh-aw/mcp-payloads:rw -v /opt:/opt:ro -v /tmp:/tmp:rw -v '"${GITHUB_WORKSPACE}"':'"${GITHUB_WORKSPACE}"':rw ghcr.io/github/gh-aw-mcpg:v0.2.12' mkdir -p /home/runner/.copilot - cat << GH_AW_MCP_CONFIG_bbaab723be3e0d4f_EOF | bash ${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.sh + cat << GH_AW_MCP_CONFIG_baa1bb4a61e1bc9d_EOF | bash ${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.sh { "mcpServers": { "agenticworkflows": { @@ -1526,7 +1540,7 @@ jobs: "payloadDir": "${MCP_GATEWAY_PAYLOAD_DIR}" } } - GH_AW_MCP_CONFIG_bbaab723be3e0d4f_EOF + GH_AW_MCP_CONFIG_baa1bb4a61e1bc9d_EOF - name: Download activation artifact uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: @@ -1775,9 +1789,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1873,7 +1890,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1891,9 +1910,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -2043,9 +2065,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -2061,6 +2085,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -2100,9 +2125,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -2191,6 +2219,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -2210,9 +2239,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/smoke-copilot-arm.md b/.github/workflows/smoke-copilot-arm.md index 7c539c2d87..35564e5408 100644 --- a/.github/workflows/smoke-copilot-arm.md +++ b/.github/workflows/smoke-copilot-arm.md @@ -106,6 +106,10 @@ safe-outputs: run-failure: "📰 DEVELOPING STORY: [{workflow_name}]({run_url}) reports {status}. Our correspondents are investigating the incident..." timeout-minutes: 15 strict: false +observability: + otlp: + endpoint: ${{ secrets.GH_AW_OTEL_ENDPOINT }} + headers: ${{ secrets.GH_AW_OTEL_HEADERS }} --- # Smoke Test: Copilot Engine Validation (ARM64) diff --git a/.github/workflows/smoke-copilot.lock.yml b/.github/workflows/smoke-copilot.lock.yml index 65b9fcf3ca..5526196941 100644 --- a/.github/workflows/smoke-copilot.lock.yml +++ b/.github/workflows/smoke-copilot.lock.yml @@ -1,4 +1,4 @@ -# gh-aw-metadata: {"schema_version":"v3","frontmatter_hash":"a7b4d7bf4f02611637cd82a7a5f7c06048689e94db970e6f73d90a2673fdecc7","agent_id":"copilot"} +# gh-aw-metadata: {"schema_version":"v3","frontmatter_hash":"a905032d976816465ac3dca3ab19ecdf3acddb929861a5ff5984faffcab585e4","agent_id":"copilot"} # ___ _ _ # / _ \ | | (_) # | |_| | __ _ ___ _ __ | |_ _ ___ @@ -36,6 +36,8 @@ # - COPILOT_GITHUB_TOKEN # - GH_AW_GITHUB_MCP_SERVER_TOKEN # - GH_AW_GITHUB_TOKEN +# - GH_AW_OTEL_ENDPOINT +# - GH_AW_OTEL_HEADERS # - GITHUB_TOKEN # # Custom actions used: @@ -76,6 +78,11 @@ concurrency: run-name: "Smoke Copilot" +env: + OTEL_EXPORTER_OTLP_ENDPOINT: ${{ secrets.GH_AW_OTEL_ENDPOINT }} + OTEL_SERVICE_NAME: gh-aw + OTEL_EXPORTER_OTLP_HEADERS: ${{ secrets.GH_AW_OTEL_HEADERS }} + jobs: activation: needs: pre_activation @@ -96,6 +103,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -105,9 +113,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -215,9 +225,9 @@ jobs: run: | bash ${RUNNER_TEMP}/gh-aw/actions/create_prompt_first.sh { - cat << 'GH_AW_PROMPT_9df51225daadb559_EOF' + cat << 'GH_AW_PROMPT_62c8abf1cc0f53ad_EOF' - GH_AW_PROMPT_9df51225daadb559_EOF + GH_AW_PROMPT_62c8abf1cc0f53ad_EOF cat "${RUNNER_TEMP}/gh-aw/prompts/xpia.md" cat "${RUNNER_TEMP}/gh-aw/prompts/temp_folder_prompt.md" cat "${RUNNER_TEMP}/gh-aw/prompts/markdown.md" @@ -225,7 +235,7 @@ jobs: cat "${RUNNER_TEMP}/gh-aw/prompts/agentic_workflows_guide.md" cat "${RUNNER_TEMP}/gh-aw/prompts/cache_memory_prompt.md" cat "${RUNNER_TEMP}/gh-aw/prompts/safe_outputs_prompt.md" - cat << 'GH_AW_PROMPT_9df51225daadb559_EOF' + cat << 'GH_AW_PROMPT_62c8abf1cc0f53ad_EOF' Tools: add_comment(max:2), create_issue, create_discussion, create_pull_request_review_comment(max:5), submit_pull_request_review, reply_to_pull_request_review_comment(max:5), add_labels, remove_labels, set_issue_type, dispatch_workflow, missing_tool, missing_data, noop, send_slack_message @@ -257,9 +267,9 @@ jobs: {{/if}} - GH_AW_PROMPT_9df51225daadb559_EOF + GH_AW_PROMPT_62c8abf1cc0f53ad_EOF cat "${RUNNER_TEMP}/gh-aw/prompts/github_mcp_tools_with_safeoutputs_prompt.md" - cat << 'GH_AW_PROMPT_9df51225daadb559_EOF' + cat << 'GH_AW_PROMPT_62c8abf1cc0f53ad_EOF' ## Serena Code Analysis @@ -298,7 +308,7 @@ jobs: {{#runtime-import .github/workflows/shared/github-queries-mcp-script.md}} {{#runtime-import .github/workflows/shared/mcp/serena-go.md}} {{#runtime-import .github/workflows/smoke-copilot.md}} - GH_AW_PROMPT_9df51225daadb559_EOF + GH_AW_PROMPT_62c8abf1cc0f53ad_EOF } > "$GH_AW_PROMPT" - name: Interpolate variables and render templates uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -402,6 +412,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -411,9 +422,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -554,12 +568,12 @@ jobs: mkdir -p ${RUNNER_TEMP}/gh-aw/safeoutputs mkdir -p /tmp/gh-aw/safeoutputs mkdir -p /tmp/gh-aw/mcp-logs/safeoutputs - cat > ${RUNNER_TEMP}/gh-aw/safeoutputs/config.json << 'GH_AW_SAFE_OUTPUTS_CONFIG_3c8a610621dc5cbf_EOF' + cat > ${RUNNER_TEMP}/gh-aw/safeoutputs/config.json << 'GH_AW_SAFE_OUTPUTS_CONFIG_996bb8e28da5dfb7_EOF' {"add_comment":{"allowed_repos":["github/gh-aw"],"hide_older_comments":true,"max":2},"add_labels":{"allowed":["smoke-copilot"],"allowed_repos":["github/gh-aw"]},"create_discussion":{"category":"announcements","close_older_discussions":true,"close_older_key":"smoke-copilot","expires":2,"fallback_to_issue":true,"labels":["ai-generated"],"max":1},"create_issue":{"close_older_issues":true,"close_older_key":"smoke-copilot","expires":2,"group":true,"labels":["automation","testing"],"max":1},"create_pull_request_review_comment":{"max":5,"side":"RIGHT"},"dispatch_workflow":{"max":1,"workflow_files":{"haiku-printer":".yml"},"workflows":["haiku-printer"]},"missing_data":{},"missing_tool":{},"noop":{"max":1,"report-as-issue":"true"},"remove_labels":{"allowed":["smoke"]},"reply_to_pull_request_review_comment":{"max":5},"send-slack-message":{"description":"Send a message to Slack (stub for testing)","inputs":{"message":{"description":"The message to send","required":false,"type":"string"}},"output":"Slack message stub executed!"},"set_issue_type":{},"submit_pull_request_review":{"max":1}} - GH_AW_SAFE_OUTPUTS_CONFIG_3c8a610621dc5cbf_EOF + GH_AW_SAFE_OUTPUTS_CONFIG_996bb8e28da5dfb7_EOF - name: Write Safe Outputs Tools run: | - cat > ${RUNNER_TEMP}/gh-aw/safeoutputs/tools_meta.json << 'GH_AW_SAFE_OUTPUTS_TOOLS_META_d67ffee6fad53472_EOF' + cat > ${RUNNER_TEMP}/gh-aw/safeoutputs/tools_meta.json << 'GH_AW_SAFE_OUTPUTS_TOOLS_META_d4e9fcd31c3eddcb_EOF' { "description_suffixes": { "add_comment": " CONSTRAINTS: Maximum 2 comment(s) can be added.", @@ -617,8 +631,8 @@ jobs: } ] } - GH_AW_SAFE_OUTPUTS_TOOLS_META_d67ffee6fad53472_EOF - cat > ${RUNNER_TEMP}/gh-aw/safeoutputs/validation.json << 'GH_AW_SAFE_OUTPUTS_VALIDATION_d8a24fe9ebf525ab_EOF' + GH_AW_SAFE_OUTPUTS_TOOLS_META_d4e9fcd31c3eddcb_EOF + cat > ${RUNNER_TEMP}/gh-aw/safeoutputs/validation.json << 'GH_AW_SAFE_OUTPUTS_VALIDATION_7d41b605be50b9cb_EOF' { "add_comment": { "defaultMax": 1, @@ -888,7 +902,7 @@ jobs: } } } - GH_AW_SAFE_OUTPUTS_VALIDATION_d8a24fe9ebf525ab_EOF + GH_AW_SAFE_OUTPUTS_VALIDATION_7d41b605be50b9cb_EOF node ${RUNNER_TEMP}/gh-aw/actions/generate_safe_outputs_tools.cjs - name: Generate Safe Outputs MCP Server Config id: safe-outputs-config @@ -933,7 +947,7 @@ jobs: - name: Setup MCP Scripts Config run: | mkdir -p ${RUNNER_TEMP}/gh-aw/mcp-scripts/logs - cat > ${RUNNER_TEMP}/gh-aw/mcp-scripts/tools.json << 'GH_AW_MCP_SCRIPTS_TOOLS_3e8f78b47058959a_EOF' + cat > ${RUNNER_TEMP}/gh-aw/mcp-scripts/tools.json << 'GH_AW_MCP_SCRIPTS_TOOLS_1e7561d526f43bda_EOF' { "serverName": "mcpscripts", "version": "1.0.0", @@ -1049,8 +1063,8 @@ jobs: } ] } - GH_AW_MCP_SCRIPTS_TOOLS_3e8f78b47058959a_EOF - cat > ${RUNNER_TEMP}/gh-aw/mcp-scripts/mcp-server.cjs << 'GH_AW_MCP_SCRIPTS_SERVER_e7b909a1866941c3_EOF' + GH_AW_MCP_SCRIPTS_TOOLS_1e7561d526f43bda_EOF + cat > ${RUNNER_TEMP}/gh-aw/mcp-scripts/mcp-server.cjs << 'GH_AW_MCP_SCRIPTS_SERVER_a5255a3a8e9f133e_EOF' const path = require("path"); const { startHttpServer } = require("./mcp_scripts_mcp_server_http.cjs"); const configPath = path.join(__dirname, "tools.json"); @@ -1064,12 +1078,12 @@ jobs: console.error("Failed to start mcp-scripts HTTP server:", error); process.exit(1); }); - GH_AW_MCP_SCRIPTS_SERVER_e7b909a1866941c3_EOF + GH_AW_MCP_SCRIPTS_SERVER_a5255a3a8e9f133e_EOF chmod +x ${RUNNER_TEMP}/gh-aw/mcp-scripts/mcp-server.cjs - name: Setup MCP Scripts Tool Files run: | - cat > ${RUNNER_TEMP}/gh-aw/mcp-scripts/gh.sh << 'GH_AW_MCP_SCRIPTS_SH_GH_263ef6d96de89fb3_EOF' + cat > ${RUNNER_TEMP}/gh-aw/mcp-scripts/gh.sh << 'GH_AW_MCP_SCRIPTS_SH_GH_ba7386878a21d8cb_EOF' #!/bin/bash # Auto-generated mcp-script tool: gh # Execute any gh CLI command. This tool is accessible as 'mcpscripts-gh'. Provide the full command after 'gh' (e.g., args: 'pr list --limit 5'). The tool will run: gh . Use single quotes ' for complex args to avoid shell interpretation issues. @@ -1080,9 +1094,9 @@ jobs: echo " token: ${GH_AW_GH_TOKEN:0:6}..." GH_TOKEN="$GH_AW_GH_TOKEN" gh $INPUT_ARGS - GH_AW_MCP_SCRIPTS_SH_GH_263ef6d96de89fb3_EOF + GH_AW_MCP_SCRIPTS_SH_GH_ba7386878a21d8cb_EOF chmod +x ${RUNNER_TEMP}/gh-aw/mcp-scripts/gh.sh - cat > ${RUNNER_TEMP}/gh-aw/mcp-scripts/github-discussion-query.sh << 'GH_AW_MCP_SCRIPTS_SH_GITHUB-DISCUSSION-QUERY_05d4ab943fe86ce9_EOF' + cat > ${RUNNER_TEMP}/gh-aw/mcp-scripts/github-discussion-query.sh << 'GH_AW_MCP_SCRIPTS_SH_GITHUB-DISCUSSION-QUERY_4d7640a4c077e31c_EOF' #!/bin/bash # Auto-generated mcp-script tool: github-discussion-query # Query GitHub discussions with jq filtering support. Without --jq, returns schema and data size info. Use --jq '.' to get all data, or specific jq expressions to filter. @@ -1217,9 +1231,9 @@ jobs: EOF fi - GH_AW_MCP_SCRIPTS_SH_GITHUB-DISCUSSION-QUERY_05d4ab943fe86ce9_EOF + GH_AW_MCP_SCRIPTS_SH_GITHUB-DISCUSSION-QUERY_4d7640a4c077e31c_EOF chmod +x ${RUNNER_TEMP}/gh-aw/mcp-scripts/github-discussion-query.sh - cat > ${RUNNER_TEMP}/gh-aw/mcp-scripts/github-issue-query.sh << 'GH_AW_MCP_SCRIPTS_SH_GITHUB-ISSUE-QUERY_8ef0432b17b9641c_EOF' + cat > ${RUNNER_TEMP}/gh-aw/mcp-scripts/github-issue-query.sh << 'GH_AW_MCP_SCRIPTS_SH_GITHUB-ISSUE-QUERY_0641c15ff140ff12_EOF' #!/bin/bash # Auto-generated mcp-script tool: github-issue-query # Query GitHub issues with jq filtering support. Without --jq, returns schema and data size info. Use --jq '.' to get all data, or specific jq expressions to filter. @@ -1298,9 +1312,9 @@ jobs: fi - GH_AW_MCP_SCRIPTS_SH_GITHUB-ISSUE-QUERY_8ef0432b17b9641c_EOF + GH_AW_MCP_SCRIPTS_SH_GITHUB-ISSUE-QUERY_0641c15ff140ff12_EOF chmod +x ${RUNNER_TEMP}/gh-aw/mcp-scripts/github-issue-query.sh - cat > ${RUNNER_TEMP}/gh-aw/mcp-scripts/github-pr-query.sh << 'GH_AW_MCP_SCRIPTS_SH_GITHUB-PR-QUERY_c889f4807956eb81_EOF' + cat > ${RUNNER_TEMP}/gh-aw/mcp-scripts/github-pr-query.sh << 'GH_AW_MCP_SCRIPTS_SH_GITHUB-PR-QUERY_9ddf10ca0deacae4_EOF' #!/bin/bash # Auto-generated mcp-script tool: github-pr-query # Query GitHub pull requests with jq filtering support. Without --jq, returns schema and data size info. Use --jq '.' to get all data, or specific jq expressions to filter. @@ -1385,7 +1399,7 @@ jobs: fi - GH_AW_MCP_SCRIPTS_SH_GITHUB-PR-QUERY_c889f4807956eb81_EOF + GH_AW_MCP_SCRIPTS_SH_GITHUB-PR-QUERY_9ddf10ca0deacae4_EOF chmod +x ${RUNNER_TEMP}/gh-aw/mcp-scripts/github-pr-query.sh - name: Generate MCP Scripts Server Config @@ -1456,7 +1470,7 @@ jobs: export MCP_GATEWAY_DOCKER_COMMAND='docker run -i --rm --network host -v /var/run/docker.sock:/var/run/docker.sock -e MCP_GATEWAY_PORT -e MCP_GATEWAY_DOMAIN -e MCP_GATEWAY_API_KEY -e MCP_GATEWAY_PAYLOAD_DIR -e MCP_GATEWAY_PAYLOAD_SIZE_THRESHOLD -e DEBUG -e MCP_GATEWAY_LOG_DIR -e GH_AW_MCP_LOG_DIR -e GH_AW_SAFE_OUTPUTS -e GH_AW_SAFE_OUTPUTS_CONFIG_PATH -e GH_AW_SAFE_OUTPUTS_TOOLS_PATH -e GH_AW_ASSETS_BRANCH -e GH_AW_ASSETS_MAX_SIZE_KB -e GH_AW_ASSETS_ALLOWED_EXTS -e DEFAULT_BRANCH -e GITHUB_MCP_SERVER_TOKEN -e GITHUB_MCP_GUARD_MIN_INTEGRITY -e GITHUB_MCP_GUARD_REPOS -e GITHUB_REPOSITORY -e GITHUB_SERVER_URL -e GITHUB_SHA -e GITHUB_WORKSPACE -e GITHUB_TOKEN -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RUN_ATTEMPT -e GITHUB_JOB -e GITHUB_ACTION -e GITHUB_EVENT_NAME -e GITHUB_EVENT_PATH -e GITHUB_ACTOR -e GITHUB_ACTOR_ID -e GITHUB_TRIGGERING_ACTOR -e GITHUB_WORKFLOW -e GITHUB_WORKFLOW_REF -e GITHUB_WORKFLOW_SHA -e GITHUB_REF -e GITHUB_REF_NAME -e GITHUB_REF_TYPE -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GH_AW_MCP_SCRIPTS_PORT -e GH_AW_MCP_SCRIPTS_API_KEY -e GH_AW_SAFE_OUTPUTS_PORT -e GH_AW_SAFE_OUTPUTS_API_KEY -e GH_AW_GH_TOKEN -e GH_DEBUG -e GH_TOKEN -v /tmp/gh-aw/mcp-payloads:/tmp/gh-aw/mcp-payloads:rw -v /opt:/opt:ro -v /tmp:/tmp:rw -v '"${GITHUB_WORKSPACE}"':'"${GITHUB_WORKSPACE}"':rw ghcr.io/github/gh-aw-mcpg:v0.2.12' mkdir -p /home/runner/.copilot - cat << GH_AW_MCP_CONFIG_7d1672508c35ebcf_EOF | bash ${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.sh + cat << GH_AW_MCP_CONFIG_c260f8029b966df4_EOF | bash ${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.sh { "mcpServers": { "agenticworkflows": { @@ -1576,7 +1590,7 @@ jobs: "payloadDir": "${MCP_GATEWAY_PAYLOAD_DIR}" } } - GH_AW_MCP_CONFIG_7d1672508c35ebcf_EOF + GH_AW_MCP_CONFIG_c260f8029b966df4_EOF - name: Download activation artifact uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: @@ -1827,9 +1841,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1925,7 +1942,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1943,9 +1962,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -2093,9 +2115,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -2111,6 +2135,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -2150,9 +2175,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -2241,6 +2269,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -2260,9 +2289,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/smoke-copilot.md b/.github/workflows/smoke-copilot.md index 9364999229..b476456956 100644 --- a/.github/workflows/smoke-copilot.md +++ b/.github/workflows/smoke-copilot.md @@ -117,6 +117,10 @@ safe-outputs: run-failure: "📰 DEVELOPING STORY: [{workflow_name}]({run_url}) reports {status}. Our correspondents are investigating the incident..." timeout-minutes: 15 strict: false +observability: + otlp: + endpoint: ${{ secrets.GH_AW_OTEL_ENDPOINT }} + headers: ${{ secrets.GH_AW_OTEL_HEADERS }} --- # Smoke Test: Copilot Engine Validation diff --git a/.github/workflows/smoke-create-cross-repo-pr.lock.yml b/.github/workflows/smoke-create-cross-repo-pr.lock.yml index ee80a92c83..9e1d64e73c 100644 --- a/.github/workflows/smoke-create-cross-repo-pr.lock.yml +++ b/.github/workflows/smoke-create-cross-repo-pr.lock.yml @@ -80,6 +80,7 @@ jobs: comment_url: ${{ steps.add-comment.outputs.comment-url }} lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} steps: @@ -91,9 +92,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -324,6 +327,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -333,9 +337,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -913,9 +920,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1009,7 +1019,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1028,9 +1040,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1181,9 +1196,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1240,9 +1257,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} safe-output-custom-tokens: 'true' - name: Download agent output artifact id: download-agent-output diff --git a/.github/workflows/smoke-gemini.lock.yml b/.github/workflows/smoke-gemini.lock.yml index cee03969c7..7e220949f5 100644 --- a/.github/workflows/smoke-gemini.lock.yml +++ b/.github/workflows/smoke-gemini.lock.yml @@ -88,6 +88,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} steps: @@ -99,9 +100,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -351,6 +354,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -360,9 +364,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -1063,9 +1070,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1157,7 +1167,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1175,9 +1187,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1337,9 +1352,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1355,6 +1372,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1393,9 +1411,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1445,6 +1466,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1464,9 +1486,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/smoke-multi-pr.lock.yml b/.github/workflows/smoke-multi-pr.lock.yml index a91ce00270..90479e508c 100644 --- a/.github/workflows/smoke-multi-pr.lock.yml +++ b/.github/workflows/smoke-multi-pr.lock.yml @@ -81,6 +81,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} steps: @@ -92,9 +93,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -333,6 +336,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -342,9 +346,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -897,9 +904,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -994,7 +1004,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1012,9 +1024,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1164,9 +1179,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1221,9 +1238,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/smoke-project.lock.yml b/.github/workflows/smoke-project.lock.yml index ffd7cbd66b..bd72d4a7ad 100644 --- a/.github/workflows/smoke-project.lock.yml +++ b/.github/workflows/smoke-project.lock.yml @@ -80,6 +80,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} steps: @@ -91,9 +92,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -333,6 +336,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -342,9 +346,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -1031,9 +1038,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1128,7 +1138,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1146,9 +1158,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1298,9 +1313,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1357,9 +1374,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} safe-output-custom-tokens: 'true' - name: Download agent output artifact id: download-agent-output diff --git a/.github/workflows/smoke-service-ports.lock.yml b/.github/workflows/smoke-service-ports.lock.yml index f9bab96d08..c3636f2147 100644 --- a/.github/workflows/smoke-service-ports.lock.yml +++ b/.github/workflows/smoke-service-ports.lock.yml @@ -71,6 +71,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -80,9 +81,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -304,6 +307,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -313,9 +317,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -806,9 +813,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -901,7 +911,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -919,9 +931,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1068,9 +1083,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1086,6 +1103,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1122,9 +1140,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/smoke-temporary-id.lock.yml b/.github/workflows/smoke-temporary-id.lock.yml index cd8007e345..f6040745db 100644 --- a/.github/workflows/smoke-temporary-id.lock.yml +++ b/.github/workflows/smoke-temporary-id.lock.yml @@ -78,6 +78,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} steps: @@ -89,9 +90,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -327,6 +330,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -336,9 +340,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -882,9 +889,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -977,7 +987,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -995,9 +1007,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1147,9 +1162,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1165,6 +1182,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1203,9 +1221,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/smoke-test-tools.lock.yml b/.github/workflows/smoke-test-tools.lock.yml index c45ef51b97..aa7ea9ac4f 100644 --- a/.github/workflows/smoke-test-tools.lock.yml +++ b/.github/workflows/smoke-test-tools.lock.yml @@ -85,6 +85,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} steps: @@ -96,9 +97,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -321,6 +324,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -330,9 +334,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -848,9 +855,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -943,7 +953,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -961,9 +973,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1113,9 +1128,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1131,6 +1148,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1167,9 +1185,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/smoke-update-cross-repo-pr.lock.yml b/.github/workflows/smoke-update-cross-repo-pr.lock.yml index 1e79073f1c..6c6174a4e9 100644 --- a/.github/workflows/smoke-update-cross-repo-pr.lock.yml +++ b/.github/workflows/smoke-update-cross-repo-pr.lock.yml @@ -82,6 +82,7 @@ jobs: comment_url: ${{ steps.add-comment.outputs.comment-url }} lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} steps: @@ -93,9 +94,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -333,6 +336,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -342,9 +346,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -939,9 +946,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1035,7 +1045,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1054,9 +1066,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1207,9 +1222,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1266,9 +1283,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} safe-output-custom-tokens: 'true' - name: Download agent output artifact id: download-agent-output @@ -1358,6 +1378,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1377,9 +1398,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/smoke-workflow-call-with-inputs.lock.yml b/.github/workflows/smoke-workflow-call-with-inputs.lock.yml index 8e9e4bc218..d76c5016a8 100644 --- a/.github/workflows/smoke-workflow-call-with-inputs.lock.yml +++ b/.github/workflows/smoke-workflow-call-with-inputs.lock.yml @@ -85,6 +85,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} target_ref: ${{ steps.resolve-host-repo.outputs.target_ref }} target_repo: ${{ steps.resolve-host-repo.outputs.target_repo }} target_repo_name: ${{ steps.resolve-host-repo.outputs.target_repo_name }} @@ -97,9 +98,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Resolve host repo for activation checkout id: resolve-host-repo uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -331,6 +334,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -340,9 +344,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -862,9 +869,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -937,7 +947,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -955,9 +967,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1104,9 +1119,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1156,9 +1173,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/smoke-workflow-call.lock.yml b/.github/workflows/smoke-workflow-call.lock.yml index 64401791a9..4521a44108 100644 --- a/.github/workflows/smoke-workflow-call.lock.yml +++ b/.github/workflows/smoke-workflow-call.lock.yml @@ -88,6 +88,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} target_ref: ${{ steps.resolve-host-repo.outputs.target_ref }} target_repo: ${{ steps.resolve-host-repo.outputs.target_repo }} target_repo_name: ${{ steps.resolve-host-repo.outputs.target_repo_name }} @@ -100,9 +101,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Resolve host repo for activation checkout id: resolve-host-repo uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -330,6 +333,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -339,9 +343,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -852,9 +859,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -928,7 +938,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -946,9 +958,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1095,9 +1110,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1150,9 +1167,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/stale-repo-identifier.lock.yml b/.github/workflows/stale-repo-identifier.lock.yml index 6765f447d0..651513b8f5 100644 --- a/.github/workflows/stale-repo-identifier.lock.yml +++ b/.github/workflows/stale-repo-identifier.lock.yml @@ -85,6 +85,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -94,9 +95,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -318,6 +321,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -327,9 +331,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -964,9 +971,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1040,7 +1050,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1058,9 +1070,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1193,6 +1208,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1227,9 +1243,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1279,6 +1298,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1298,9 +1318,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 @@ -1325,7 +1348,9 @@ jobs: path: /tmp/gh-aw/cache-memory upload_assets: - needs: agent + needs: + - activation + - agent if: (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'upload_asset') runs-on: ubuntu-slim permissions: @@ -1343,9 +1368,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: diff --git a/.github/workflows/static-analysis-report.lock.yml b/.github/workflows/static-analysis-report.lock.yml index 9a0c1b24b7..d81ef872c9 100644 --- a/.github/workflows/static-analysis-report.lock.yml +++ b/.github/workflows/static-analysis-report.lock.yml @@ -76,6 +76,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -85,9 +86,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -298,6 +301,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -307,9 +311,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -986,9 +993,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1062,7 +1072,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1080,9 +1092,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1230,6 +1245,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1262,9 +1278,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1314,6 +1333,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1333,9 +1353,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/step-name-alignment.lock.yml b/.github/workflows/step-name-alignment.lock.yml index dad3e4965b..36af667a85 100644 --- a/.github/workflows/step-name-alignment.lock.yml +++ b/.github/workflows/step-name-alignment.lock.yml @@ -69,6 +69,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -78,9 +79,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -287,6 +290,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -296,9 +300,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -907,9 +914,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -981,7 +991,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -999,9 +1011,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1149,6 +1164,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1182,9 +1198,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1234,6 +1253,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1253,9 +1273,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/sub-issue-closer.lock.yml b/.github/workflows/sub-issue-closer.lock.yml index 570eda34a2..3bc7c08a04 100644 --- a/.github/workflows/sub-issue-closer.lock.yml +++ b/.github/workflows/sub-issue-closer.lock.yml @@ -66,6 +66,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -75,9 +76,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -278,6 +281,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -287,9 +291,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -835,9 +842,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -910,7 +920,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -928,9 +940,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1063,6 +1078,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1098,9 +1114,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/super-linter.lock.yml b/.github/workflows/super-linter.lock.yml index bbd865e813..335bf00e26 100644 --- a/.github/workflows/super-linter.lock.yml +++ b/.github/workflows/super-linter.lock.yml @@ -73,6 +73,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -82,9 +83,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -303,6 +306,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -312,9 +316,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -852,9 +859,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -927,7 +937,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -945,9 +957,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1080,6 +1095,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1113,9 +1129,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1220,6 +1239,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1239,9 +1259,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/technical-doc-writer.lock.yml b/.github/workflows/technical-doc-writer.lock.yml index caa51af168..b780377b97 100644 --- a/.github/workflows/technical-doc-writer.lock.yml +++ b/.github/workflows/technical-doc-writer.lock.yml @@ -78,6 +78,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -87,9 +88,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -339,6 +342,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -348,9 +352,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -1034,9 +1041,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1116,7 +1126,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1134,9 +1146,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1282,9 +1297,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository for qmd indexing uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -1338,6 +1356,7 @@ jobs: push_repo_memory: needs: + - activation - agent - detection if: > @@ -1362,9 +1381,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -1462,9 +1484,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1552,6 +1577,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1571,9 +1597,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 @@ -1598,7 +1627,9 @@ jobs: path: /tmp/gh-aw/cache-memory upload_assets: - needs: agent + needs: + - activation + - agent if: (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'upload_asset') runs-on: ubuntu-slim permissions: @@ -1616,9 +1647,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: diff --git a/.github/workflows/terminal-stylist.lock.yml b/.github/workflows/terminal-stylist.lock.yml index f23b6ff5d2..5de784b85b 100644 --- a/.github/workflows/terminal-stylist.lock.yml +++ b/.github/workflows/terminal-stylist.lock.yml @@ -73,6 +73,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -82,9 +83,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -318,6 +321,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -327,9 +331,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -856,9 +863,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -933,7 +943,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -951,9 +963,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1086,6 +1101,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1118,9 +1134,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/test-create-pr-error-handling.lock.yml b/.github/workflows/test-create-pr-error-handling.lock.yml index 00b594e2c0..0bb7e6dd67 100644 --- a/.github/workflows/test-create-pr-error-handling.lock.yml +++ b/.github/workflows/test-create-pr-error-handling.lock.yml @@ -67,6 +67,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -76,9 +77,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -286,6 +289,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -295,9 +299,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -893,9 +900,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -969,7 +979,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -987,9 +999,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1172,9 +1187,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1262,6 +1280,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1281,9 +1300,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 diff --git a/.github/workflows/test-dispatcher.lock.yml b/.github/workflows/test-dispatcher.lock.yml index 35001d73c5..a1623c4282 100644 --- a/.github/workflows/test-dispatcher.lock.yml +++ b/.github/workflows/test-dispatcher.lock.yml @@ -62,6 +62,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -71,9 +72,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -271,6 +274,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -280,9 +284,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -774,9 +781,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -849,7 +859,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -867,9 +879,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1002,6 +1017,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1032,9 +1048,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/test-project-url-default.lock.yml b/.github/workflows/test-project-url-default.lock.yml index fe96443646..adfda91527 100644 --- a/.github/workflows/test-project-url-default.lock.yml +++ b/.github/workflows/test-project-url-default.lock.yml @@ -63,6 +63,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -72,9 +73,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -271,6 +274,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -280,9 +284,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -835,9 +842,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -910,7 +920,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -928,9 +940,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1063,6 +1078,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1093,9 +1109,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} safe-output-custom-tokens: 'true' - name: Download agent output artifact id: download-agent-output diff --git a/.github/workflows/test-workflow.lock.yml b/.github/workflows/test-workflow.lock.yml index 6084c2e1a3..6a3f48471c 100644 --- a/.github/workflows/test-workflow.lock.yml +++ b/.github/workflows/test-workflow.lock.yml @@ -66,6 +66,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -75,9 +76,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -261,6 +264,7 @@ jobs: effective_tokens: ${{ steps.parse-mcp-gateway.outputs.effective_tokens }} inference_access_error: ${{ steps.detect-inference-error.outputs.inference_access_error || 'false' }} model: ${{ needs.activation.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -270,9 +274,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: diff --git a/.github/workflows/tidy.lock.yml b/.github/workflows/tidy.lock.yml index 2bd7a64751..fe077e3905 100644 --- a/.github/workflows/tidy.lock.yml +++ b/.github/workflows/tidy.lock.yml @@ -88,6 +88,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} slash_command: ${{ needs.pre_activation.outputs.matched_command }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} @@ -100,9 +101,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -352,6 +355,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -361,9 +365,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -931,9 +938,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1027,7 +1037,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1045,9 +1057,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1195,9 +1210,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for command workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1261,9 +1278,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/typist.lock.yml b/.github/workflows/typist.lock.yml index a2bc8cc636..03e55117a6 100644 --- a/.github/workflows/typist.lock.yml +++ b/.github/workflows/typist.lock.yml @@ -74,6 +74,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -83,9 +84,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -320,6 +323,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -329,9 +333,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -931,9 +938,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1007,7 +1017,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1025,9 +1037,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1175,6 +1190,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1207,9 +1223,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/ubuntu-image-analyzer.lock.yml b/.github/workflows/ubuntu-image-analyzer.lock.yml index b49954f280..d5e19aa57c 100644 --- a/.github/workflows/ubuntu-image-analyzer.lock.yml +++ b/.github/workflows/ubuntu-image-analyzer.lock.yml @@ -74,6 +74,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -83,9 +84,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -294,6 +297,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -303,9 +307,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -839,9 +846,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -919,7 +929,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -937,9 +949,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1086,9 +1101,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1153,9 +1170,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/unbloat-docs.lock.yml b/.github/workflows/unbloat-docs.lock.yml index 9a9cf2f00a..16368f8825 100644 --- a/.github/workflows/unbloat-docs.lock.yml +++ b/.github/workflows/unbloat-docs.lock.yml @@ -87,6 +87,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} slash_command: ${{ needs.pre_activation.outputs.matched_command }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} @@ -99,9 +100,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -375,6 +378,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -384,9 +388,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -1188,9 +1195,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1284,7 +1294,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1302,9 +1314,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1465,9 +1480,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository for qmd indexing uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -1536,9 +1554,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for command workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1604,9 +1624,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1694,6 +1717,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1713,9 +1737,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 @@ -1740,7 +1767,9 @@ jobs: path: /tmp/gh-aw/cache-memory upload_assets: - needs: agent + needs: + - activation + - agent if: (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'upload_asset') runs-on: ubuntu-slim permissions: @@ -1758,9 +1787,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: diff --git a/.github/workflows/update-astro.lock.yml b/.github/workflows/update-astro.lock.yml index 437974601a..b6021d49b1 100644 --- a/.github/workflows/update-astro.lock.yml +++ b/.github/workflows/update-astro.lock.yml @@ -73,6 +73,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -82,9 +83,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -302,6 +305,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -311,9 +315,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -865,9 +872,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -945,7 +955,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -963,9 +975,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1112,9 +1127,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1179,9 +1196,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/video-analyzer.lock.yml b/.github/workflows/video-analyzer.lock.yml index 4bcc315d10..73ada53d93 100644 --- a/.github/workflows/video-analyzer.lock.yml +++ b/.github/workflows/video-analyzer.lock.yml @@ -71,6 +71,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -80,9 +81,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -288,6 +291,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -297,9 +301,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -828,9 +835,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -903,7 +913,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -921,9 +933,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1056,6 +1071,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1089,9 +1105,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/weekly-blog-post-writer.lock.yml b/.github/workflows/weekly-blog-post-writer.lock.yml index 9df7f5c86f..3694d95933 100644 --- a/.github/workflows/weekly-blog-post-writer.lock.yml +++ b/.github/workflows/weekly-blog-post-writer.lock.yml @@ -79,6 +79,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -88,9 +89,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -334,6 +337,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -343,9 +347,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -1006,9 +1013,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1090,7 +1100,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1108,9 +1120,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1256,9 +1271,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository for qmd indexing uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -1324,6 +1342,7 @@ jobs: push_repo_memory: needs: + - activation - agent - detection if: > @@ -1348,9 +1367,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -1445,9 +1467,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/weekly-editors-health-check.lock.yml b/.github/workflows/weekly-editors-health-check.lock.yml index 37916047bd..b125b68e6c 100644 --- a/.github/workflows/weekly-editors-health-check.lock.yml +++ b/.github/workflows/weekly-editors-health-check.lock.yml @@ -67,6 +67,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -76,9 +77,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -286,6 +289,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -295,9 +299,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -872,9 +879,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -952,7 +962,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -970,9 +982,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1141,9 +1156,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1230,7 +1248,9 @@ jobs: persist-credentials: false upload_assets: - needs: agent + needs: + - activation + - agent if: (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'upload_asset') runs-on: ubuntu-slim permissions: @@ -1248,9 +1268,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: diff --git a/.github/workflows/weekly-issue-summary.lock.yml b/.github/workflows/weekly-issue-summary.lock.yml index 0bf2141c2b..ddb565be0d 100644 --- a/.github/workflows/weekly-issue-summary.lock.yml +++ b/.github/workflows/weekly-issue-summary.lock.yml @@ -77,6 +77,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -86,9 +87,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -301,6 +304,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -310,9 +314,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -877,9 +884,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -956,7 +966,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -974,9 +986,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1109,6 +1124,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1142,9 +1158,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1194,6 +1213,7 @@ jobs: update_cache_memory: needs: + - activation - agent - detection if: > @@ -1213,9 +1233,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download cache-memory artifact (default) id: download_cache_default uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 @@ -1240,7 +1263,9 @@ jobs: path: /tmp/gh-aw/cache-memory upload_assets: - needs: agent + needs: + - activation + - agent if: (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'upload_asset') runs-on: ubuntu-slim permissions: @@ -1258,9 +1283,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: diff --git a/.github/workflows/weekly-safe-outputs-spec-review.lock.yml b/.github/workflows/weekly-safe-outputs-spec-review.lock.yml index 6e55f4c9df..8defca7f9a 100644 --- a/.github/workflows/weekly-safe-outputs-spec-review.lock.yml +++ b/.github/workflows/weekly-safe-outputs-spec-review.lock.yml @@ -71,6 +71,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -80,9 +81,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -286,6 +289,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -295,9 +299,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -806,9 +813,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -886,7 +896,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -904,9 +916,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1075,9 +1090,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/workflow-generator.lock.yml b/.github/workflows/workflow-generator.lock.yml index 5227266c94..64f6e9ff68 100644 --- a/.github/workflows/workflow-generator.lock.yml +++ b/.github/workflows/workflow-generator.lock.yml @@ -72,6 +72,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} text: ${{ steps.sanitized.outputs.text }} title: ${{ steps.sanitized.outputs.title }} steps: @@ -83,9 +84,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -319,6 +322,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -328,9 +332,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -883,9 +890,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -960,7 +970,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -978,9 +990,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1129,9 +1144,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1198,9 +1215,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1285,9 +1305,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Unlock issue after agent workflow id: unlock-issue if: (github.event_name == 'issues' || github.event_name == 'issue_comment') && needs.activation.outputs.issue_locked == 'true' diff --git a/.github/workflows/workflow-health-manager.lock.yml b/.github/workflows/workflow-health-manager.lock.yml index bb5fe7e676..54fb1cf3c0 100644 --- a/.github/workflows/workflow-health-manager.lock.yml +++ b/.github/workflows/workflow-health-manager.lock.yml @@ -72,6 +72,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -81,9 +82,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -302,6 +305,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -311,9 +315,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -913,9 +920,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -992,7 +1002,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -1010,9 +1022,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1159,9 +1174,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 @@ -1177,6 +1194,7 @@ jobs: push_repo_memory: needs: + - activation - agent - detection if: > @@ -1201,9 +1219,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -1262,6 +1283,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1299,9 +1321,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/workflow-normalizer.lock.yml b/.github/workflows/workflow-normalizer.lock.yml index 6d53254db2..ddb40fd8f3 100644 --- a/.github/workflows/workflow-normalizer.lock.yml +++ b/.github/workflows/workflow-normalizer.lock.yml @@ -73,6 +73,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -82,9 +83,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -289,6 +292,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -298,9 +302,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -878,9 +885,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -956,7 +966,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -974,9 +986,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1109,6 +1124,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1143,9 +1159,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/.github/workflows/workflow-skill-extractor.lock.yml b/.github/workflows/workflow-skill-extractor.lock.yml index 5bc17bbb54..1f2984b487 100644 --- a/.github/workflows/workflow-skill-extractor.lock.yml +++ b/.github/workflows/workflow-skill-extractor.lock.yml @@ -70,6 +70,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -79,9 +80,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -284,6 +287,7 @@ jobs: model: ${{ needs.activation.outputs.model }} output: ${{ steps.collect_output.outputs.output }} output_types: ${{ steps.collect_output.outputs.output_types }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -293,9 +297,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Set runtime paths id: set-runtime-paths run: | @@ -847,9 +854,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -924,7 +934,9 @@ jobs: await main(); detection: - needs: agent + needs: + - activation + - agent if: > always() && needs.agent.result != 'skipped' && (needs.agent.outputs.output_types != '' || needs.agent.outputs.has_patch == 'true') runs-on: ubuntu-latest @@ -942,9 +954,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true @@ -1077,6 +1092,7 @@ jobs: safe_outputs: needs: + - activation - agent - detection if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success' @@ -1111,9 +1127,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Download agent output artifact id: download-agent-output continue-on-error: true diff --git a/actions/setup/action.yml b/actions/setup/action.yml index a03aabb629..8f32cb2503 100644 --- a/actions/setup/action.yml +++ b/actions/setup/action.yml @@ -10,10 +10,20 @@ inputs: description: 'Install @actions/github for handlers that use a per-handler github-token (creates Octokit via getOctokit)' required: false default: 'false' + job-name: + description: 'Name of the job being set up. When OTEL_EXPORTER_OTLP_ENDPOINT is configured, a gh-aw.job.setup span is pushed to the OTLP endpoint.' + required: false + default: '' + trace-id: + description: 'OTLP trace ID (32-character hexadecimal string) to reuse for cross-job span correlation. Pass the trace-id output of the activation job setup step to correlate all job spans under the same trace. When omitted a new trace ID is generated.' + required: false + default: '' outputs: files_copied: description: 'Number of files copied' + trace-id: + description: 'The OTLP trace ID used for the gh-aw.job.setup span. Pass this to subsequent job setup steps via the trace-id input to correlate all job spans under a single trace.' runs: using: 'node24' diff --git a/actions/setup/clean.sh b/actions/setup/clean.sh new file mode 100755 index 0000000000..58857577bc --- /dev/null +++ b/actions/setup/clean.sh @@ -0,0 +1,40 @@ +#!/usr/bin/env bash +# Clean Action Post Script +# Mirror of actions/setup/post.js for script mode (run: bash steps). +# Sends an OTLP conclusion span then removes the /tmp/gh-aw/ directory. +# +# Must be called from an `if: always()` step so it runs even when job steps fail, +# ensuring both the trace span and the cleanup always complete. +# +# Usage (script mode): +# - name: Clean Scripts +# if: always() +# run: | +# bash /tmp/gh-aw/actions-source/actions/setup/clean.sh +# env: +# INPUT_DESTINATION: ${{ runner.temp }}/gh-aw/actions + +set -e + +DESTINATION="${INPUT_DESTINATION:-${RUNNER_TEMP}/gh-aw/actions}" + +# Send OTLP job conclusion span (non-fatal). +# Delegates to action_conclusion_otlp.cjs (same file used by actions/setup/post.js) +# to keep dev/release and script mode behavior in sync. +if command -v node &>/dev/null && [ -f "${DESTINATION}/action_conclusion_otlp.cjs" ]; then + echo "Sending OTLP conclusion span..." + node "${DESTINATION}/action_conclusion_otlp.cjs" || true + echo "OTLP conclusion span step complete" +fi + +# Remove /tmp/gh-aw/ (mirrors post.js cleanup). +tmpDir="/tmp/gh-aw" +if [ -d "${tmpDir}" ]; then + if sudo rm -rf "${tmpDir}" 2>/dev/null; then + echo "Cleaned up ${tmpDir} (sudo)" + elif rm -rf "${tmpDir}" 2>/dev/null; then + echo "Cleaned up ${tmpDir}" + else + echo "Warning: failed to clean up ${tmpDir}" >&2 + fi +fi diff --git a/actions/setup/index.js b/actions/setup/index.js index cda1a0cd26..0140d0d27e 100644 --- a/actions/setup/index.js +++ b/actions/setup/index.js @@ -4,6 +4,9 @@ const { spawnSync } = require("child_process"); const path = require("path"); +// Record start time for the OTLP span before any setup work begins. +const setupStartMs = Date.now(); + // GitHub Actions sets INPUT_* env vars for JavaScript actions by converting // input names to uppercase and replacing hyphens with underscores. Explicitly // normalise the safe-output-custom-tokens input to ensure setup.sh finds it. @@ -16,6 +19,9 @@ const result = spawnSync(path.join(__dirname, "setup.sh"), [], { stdio: "inherit", env: Object.assign({}, process.env, { INPUT_SAFE_OUTPUT_CUSTOM_TOKENS: safeOutputCustomTokens, + // Tell setup.sh to skip the OTLP span: in action mode index.js sends it + // after setup.sh returns so that the startMs captured here is used. + GH_AW_SKIP_SETUP_OTLP: "1", }), }); @@ -27,3 +33,18 @@ if (result.error) { if (result.status !== 0) { process.exit(result.status ?? 1); } + +// Send a gh-aw.job.setup span to the OTLP endpoint when configured. +// Delegates to action_setup_otlp.cjs so that script mode (setup.sh) and +// dev/release mode share the same implementation. +// The IIFE keeps the event loop alive until the fetch completes. +// Errors are swallowed: trace export failures must never break the workflow. +(async () => { + try { + process.env.SETUP_START_MS = String(setupStartMs); + const { run } = require(path.join(__dirname, "js", "action_setup_otlp.cjs")); + await run(); + } catch { + // Non-fatal: silently ignore any OTLP export or output-write errors. + } +})(); diff --git a/actions/setup/js/action_conclusion_otlp.cjs b/actions/setup/js/action_conclusion_otlp.cjs new file mode 100644 index 0000000000..0c473154ec --- /dev/null +++ b/actions/setup/js/action_conclusion_otlp.cjs @@ -0,0 +1,52 @@ +// @ts-check +"use strict"; + +/** + * action_conclusion_otlp.cjs + * + * Sends a gh-aw.job.conclusion OTLP span (or a span named after the current + * job). Used by both: + * + * - actions/setup/post.js (dev/release/action mode) + * - actions/setup/clean.sh (script mode) + * + * Having a single .cjs file ensures the two modes behave identically. + * + * Environment variables read: + * INPUT_JOB_NAME – job name from the `job-name` action input; when set the + * span is named "gh-aw.job.", otherwise + * "gh-aw.job.conclusion". + * GITHUB_AW_OTEL_TRACE_ID – parent trace ID (set by action_setup_otlp.cjs) + * GITHUB_AW_OTEL_PARENT_SPAN_ID – parent span ID (set by action_setup_otlp.cjs) + * OTEL_EXPORTER_OTLP_ENDPOINT – OTLP endpoint (no-op when not set) + */ + +const path = require("path"); + +/** + * Send the OTLP job-conclusion span. Non-fatal: all errors are silently + * swallowed. + * @returns {Promise} + */ +async function run() { + const endpoint = process.env.OTEL_EXPORTER_OTLP_ENDPOINT; + if (!endpoint) { + console.log("[otlp] OTEL_EXPORTER_OTLP_ENDPOINT not set, skipping conclusion span"); + return; + } + + const spanName = process.env.INPUT_JOB_NAME ? `gh-aw.job.${process.env.INPUT_JOB_NAME}` : "gh-aw.job.conclusion"; + console.log(`[otlp] sending conclusion span "${spanName}" to ${endpoint}`); + + const { sendJobConclusionSpan } = require(path.join(__dirname, "send_otlp_span.cjs")); + await sendJobConclusionSpan(spanName); + console.log(`[otlp] conclusion span sent`); +} + +module.exports = { run }; + +// When invoked directly (node action_conclusion_otlp.cjs) from clean.sh, +// run immediately. Non-fatal: errors are silently swallowed. +if (require.main === module) { + run().catch(() => {}); +} diff --git a/actions/setup/js/action_otlp.test.cjs b/actions/setup/js/action_otlp.test.cjs new file mode 100644 index 0000000000..03db528058 --- /dev/null +++ b/actions/setup/js/action_otlp.test.cjs @@ -0,0 +1,195 @@ +import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; +import fs from "fs"; +import path from "path"; +import { fileURLToPath } from "url"; + +// --------------------------------------------------------------------------- +// Module imports +// --------------------------------------------------------------------------- + +const { run: runSetup } = await import("./action_setup_otlp.cjs"); +const { run: runConclusion } = await import("./action_conclusion_otlp.cjs"); + +// --------------------------------------------------------------------------- +// Helpers +// --------------------------------------------------------------------------- + +const __dirname = path.dirname(fileURLToPath(import.meta.url)); + +// --------------------------------------------------------------------------- +// action_setup_otlp — run() +// --------------------------------------------------------------------------- + +describe("action_setup_otlp run()", () => { + let originalEnv; + + beforeEach(() => { + originalEnv = { ...process.env }; + // Clear any OTLP endpoint so send_otlp_span.cjs is a no-op + delete process.env.OTEL_EXPORTER_OTLP_ENDPOINT; + delete process.env.GITHUB_OUTPUT; + delete process.env.GITHUB_ENV; + delete process.env.SETUP_START_MS; + delete process.env.INPUT_TRACE_ID; + }); + + afterEach(() => { + process.env = originalEnv; + }); + + it("resolves without throwing when OTLP endpoint is not configured", async () => { + await expect(runSetup()).resolves.toBeUndefined(); + }); + + it("writes trace-id to GITHUB_OUTPUT even when endpoint is not configured", async () => { + const tmpOut = path.join(path.dirname(__dirname), `action_setup_otlp_test_no_endpoint_${Date.now()}.txt`); + try { + // No OTEL endpoint — span must NOT be sent but trace-id must still be written. + process.env.GITHUB_OUTPUT = tmpOut; + process.env.GITHUB_ENV = tmpOut; + + await runSetup(); + + const contents = fs.readFileSync(tmpOut, "utf8"); + expect(contents).toMatch(/^trace-id=[0-9a-f]{32}$/m); + expect(contents).toMatch(/^GITHUB_AW_OTEL_TRACE_ID=[0-9a-f]{32}$/m); + } finally { + fs.rmSync(tmpOut, { force: true }); + } + }); + + it("uses INPUT_TRACE_ID as trace ID when provided", async () => { + const inputTraceId = "a".repeat(32); + const tmpOut = path.join(path.dirname(__dirname), `action_setup_otlp_test_input_tid_${Date.now()}.txt`); + try { + process.env.OTEL_EXPORTER_OTLP_ENDPOINT = "http://localhost:14317"; + process.env.INPUT_TRACE_ID = inputTraceId; + process.env.GITHUB_OUTPUT = tmpOut; + process.env.GITHUB_ENV = tmpOut; + + const fetchSpy = vi.spyOn(global, "fetch").mockResolvedValue(new Response(null, { status: 200 })); + + await runSetup(); + + const contents = fs.readFileSync(tmpOut, "utf8"); + expect(contents).toContain(`trace-id=${inputTraceId}`); + expect(contents).toContain(`GITHUB_AW_OTEL_TRACE_ID=${inputTraceId}`); + + fetchSpy.mockRestore(); + } finally { + fs.rmSync(tmpOut, { force: true }); + } + }); + + it("writes trace-id to GITHUB_OUTPUT when endpoint is configured", async () => { + const tmpOut = path.join(path.dirname(__dirname), `action_setup_otlp_test_output_${Date.now()}.txt`); + try { + // Provide a fake endpoint (fetch will fail gracefully) + process.env.OTEL_EXPORTER_OTLP_ENDPOINT = "http://localhost:14317"; + process.env.SETUP_START_MS = String(Date.now() - 1000); + process.env.GITHUB_OUTPUT = tmpOut; + process.env.GITHUB_ENV = tmpOut; + + // Mock fetch so no real network call is made + const fetchSpy = vi.spyOn(global, "fetch").mockResolvedValue(new Response(null, { status: 200 })); + + await runSetup(); + + const contents = fs.readFileSync(tmpOut, "utf8"); + expect(contents).toMatch(/^trace-id=[0-9a-f]{32}$/m); + expect(contents).toMatch(/^GITHUB_AW_OTEL_TRACE_ID=[0-9a-f]{32}$/m); + expect(contents).toMatch(/^GITHUB_AW_OTEL_PARENT_SPAN_ID=[0-9a-f]{16}$/m); + + fetchSpy.mockRestore(); + } finally { + fs.rmSync(tmpOut, { force: true }); + } + }); + + it("generates a new trace-id when INPUT_TRACE_ID is absent", async () => { + const tmpOut = path.join(path.dirname(__dirname), `action_setup_otlp_test_no_input_tid_${Date.now()}.txt`); + try { + // INPUT_TRACE_ID is not set — a fresh trace ID must be generated. + process.env.GITHUB_OUTPUT = tmpOut; + process.env.GITHUB_ENV = tmpOut; + + await runSetup(); + + const contents = fs.readFileSync(tmpOut, "utf8"); + // A generated 32-char hex trace-id must always be written. + expect(contents).toMatch(/^trace-id=[0-9a-f]{32}$/m); + expect(contents).toMatch(/^GITHUB_AW_OTEL_TRACE_ID=[0-9a-f]{32}$/m); + } finally { + fs.rmSync(tmpOut, { force: true }); + } + }); + + it("does not throw when GITHUB_OUTPUT is not set", async () => { + process.env.OTEL_EXPORTER_OTLP_ENDPOINT = "http://localhost:14317"; + const fetchSpy = vi.spyOn(global, "fetch").mockResolvedValue(new Response(null, { status: 200 })); + await expect(runSetup()).resolves.toBeUndefined(); + fetchSpy.mockRestore(); + }); +}); + +// --------------------------------------------------------------------------- +// action_conclusion_otlp — run() +// --------------------------------------------------------------------------- + +describe("action_conclusion_otlp run()", () => { + let originalEnv; + + beforeEach(() => { + originalEnv = { ...process.env }; + delete process.env.OTEL_EXPORTER_OTLP_ENDPOINT; + delete process.env.INPUT_JOB_NAME; + }); + + afterEach(() => { + process.env = originalEnv; + }); + + it("resolves without throwing when OTLP endpoint is not configured", async () => { + await expect(runConclusion()).resolves.toBeUndefined(); + }); + + it("resolves without throwing when endpoint is configured", async () => { + process.env.OTEL_EXPORTER_OTLP_ENDPOINT = "http://localhost:14317"; + const fetchSpy = vi.spyOn(global, "fetch").mockResolvedValue(new Response(null, { status: 200 })); + await expect(runConclusion()).resolves.toBeUndefined(); + fetchSpy.mockRestore(); + }); + + it("uses job name from INPUT_JOB_NAME in span name", async () => { + process.env.OTEL_EXPORTER_OTLP_ENDPOINT = "http://localhost:14317"; + process.env.INPUT_JOB_NAME = "agent"; + let capturedBody; + const fetchSpy = vi.spyOn(global, "fetch").mockImplementation((_url, opts) => { + capturedBody = opts?.body; + return Promise.resolve(new Response(null, { status: 200 })); + }); + + await runConclusion(); + + const payload = JSON.parse(capturedBody); + const spanName = payload?.resourceSpans?.[0]?.scopeSpans?.[0]?.spans?.[0]?.name; + expect(spanName).toBe("gh-aw.job.agent"); + fetchSpy.mockRestore(); + }); + + it("uses default span name when INPUT_JOB_NAME is not set", async () => { + process.env.OTEL_EXPORTER_OTLP_ENDPOINT = "http://localhost:14317"; + let capturedBody; + const fetchSpy = vi.spyOn(global, "fetch").mockImplementation((_url, opts) => { + capturedBody = opts?.body; + return Promise.resolve(new Response(null, { status: 200 })); + }); + + await runConclusion(); + + const payload = JSON.parse(capturedBody); + const spanName = payload?.resourceSpans?.[0]?.scopeSpans?.[0]?.spans?.[0]?.name; + expect(spanName).toBe("gh-aw.job.conclusion"); + fetchSpy.mockRestore(); + }); +}); diff --git a/actions/setup/js/action_setup_otlp.cjs b/actions/setup/js/action_setup_otlp.cjs new file mode 100644 index 0000000000..77d73c338c --- /dev/null +++ b/actions/setup/js/action_setup_otlp.cjs @@ -0,0 +1,93 @@ +// @ts-check +"use strict"; + +/** + * action_setup_otlp.cjs + * + * Sends a gh-aw.job.setup OTLP span and writes the trace/span IDs to + * GITHUB_OUTPUT and GITHUB_ENV. Used by both: + * + * - actions/setup/index.js (dev/release/action mode) + * - actions/setup/setup.sh (script mode) + * + * Having a single .cjs file ensures the two modes behave identically. + * + * Environment variables read: + * SETUP_START_MS – epoch ms when setup began (set by callers) + * GITHUB_OUTPUT – path to the GitHub Actions output file + * GITHUB_ENV – path to the GitHub Actions env file + * INPUT_* – standard GitHub Actions input env vars (read by sendJobSetupSpan) + */ + +const path = require("path"); +const { appendFileSync } = require("fs"); + +/** + * Send the OTLP job-setup span and propagate trace context via GITHUB_OUTPUT / + * GITHUB_ENV. Non-fatal: all errors are silently swallowed. + * + * The trace-id is ALWAYS resolved and written to GITHUB_OUTPUT / GITHUB_ENV so + * that cross-job span correlation works even when OTEL_EXPORTER_OTLP_ENDPOINT + * is not configured. The span itself is only sent when the endpoint is set. + * @returns {Promise} + */ +async function run() { + const endpoint = process.env.OTEL_EXPORTER_OTLP_ENDPOINT; + + const { sendJobSetupSpan, isValidTraceId, isValidSpanId } = require(path.join(__dirname, "send_otlp_span.cjs")); + + const startMs = parseInt(process.env.SETUP_START_MS || "0", 10); + + // Explicitly read INPUT_TRACE_ID and pass it as options.traceId so the + // activation job's trace ID is used even when process.env propagation + // through GitHub Actions expression evaluation is unreliable. + const inputTraceId = (process.env.INPUT_TRACE_ID || "").trim().toLowerCase(); + if (inputTraceId) { + console.log(`[otlp] INPUT_TRACE_ID=${inputTraceId} (will reuse activation trace)`); + } else { + console.log("[otlp] INPUT_TRACE_ID not set, a new trace ID will be generated"); + } + + if (!endpoint) { + console.log("[otlp] OTEL_EXPORTER_OTLP_ENDPOINT not set, skipping setup span"); + } else { + console.log(`[otlp] sending setup span to ${endpoint}`); + } + + const { traceId, spanId } = await sendJobSetupSpan({ startMs, traceId: inputTraceId || undefined }); + + console.log(`[otlp] resolved trace-id=${traceId}`); + + if (endpoint) { + console.log(`[otlp] setup span sent (traceId=${traceId}, spanId=${spanId})`); + } + + // Always expose trace ID as a step output for cross-job correlation, even + // when OTLP is not configured. This ensures needs.*.outputs.setup-trace-id + // is populated for downstream jobs regardless of observability configuration. + if (isValidTraceId(traceId) && process.env.GITHUB_OUTPUT) { + appendFileSync(process.env.GITHUB_OUTPUT, `trace-id=${traceId}\n`); + console.log(`[otlp] trace-id=${traceId} written to GITHUB_OUTPUT`); + } + + // Always propagate trace/span context to subsequent steps in this job so + // that the conclusion span can find the same trace ID. + if (process.env.GITHUB_ENV) { + if (isValidTraceId(traceId)) { + appendFileSync(process.env.GITHUB_ENV, `GITHUB_AW_OTEL_TRACE_ID=${traceId}\n`); + console.log(`[otlp] GITHUB_AW_OTEL_TRACE_ID written to GITHUB_ENV`); + } + if (isValidSpanId(spanId)) { + appendFileSync(process.env.GITHUB_ENV, `GITHUB_AW_OTEL_PARENT_SPAN_ID=${spanId}\n`); + console.log(`[otlp] GITHUB_AW_OTEL_PARENT_SPAN_ID written to GITHUB_ENV`); + } + } +} + +module.exports = { run }; + +// When invoked directly (node action_setup_otlp.cjs) from setup.sh, +// run immediately. Non-fatal: errors are silently swallowed. +if (require.main === module) { + run().catch(() => {}); +} diff --git a/actions/setup/js/aw_context.cjs b/actions/setup/js/aw_context.cjs index 6c24f68ade..b8faabf4ad 100644 --- a/actions/setup/js/aw_context.cjs +++ b/actions/setup/js/aw_context.cjs @@ -106,7 +106,8 @@ function resolveItemContext(payload) { * item_type: string, * item_number: string, * comment_id: string, - * comment_node_id: string + * comment_node_id: string, + * otel_trace_id: string * }} * Properties: * - item_type: Kind of entity that triggered the workflow (issue, pull_request, @@ -120,6 +121,10 @@ function resolveItemContext(payload) { * Only populated for discussion/discussion_comment events. Can be passed * as reply_to_id in add_comment to thread responses under the triggering * comment when a dispatched specialist workflow replies to a discussion. + * - otel_trace_id: OTLP trace ID from the parent workflow's setup span. + * Empty string when OTLP is not configured or the parent setup step has + * not yet run. Used by child workflow setup steps to continue the same + * trace as the parent (composite-action trace propagation). */ function buildAwContext() { const { item_type, item_number, comment_id, comment_node_id } = resolveItemContext(context.payload); @@ -140,6 +145,10 @@ function buildAwContext() { item_number, comment_id, comment_node_id, + // Propagate the current OTLP trace ID to dispatched child workflows so that + // composite actions share the same trace as their parent. Empty string when + // OTLP is not configured or the parent setup step has not run yet. + otel_trace_id: process.env.GITHUB_AW_OTEL_TRACE_ID || "", }; } diff --git a/actions/setup/js/constants.cjs b/actions/setup/js/constants.cjs index 6adcb33b0d..5fa4be27b2 100644 --- a/actions/setup/js/constants.cjs +++ b/actions/setup/js/constants.cjs @@ -80,6 +80,13 @@ const RPC_MESSAGES_PATH = `${TMP_GH_AW_PATH}/mcp-logs/rpc-messages.jsonl`; */ const MANIFEST_FILE_PATH = `${TMP_GH_AW_PATH}/safe-output-items.jsonl`; +/** + * Path to the OTLP telemetry mirror file. + * Every OTLP span payload is appended here as a JSON line for artifact inspection. + * @type {string} + */ +const OTEL_JSONL_PATH = `${TMP_GH_AW_PATH}/otel.jsonl`; + /** * Filename of the threat detection log written by the detection engine via tee. * The detection copilot's stdout (containing THREAT_DETECTION_RESULT) is piped @@ -98,5 +105,6 @@ module.exports = { GATEWAY_JSONL_PATH, RPC_MESSAGES_PATH, MANIFEST_FILE_PATH, + OTEL_JSONL_PATH, DETECTION_LOG_FILENAME, }; diff --git a/actions/setup/js/send_otlp_span.cjs b/actions/setup/js/send_otlp_span.cjs new file mode 100644 index 0000000000..72bd2d7eaf --- /dev/null +++ b/actions/setup/js/send_otlp_span.cjs @@ -0,0 +1,512 @@ +// @ts-check +/// + +const { randomBytes } = require("crypto"); +const fs = require("fs"); + +/** + * send_otlp_span.cjs + * + * Sends a single OTLP (OpenTelemetry Protocol) trace span to the configured + * HTTP/JSON endpoint. Used by actions/setup to instrument each job execution + * with basic telemetry. + * + * Design constraints: + * - No-op when OTEL_EXPORTER_OTLP_ENDPOINT is not set (zero overhead). + * - Errors are non-fatal: export failures must never break the workflow. + * - No third-party dependencies: uses only Node built-ins + native fetch. + */ + +// --------------------------------------------------------------------------- +// Low-level helpers +// --------------------------------------------------------------------------- + +/** + * Generate a random 16-byte trace ID encoded as a 32-character hex string. + * @returns {string} + */ +function generateTraceId() { + return randomBytes(16).toString("hex"); +} + +/** + * Generate a random 8-byte span ID encoded as a 16-character hex string. + * @returns {string} + */ +function generateSpanId() { + return randomBytes(8).toString("hex"); +} + +/** + * Convert a Unix timestamp in milliseconds to a nanosecond string suitable for + * OTLP's `startTimeUnixNano` / `endTimeUnixNano` fields. + * + * BigInt arithmetic avoids floating-point precision loss for large timestamps. + * + * @param {number} ms - milliseconds since Unix epoch + * @returns {string} nanoseconds since Unix epoch as a decimal string + */ +function toNanoString(ms) { + return (BigInt(Math.floor(ms)) * 1_000_000n).toString(); +} + +/** + * Build a single OTLP attribute object in the key-value format expected by the + * OTLP/HTTP JSON wire format. + * + * @param {string} key + * @param {string | number | boolean} value + * @returns {{ key: string, value: object }} + */ +function buildAttr(key, value) { + if (typeof value === "boolean") { + return { key, value: { boolValue: value } }; + } + if (typeof value === "number") { + return { key, value: { intValue: value } }; + } + return { key, value: { stringValue: String(value) } }; +} + +// --------------------------------------------------------------------------- +// OTLP payload builder +// --------------------------------------------------------------------------- + +/** + * @typedef {Object} OTLPSpanOptions + * @property {string} traceId - 32-char hex trace ID + * @property {string} spanId - 16-char hex span ID + * @property {string} [parentSpanId] - 16-char hex parent span ID; omitted for root spans + * @property {string} spanName - Human-readable span name + * @property {number} startMs - Span start time (ms since epoch) + * @property {number} endMs - Span end time (ms since epoch) + * @property {string} serviceName - Value for the service.name resource attribute + * @property {string} [scopeVersion] - gh-aw version string (e.g. from GH_AW_INFO_VERSION) + * @property {Array<{key: string, value: object}>} attributes - Span attributes + */ + +/** + * Build an OTLP/HTTP JSON traces payload wrapping a single span. + * + * @param {OTLPSpanOptions} opts + * @returns {object} - Ready to be serialised as JSON and POSTed to `/v1/traces` + */ +function buildOTLPPayload({ traceId, spanId, parentSpanId, spanName, startMs, endMs, serviceName, scopeVersion, attributes }) { + return { + resourceSpans: [ + { + resource: { + attributes: [buildAttr("service.name", serviceName)], + }, + scopeSpans: [ + { + scope: { name: "gh-aw", version: scopeVersion || "unknown" }, + spans: [ + { + traceId, + spanId, + ...(parentSpanId ? { parentSpanId } : {}), + name: spanName, + kind: 2, // SPAN_KIND_SERVER + startTimeUnixNano: toNanoString(startMs), + endTimeUnixNano: toNanoString(endMs), + status: { code: 1 }, // STATUS_CODE_OK + attributes, + }, + ], + }, + ], + }, + ], + }; +} + +// --------------------------------------------------------------------------- +// Local JSONL mirror +// --------------------------------------------------------------------------- + +/** + * Path to the OTLP telemetry mirror file. + * Every OTLP span payload is also appended here as a JSON line so that it can + * be inspected via GitHub Actions artifacts without needing a live collector. + * @type {string} + */ +const OTEL_JSONL_PATH = "/tmp/gh-aw/otel.jsonl"; + +/** + * Append an OTLP payload as a single JSON line to the local telemetry mirror + * file. Creates the `/tmp/gh-aw` directory if it does not already exist. + * Errors are silently swallowed — mirror failures must never break the workflow. + * + * @param {object} payload - OTLP traces payload + * @returns {void} + */ +function appendToOTLPJSONL(payload) { + try { + fs.mkdirSync("/tmp/gh-aw", { recursive: true }); + fs.appendFileSync(OTEL_JSONL_PATH, JSON.stringify(payload) + "\n"); + } catch { + // Mirror failures are non-fatal; do not propagate. + } +} + +// --------------------------------------------------------------------------- +// HTTP transport +// --------------------------------------------------------------------------- + +/** + * Parse an `OTEL_EXPORTER_OTLP_HEADERS` value into a plain object suitable for + * merging into a `Headers` / `fetch` `headers` option. + * + * The value follows the OpenTelemetry specification: + * key=value[,key=value...] + * where individual keys and values may be percent-encoded. + * Empty pairs (from leading/trailing/consecutive commas) are silently skipped. + * + * @param {string} raw - Raw header string (e.g. "Authorization=Bearer tok,X-Tenant=acme") + * @returns {Record} Parsed headers object + */ +function parseOTLPHeaders(raw) { + if (!raw || !raw.trim()) return {}; + /** @type {Record} */ + const result = {}; + for (const pair of raw.split(",")) { + const eqIdx = pair.indexOf("="); + if (eqIdx <= 0) continue; // skip malformed pairs (no =) or empty keys (= at start) + // Decode before trimming so percent-encoded whitespace (%20) at edges is preserved correctly. + const key = decodeURIComponent(pair.slice(0, eqIdx)).trim(); + const value = decodeURIComponent(pair.slice(eqIdx + 1)).trim(); + if (key) result[key] = value; + } + return result; +} + +/** + * POST an OTLP traces payload to `{endpoint}/v1/traces` with automatic retries. + * + * Failures are surfaced as `console.warn` messages and never thrown; OTLP + * export failures must not break the workflow. Uses exponential back-off + * between attempts (100 ms, 200 ms) so the three total attempts finish in + * well under a second in the typical success case. + * + * Reads `OTEL_EXPORTER_OTLP_HEADERS` from the environment and merges any + * configured headers into every request. + * + * @param {string} endpoint - OTLP base URL (e.g. https://traces.example.com:4317) + * @param {object} payload - Serialisable OTLP JSON object + * @param {{ maxRetries?: number, baseDelayMs?: number }} [opts] + * @returns {Promise} + */ +async function sendOTLPSpan(endpoint, payload, { maxRetries = 2, baseDelayMs = 100 } = {}) { + // Mirror payload locally so it survives even when the collector is unreachable. + appendToOTLPJSONL(payload); + + const url = endpoint.replace(/\/$/, "") + "/v1/traces"; + const extraHeaders = parseOTLPHeaders(process.env.OTEL_EXPORTER_OTLP_HEADERS || ""); + const headers = { "Content-Type": "application/json", ...extraHeaders }; + for (let attempt = 0; attempt <= maxRetries; attempt++) { + if (attempt > 0) { + await new Promise(resolve => setTimeout(resolve, baseDelayMs * 2 ** (attempt - 1))); + } + try { + const response = await fetch(url, { + method: "POST", + headers, + body: JSON.stringify(payload), + }); + if (response.ok) { + return; + } + const msg = `HTTP ${response.status} ${response.statusText}`; + if (attempt < maxRetries) { + console.warn(`OTLP export attempt ${attempt + 1}/${maxRetries + 1} failed: ${msg}, retrying…`); + } else { + console.warn(`OTLP export failed after ${maxRetries + 1} attempts: ${msg}`); + } + } catch (err) { + const msg = err instanceof Error ? err.message : String(err); + if (attempt < maxRetries) { + console.warn(`OTLP export attempt ${attempt + 1}/${maxRetries + 1} error: ${msg}, retrying…`); + } else { + console.warn(`OTLP export error after ${maxRetries + 1} attempts: ${msg}`); + } + } + } +} + +// --------------------------------------------------------------------------- +// High-level: job setup span +// --------------------------------------------------------------------------- + +/** + * Regular expression that matches a valid OTLP trace ID: 32 lowercase hex characters. + * @type {RegExp} + */ +const TRACE_ID_RE = /^[0-9a-f]{32}$/; + +/** + * Validate that a string is a well-formed OTLP trace ID (32 lowercase hex chars). + * @param {string} id + * @returns {boolean} + */ +function isValidTraceId(id) { + return TRACE_ID_RE.test(id); +} + +/** + * Regular expression that matches a valid OTLP span ID: 16 lowercase hex characters. + * @type {RegExp} + */ +const SPAN_ID_RE = /^[0-9a-f]{16}$/; + +/** + * Validate that a string is a well-formed OTLP span ID (16 lowercase hex chars). + * @param {string} id + * @returns {boolean} + */ +function isValidSpanId(id) { + return SPAN_ID_RE.test(id); +} + +/** + * @typedef {Object} SendJobSetupSpanOptions + * @property {number} [startMs] - Override for the span start time (ms). Defaults to `Date.now()`. + * @property {string} [traceId] - Existing trace ID to reuse for cross-job correlation. + * When omitted the value is taken from the `INPUT_TRACE_ID` environment variable (the + * `trace-id` action input); if that is also absent the `otel_trace_id` field from + * `aw_info.context` is used (propagated from the parent workflow via `aw_context`); + * and if none of those are set a new random trace ID is generated. + * Pass the `trace-id` output of the activation job setup step to correlate all + * subsequent job spans under the same trace. + */ + +/** + * Send a `gh-aw.job.setup` span to the configured OTLP endpoint. + * + * This is designed to be called from `actions/setup/index.js` immediately after + * the setup script completes. It always returns `{ traceId, spanId }` so callers + * can expose the trace ID as an action output and write both values to `$GITHUB_ENV` + * for downstream step correlation — even when `OTEL_EXPORTER_OTLP_ENDPOINT` is not + * set (no span is sent in that case). + * Errors are swallowed so the workflow is never broken by tracing failures. + * + * Environment variables consumed: + * - `OTEL_EXPORTER_OTLP_ENDPOINT` – collector endpoint (required to send anything) + * - `OTEL_SERVICE_NAME` – service name (defaults to "gh-aw") + * - `INPUT_JOB_NAME` – job name passed via the `job-name` action input + * - `INPUT_TRACE_ID` – optional trace ID passed via the `trace-id` action input + * - `GH_AW_INFO_WORKFLOW_NAME` – workflow name injected by the gh-aw compiler + * - `GH_AW_INFO_ENGINE_ID` – engine ID injected by the gh-aw compiler + * - `GITHUB_RUN_ID` – GitHub Actions run ID + * - `GITHUB_ACTOR` – GitHub Actions actor (user / bot) + * - `GITHUB_REPOSITORY` – `owner/repo` string + * + * Runtime files read (optional): + * - `/tmp/gh-aw/aw_info.json` – when present, `context.otel_trace_id` is used as a fallback + * trace ID so that dispatched child workflows share the parent's OTLP trace + * + * @param {SendJobSetupSpanOptions} [options] + * @returns {Promise<{ traceId: string, spanId: string }>} The trace and span IDs used. + */ +async function sendJobSetupSpan(options = {}) { + // Resolve the trace ID before the early-return so it is always available as + // an action output regardless of whether OTLP is configured. + // Priority: options.traceId > INPUT_TRACE_ID > aw_info.context.otel_trace_id > newly generated ID. + // Invalid (wrong length, non-hex) values are silently discarded. + + // Validate options.traceId if supplied; callers may pass raw user input. + const optionsTraceId = options.traceId && isValidTraceId(options.traceId) ? options.traceId : ""; + + // Normalize INPUT_TRACE_ID to lowercase before validating: OTLP requires lowercase + // hex, but trace IDs pasted from external tools may use uppercase characters. + const rawInputTraceId = (process.env.INPUT_TRACE_ID || "").trim().toLowerCase(); + const inputTraceId = isValidTraceId(rawInputTraceId) ? rawInputTraceId : ""; + + // When this job was dispatched by a parent workflow, the parent's trace ID is + // propagated via aw_context.otel_trace_id → aw_info.context.otel_trace_id so that + // composite-action spans share a single trace with their caller. + const awInfo = readJSONIfExists("/tmp/gh-aw/aw_info.json") || {}; + const rawContextTraceId = typeof awInfo.context?.otel_trace_id === "string" ? awInfo.context.otel_trace_id.trim().toLowerCase() : ""; + const contextTraceId = isValidTraceId(rawContextTraceId) ? rawContextTraceId : ""; + + const traceId = optionsTraceId || inputTraceId || contextTraceId || generateTraceId(); + + // Always generate a span ID so it can be written to GITHUB_ENV as + // GITHUB_AW_OTEL_PARENT_SPAN_ID even when OTLP is not configured, allowing downstream + // scripts to establish the correct parent span context. + const spanId = generateSpanId(); + + const endpoint = process.env.OTEL_EXPORTER_OTLP_ENDPOINT || ""; + if (!endpoint) { + return { traceId, spanId }; + } + + const startMs = options.startMs ?? Date.now(); + const endMs = Date.now(); + + const serviceName = process.env.OTEL_SERVICE_NAME || "gh-aw"; + const jobName = process.env.INPUT_JOB_NAME || ""; + const workflowName = process.env.GH_AW_INFO_WORKFLOW_NAME || process.env.GITHUB_WORKFLOW || ""; + const engineId = process.env.GH_AW_INFO_ENGINE_ID || ""; + const runId = process.env.GITHUB_RUN_ID || ""; + const actor = process.env.GITHUB_ACTOR || ""; + const repository = process.env.GITHUB_REPOSITORY || ""; + + const attributes = [buildAttr("gh-aw.job.name", jobName), buildAttr("gh-aw.workflow.name", workflowName), buildAttr("gh-aw.run.id", runId), buildAttr("gh-aw.run.actor", actor), buildAttr("gh-aw.repository", repository)]; + + if (engineId) { + attributes.push(buildAttr("gh-aw.engine.id", engineId)); + } + + const payload = buildOTLPPayload({ + traceId, + spanId, + spanName: "gh-aw.job.setup", + startMs, + endMs, + serviceName, + scopeVersion: process.env.GH_AW_INFO_VERSION || "unknown", + attributes, + }); + + await sendOTLPSpan(endpoint, payload); + return { traceId, spanId }; +} + +// --------------------------------------------------------------------------- +// Utilities for conclusion span +// --------------------------------------------------------------------------- + +/** + * Safely read and parse a JSON file. Returns `null` on any error (missing + * file, invalid JSON, permission denied, etc.). + * + * @param {string} filePath - Absolute path to the JSON file + * @returns {object | null} + */ +function readJSONIfExists(filePath) { + try { + return JSON.parse(fs.readFileSync(filePath, "utf8")); + } catch { + return null; + } +} + +// --------------------------------------------------------------------------- +// High-level: job conclusion span +// --------------------------------------------------------------------------- + +/** + * Send a conclusion span for a job to the configured OTLP endpoint. Called + * from the action post step so it runs at the end of every job that uses the + * setup action. The span carries workflow metadata read from `aw_info.json` + * and the effective token count from `GH_AW_EFFECTIVE_TOKENS`. + * + * This is a no-op when `OTEL_EXPORTER_OTLP_ENDPOINT` is not set. All errors + * are surfaced as `console.warn` messages and never re-thrown. + * + * Environment variables consumed: + * - `OTEL_EXPORTER_OTLP_ENDPOINT` – collector endpoint + * - `OTEL_SERVICE_NAME` – service name (defaults to "gh-aw") + * - `GH_AW_EFFECTIVE_TOKENS` – total effective token count for the run + * - `INPUT_JOB_NAME` – job name; set automatically by GitHub Actions from the + * `job-name` action input + * - `GITHUB_AW_OTEL_TRACE_ID` – trace ID written to GITHUB_ENV by the setup step; + * enables 1-trace-per-run when present + * - `GITHUB_AW_OTEL_PARENT_SPAN_ID` – setup span ID written to GITHUB_ENV by the setup step; + * links this span as a child of the job setup span + * - `GITHUB_RUN_ID` – GitHub Actions run ID + * - `GITHUB_ACTOR` – GitHub Actions actor + * - `GITHUB_REPOSITORY` – `owner/repo` string + * + * Runtime files read: + * - `/tmp/gh-aw/aw_info.json` – workflow/engine metadata written by the agent job + * + * @param {string} spanName - OTLP span name (e.g. `"gh-aw.job.conclusion"`) + * @param {{ startMs?: number }} [options] + * @returns {Promise} + */ +async function sendJobConclusionSpan(spanName, options = {}) { + const endpoint = process.env.OTEL_EXPORTER_OTLP_ENDPOINT || ""; + if (!endpoint) { + return; + } + + const startMs = options.startMs ?? Date.now(); + + // Read workflow metadata from aw_info.json (written by the agent job setup step). + const awInfo = readJSONIfExists("/tmp/gh-aw/aw_info.json") || {}; + + // Effective token count is surfaced by the agent job and passed to downstream jobs + // via the GH_AW_EFFECTIVE_TOKENS environment variable. + const rawET = process.env.GH_AW_EFFECTIVE_TOKENS || ""; + const effectiveTokens = rawET ? parseInt(rawET, 10) : NaN; + + const serviceName = process.env.OTEL_SERVICE_NAME || "gh-aw"; + const version = awInfo.agent_version || awInfo.version || process.env.GH_AW_INFO_VERSION || "unknown"; + + // Prefer GITHUB_AW_OTEL_TRACE_ID (written to GITHUB_ENV by this job's setup step) so + // all spans in the same job share one trace. Fall back to the workflow_call_id + // from aw_info for cross-job correlation, then generate a fresh ID. + const envTraceId = (process.env.GITHUB_AW_OTEL_TRACE_ID || "").trim().toLowerCase(); + const awTraceId = typeof awInfo.context?.workflow_call_id === "string" ? awInfo.context.workflow_call_id.replace(/-/g, "") : ""; + let traceId = generateTraceId(); + if (isValidTraceId(envTraceId)) { + traceId = envTraceId; + } else if (awTraceId && isValidTraceId(awTraceId)) { + traceId = awTraceId; + } + + // Use GITHUB_AW_OTEL_PARENT_SPAN_ID (written to GITHUB_ENV by this job's setup step) so + // conclusion spans are linked as children of the setup span (1 parent span per job). + const rawParentSpanId = (process.env.GITHUB_AW_OTEL_PARENT_SPAN_ID || "").trim().toLowerCase(); + const parentSpanId = isValidSpanId(rawParentSpanId) ? rawParentSpanId : ""; + + const workflowName = awInfo.workflow_name || ""; + const engineId = awInfo.engine_id || ""; + const model = awInfo.model || ""; + const jobName = process.env.INPUT_JOB_NAME || ""; + const runId = process.env.GITHUB_RUN_ID || ""; + const actor = process.env.GITHUB_ACTOR || ""; + const repository = process.env.GITHUB_REPOSITORY || ""; + + const attributes = [buildAttr("gh-aw.workflow.name", workflowName), buildAttr("gh-aw.run.id", runId), buildAttr("gh-aw.run.actor", actor), buildAttr("gh-aw.repository", repository)]; + + if (jobName) attributes.push(buildAttr("gh-aw.job.name", jobName)); + if (engineId) attributes.push(buildAttr("gh-aw.engine.id", engineId)); + if (model) attributes.push(buildAttr("gh-aw.model", model)); + if (!isNaN(effectiveTokens) && effectiveTokens > 0) { + attributes.push(buildAttr("gh-aw.effective_tokens", effectiveTokens)); + } + + const payload = buildOTLPPayload({ + traceId, + spanId: generateSpanId(), + ...(parentSpanId ? { parentSpanId } : {}), + spanName, + startMs, + endMs: Date.now(), + serviceName, + scopeVersion: version, + attributes, + }); + + await sendOTLPSpan(endpoint, payload); +} + +module.exports = { + isValidTraceId, + isValidSpanId, + generateTraceId, + generateSpanId, + toNanoString, + buildAttr, + buildOTLPPayload, + parseOTLPHeaders, + sendOTLPSpan, + readJSONIfExists, + sendJobSetupSpan, + sendJobConclusionSpan, + OTEL_JSONL_PATH, + appendToOTLPJSONL, +}; diff --git a/actions/setup/js/send_otlp_span.test.cjs b/actions/setup/js/send_otlp_span.test.cjs new file mode 100644 index 0000000000..16ebc122c2 --- /dev/null +++ b/actions/setup/js/send_otlp_span.test.cjs @@ -0,0 +1,882 @@ +import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; +import fs from "fs"; + +// --------------------------------------------------------------------------- +// Module import +// --------------------------------------------------------------------------- + +const { isValidTraceId, isValidSpanId, generateTraceId, generateSpanId, toNanoString, buildAttr, buildOTLPPayload, parseOTLPHeaders, sendOTLPSpan, sendJobSetupSpan, sendJobConclusionSpan, OTEL_JSONL_PATH, appendToOTLPJSONL } = + await import("./send_otlp_span.cjs"); + +// --------------------------------------------------------------------------- +// isValidTraceId +// --------------------------------------------------------------------------- + +describe("isValidTraceId", () => { + it("accepts a valid 32-character lowercase hex trace ID", () => { + expect(isValidTraceId("a".repeat(32))).toBe(true); + expect(isValidTraceId("0123456789abcdef0123456789abcdef")).toBe(true); + }); + + it("rejects uppercase hex characters", () => { + expect(isValidTraceId("A".repeat(32))).toBe(false); + }); + + it("rejects strings that are too short or too long", () => { + expect(isValidTraceId("a".repeat(31))).toBe(false); + expect(isValidTraceId("a".repeat(33))).toBe(false); + }); + + it("rejects empty string", () => { + expect(isValidTraceId("")).toBe(false); + }); + + it("rejects non-hex characters", () => { + expect(isValidTraceId("z".repeat(32))).toBe(false); + }); +}); + +// --------------------------------------------------------------------------- +// isValidSpanId +// --------------------------------------------------------------------------- + +describe("isValidSpanId", () => { + it("accepts a valid 16-character lowercase hex span ID", () => { + expect(isValidSpanId("b".repeat(16))).toBe(true); + expect(isValidSpanId("0123456789abcdef")).toBe(true); + }); + + it("rejects uppercase hex characters", () => { + expect(isValidSpanId("B".repeat(16))).toBe(false); + }); + + it("rejects strings that are too short or too long", () => { + expect(isValidSpanId("b".repeat(15))).toBe(false); + expect(isValidSpanId("b".repeat(17))).toBe(false); + }); + + it("rejects empty string", () => { + expect(isValidSpanId("")).toBe(false); + }); + + it("rejects non-hex characters", () => { + expect(isValidSpanId("z".repeat(16))).toBe(false); + }); +}); + +// --------------------------------------------------------------------------- +// generateTraceId +// --------------------------------------------------------------------------- + +describe("generateTraceId", () => { + it("returns a 32-character hex string", () => { + const id = generateTraceId(); + expect(id).toMatch(/^[0-9a-f]{32}$/); + }); + + it("returns a unique value on each call", () => { + expect(generateTraceId()).not.toBe(generateTraceId()); + }); +}); + +// --------------------------------------------------------------------------- +// generateSpanId +// --------------------------------------------------------------------------- + +describe("generateSpanId", () => { + it("returns a 16-character hex string", () => { + const id = generateSpanId(); + expect(id).toMatch(/^[0-9a-f]{16}$/); + }); + + it("returns a unique value on each call", () => { + expect(generateSpanId()).not.toBe(generateSpanId()); + }); +}); + +// --------------------------------------------------------------------------- +// toNanoString +// --------------------------------------------------------------------------- + +describe("toNanoString", () => { + it("converts milliseconds to nanoseconds string", () => { + expect(toNanoString(1000)).toBe("1000000000"); + }); + + it("handles zero", () => { + expect(toNanoString(0)).toBe("0"); + }); + + it("handles a realistic GitHub Actions timestamp without precision loss", () => { + const ms = 1700000000000; // 2023-11-14T22:13:20Z + const nanos = toNanoString(ms); + expect(nanos).toBe("1700000000000000000"); + }); + + it("truncates fractional milliseconds", () => { + // 1500.9 ms should truncate to 1500 + expect(toNanoString(1500.9)).toBe("1500000000"); + }); +}); + +// --------------------------------------------------------------------------- +// buildAttr +// --------------------------------------------------------------------------- + +describe("buildAttr", () => { + it("returns stringValue for string input", () => { + expect(buildAttr("k", "v")).toEqual({ key: "k", value: { stringValue: "v" } }); + }); + + it("returns intValue for number input", () => { + expect(buildAttr("k", 42)).toEqual({ key: "k", value: { intValue: 42 } }); + }); + + it("returns boolValue for boolean input", () => { + expect(buildAttr("k", true)).toEqual({ key: "k", value: { boolValue: true } }); + expect(buildAttr("k", false)).toEqual({ key: "k", value: { boolValue: false } }); + }); + + it("coerces non-string non-number non-boolean to stringValue", () => { + // @ts-expect-error intentional type violation for coverage + expect(buildAttr("k", null).value).toHaveProperty("stringValue"); + }); +}); + +// --------------------------------------------------------------------------- +// buildOTLPPayload +// --------------------------------------------------------------------------- + +describe("buildOTLPPayload", () => { + it("produces a valid OTLP resourceSpans structure", () => { + const traceId = "a".repeat(32); + const spanId = "b".repeat(16); + const payload = buildOTLPPayload({ + traceId, + spanId, + spanName: "gh-aw.job.setup", + startMs: 1000, + endMs: 2000, + serviceName: "gh-aw", + scopeVersion: "v1.2.3", + attributes: [buildAttr("foo", "bar")], + }); + + expect(payload.resourceSpans).toHaveLength(1); + const rs = payload.resourceSpans[0]; + + // Resource + expect(rs.resource.attributes).toContainEqual({ key: "service.name", value: { stringValue: "gh-aw" } }); + + // Scope — name is always "gh-aw"; version comes from scopeVersion + expect(rs.scopeSpans).toHaveLength(1); + expect(rs.scopeSpans[0].scope.name).toBe("gh-aw"); + expect(rs.scopeSpans[0].scope.version).toBe("v1.2.3"); + + // Span + const span = rs.scopeSpans[0].spans[0]; + expect(span.traceId).toBe(traceId); + expect(span.spanId).toBe(spanId); + expect(span.name).toBe("gh-aw.job.setup"); + expect(span.kind).toBe(2); + expect(span.startTimeUnixNano).toBe(toNanoString(1000)); + expect(span.endTimeUnixNano).toBe(toNanoString(2000)); + expect(span.status.code).toBe(1); + expect(span.attributes).toContainEqual({ key: "foo", value: { stringValue: "bar" } }); + }); + + it("uses 'unknown' as scope version when scopeVersion is omitted", () => { + const payload = buildOTLPPayload({ + traceId: "a".repeat(32), + spanId: "b".repeat(16), + spanName: "test", + startMs: 0, + endMs: 1, + serviceName: "gh-aw", + attributes: [], + }); + expect(payload.resourceSpans[0].scopeSpans[0].scope.version).toBe("unknown"); + }); + + it("includes parentSpanId in span when provided", () => { + const payload = buildOTLPPayload({ + traceId: "a".repeat(32), + spanId: "b".repeat(16), + parentSpanId: "c".repeat(16), + spanName: "test", + startMs: 0, + endMs: 1, + serviceName: "gh-aw", + attributes: [], + }); + const span = payload.resourceSpans[0].scopeSpans[0].spans[0]; + expect(span.parentSpanId).toBe("c".repeat(16)); + }); + + it("omits parentSpanId from span when not provided", () => { + const payload = buildOTLPPayload({ + traceId: "a".repeat(32), + spanId: "b".repeat(16), + spanName: "test", + startMs: 0, + endMs: 1, + serviceName: "gh-aw", + attributes: [], + }); + const span = payload.resourceSpans[0].scopeSpans[0].spans[0]; + expect(span.parentSpanId).toBeUndefined(); + }); +}); + +// --------------------------------------------------------------------------- +// sendOTLPSpan +// --------------------------------------------------------------------------- + +describe("sendOTLPSpan", () => { + let mkdirSpy, appendSpy; + + beforeEach(() => { + vi.stubGlobal("fetch", vi.fn()); + mkdirSpy = vi.spyOn(fs, "mkdirSync").mockImplementation(() => {}); + appendSpy = vi.spyOn(fs, "appendFileSync").mockImplementation(() => {}); + }); + + afterEach(() => { + vi.unstubAllGlobals(); + mkdirSpy.mockRestore(); + appendSpy.mockRestore(); + }); + + it("POSTs JSON payload to endpoint/v1/traces", async () => { + const mockFetch = vi.fn().mockResolvedValue({ ok: true, status: 200, statusText: "OK" }); + vi.stubGlobal("fetch", mockFetch); + + const payload = { resourceSpans: [] }; + await sendOTLPSpan("https://traces.example.com:4317", payload); + + expect(mockFetch).toHaveBeenCalledOnce(); + const [url, init] = mockFetch.mock.calls[0]; + expect(url).toBe("https://traces.example.com:4317/v1/traces"); + expect(init.method).toBe("POST"); + expect(init.headers["Content-Type"]).toBe("application/json"); + expect(JSON.parse(init.body)).toEqual(payload); + }); + + it("strips trailing slash from endpoint before appending /v1/traces", async () => { + const mockFetch = vi.fn().mockResolvedValue({ ok: true, status: 200, statusText: "OK" }); + vi.stubGlobal("fetch", mockFetch); + + await sendOTLPSpan("https://traces.example.com/", {}); + const [url] = mockFetch.mock.calls[0]; + expect(url).toBe("https://traces.example.com/v1/traces"); + }); + + it("warns (does not throw) when server returns non-2xx status on all retries", async () => { + const mockFetch = vi.fn().mockResolvedValue({ ok: false, status: 400, statusText: "Bad Request" }); + vi.stubGlobal("fetch", mockFetch); + const warnSpy = vi.spyOn(console, "warn").mockImplementation(() => {}); + + // Should not throw + await expect(sendOTLPSpan("https://traces.example.com", {}, { maxRetries: 1, baseDelayMs: 1 })).resolves.toBeUndefined(); + + // Two attempts (1 initial + 1 retry) + expect(mockFetch).toHaveBeenCalledTimes(2); + expect(warnSpy).toHaveBeenCalledTimes(2); + expect(warnSpy.mock.calls[0][0]).toContain("attempt 1/2 failed"); + expect(warnSpy.mock.calls[1][0]).toContain("failed after 2 attempts"); + + warnSpy.mockRestore(); + }); + + it("retries on failure and succeeds on second attempt", async () => { + const mockFetch = vi.fn().mockResolvedValueOnce({ ok: false, status: 503, statusText: "Service Unavailable" }).mockResolvedValueOnce({ ok: true, status: 200, statusText: "OK" }); + vi.stubGlobal("fetch", mockFetch); + const warnSpy = vi.spyOn(console, "warn").mockImplementation(() => {}); + + await sendOTLPSpan("https://traces.example.com", {}, { maxRetries: 2, baseDelayMs: 1 }); + + expect(mockFetch).toHaveBeenCalledTimes(2); + expect(warnSpy).toHaveBeenCalledTimes(1); + expect(warnSpy.mock.calls[0][0]).toContain("attempt 1/3 failed"); + + warnSpy.mockRestore(); + }); + + it("warns (does not throw) when fetch rejects on all retries", async () => { + const mockFetch = vi.fn().mockRejectedValue(new Error("network error")); + vi.stubGlobal("fetch", mockFetch); + const warnSpy = vi.spyOn(console, "warn").mockImplementation(() => {}); + + await expect(sendOTLPSpan("https://traces.example.com", {}, { maxRetries: 1, baseDelayMs: 1 })).resolves.toBeUndefined(); + + expect(mockFetch).toHaveBeenCalledTimes(2); + expect(warnSpy.mock.calls[1][0]).toContain("error after 2 attempts"); + + warnSpy.mockRestore(); + }); +}); + +// --------------------------------------------------------------------------- +// appendToOTLPJSONL +// --------------------------------------------------------------------------- + +describe("appendToOTLPJSONL", () => { + let mkdirSpy, appendSpy; + + beforeEach(() => { + mkdirSpy = vi.spyOn(fs, "mkdirSync").mockImplementation(() => {}); + appendSpy = vi.spyOn(fs, "appendFileSync").mockImplementation(() => {}); + }); + + afterEach(() => { + mkdirSpy.mockRestore(); + appendSpy.mockRestore(); + }); + + it("writes payload as a JSON line to OTEL_JSONL_PATH", () => { + const payload = { resourceSpans: [{ spans: [] }] }; + appendToOTLPJSONL(payload); + + expect(appendSpy).toHaveBeenCalledOnce(); + const [filePath, content] = appendSpy.mock.calls[0]; + expect(filePath).toBe(OTEL_JSONL_PATH); + expect(content).toBe(JSON.stringify(payload) + "\n"); + }); + + it("ensures /tmp/gh-aw directory exists before writing", () => { + appendToOTLPJSONL({}); + + expect(mkdirSpy).toHaveBeenCalledWith("/tmp/gh-aw", { recursive: true }); + }); + + it("does not throw when appendFileSync fails", () => { + appendSpy.mockImplementation(() => { + throw new Error("disk full"); + }); + + expect(() => appendToOTLPJSONL({ spans: [] })).not.toThrow(); + }); +}); + +// --------------------------------------------------------------------------- +// sendOTLPSpan – JSONL mirror +// --------------------------------------------------------------------------- + +describe("sendOTLPSpan JSONL mirror", () => { + let mkdirSpy, appendSpy; + + beforeEach(() => { + mkdirSpy = vi.spyOn(fs, "mkdirSync").mockImplementation(() => {}); + appendSpy = vi.spyOn(fs, "appendFileSync").mockImplementation(() => {}); + vi.stubGlobal("fetch", vi.fn().mockResolvedValue({ ok: true, status: 200, statusText: "OK" })); + }); + + afterEach(() => { + mkdirSpy.mockRestore(); + appendSpy.mockRestore(); + vi.unstubAllGlobals(); + }); + + it("mirrors the payload to otel.jsonl even when fetch succeeds", async () => { + const payload = { resourceSpans: [] }; + await sendOTLPSpan("https://traces.example.com", payload); + + expect(appendSpy).toHaveBeenCalledOnce(); + const [filePath, content] = appendSpy.mock.calls[0]; + expect(filePath).toBe(OTEL_JSONL_PATH); + expect(content).toBe(JSON.stringify(payload) + "\n"); + }); + + it("mirrors the payload to otel.jsonl even when fetch fails all retries", async () => { + vi.stubGlobal("fetch", vi.fn().mockResolvedValue({ ok: false, status: 503, statusText: "Unavailable" })); + const warnSpy = vi.spyOn(console, "warn").mockImplementation(() => {}); + + const payload = { resourceSpans: [{ note: "retry-test" }] }; + await sendOTLPSpan("https://traces.example.com", payload, { maxRetries: 1, baseDelayMs: 1 }); + + expect(appendSpy).toHaveBeenCalledOnce(); + expect(appendSpy.mock.calls[0][1]).toBe(JSON.stringify(payload) + "\n"); + + warnSpy.mockRestore(); + }); +}); + +// --------------------------------------------------------------------------- +// parseOTLPHeaders +// --------------------------------------------------------------------------- + +describe("parseOTLPHeaders", () => { + it("returns empty object for empty/null/whitespace input", () => { + expect(parseOTLPHeaders("")).toEqual({}); + expect(parseOTLPHeaders(" ")).toEqual({}); + }); + + it("parses a single key=value pair", () => { + expect(parseOTLPHeaders("Authorization=Bearer mytoken")).toEqual({ Authorization: "Bearer mytoken" }); + }); + + it("parses multiple comma-separated key=value pairs", () => { + expect(parseOTLPHeaders("X-Tenant=acme,X-Region=us-east-1")).toEqual({ + "X-Tenant": "acme", + "X-Region": "us-east-1", + }); + }); + + it("handles percent-encoded values", () => { + expect(parseOTLPHeaders("Authorization=Bearer%20tok%3Dvalue")).toEqual({ Authorization: "Bearer tok=value" }); + }); + + it("decodes before trimming so encoded whitespace at edges is preserved", () => { + // %20 at start/end of value should survive: decode first, then trim removes nothing + expect(parseOTLPHeaders("X-Token=abc%20def")).toEqual({ "X-Token": "abc def" }); + }); + + it("handles values containing = signs (only first = is delimiter)", () => { + expect(parseOTLPHeaders("Authorization=Bearer base64==")).toEqual({ Authorization: "Bearer base64==" }); + }); + + it("parses Sentry OTLP header format (value contains space and embedded = sign)", () => { + // Sentry's OTLP auth header: x-sentry-auth: Sentry sentry_key= + // The value "Sentry sentry_key=abc123" contains both a space and an embedded =. + expect(parseOTLPHeaders("x-sentry-auth=Sentry sentry_key=abc123def456")).toEqual({ + "x-sentry-auth": "Sentry sentry_key=abc123def456", + }); + }); + + it("parses Sentry header combined with another header", () => { + expect(parseOTLPHeaders("x-sentry-auth=Sentry sentry_key=mykey,x-custom=value")).toEqual({ + "x-sentry-auth": "Sentry sentry_key=mykey", + "x-custom": "value", + }); + }); + + it("skips malformed pairs with no =", () => { + const result = parseOTLPHeaders("Valid=value,malformedNoEquals"); + expect(result).toEqual({ Valid: "value" }); + }); + + it("skips pairs with empty key", () => { + const result = parseOTLPHeaders("=value,Good=ok"); + expect(result).toEqual({ Good: "ok" }); + }); +}); + +// --------------------------------------------------------------------------- +// sendOTLPSpan headers +// --------------------------------------------------------------------------- + +describe("sendOTLPSpan with OTEL_EXPORTER_OTLP_HEADERS", () => { + const savedHeaders = process.env.OTEL_EXPORTER_OTLP_HEADERS; + let mkdirSpy, appendSpy; + + beforeEach(() => { + vi.stubGlobal("fetch", vi.fn()); + delete process.env.OTEL_EXPORTER_OTLP_HEADERS; + mkdirSpy = vi.spyOn(fs, "mkdirSync").mockImplementation(() => {}); + appendSpy = vi.spyOn(fs, "appendFileSync").mockImplementation(() => {}); + }); + + afterEach(() => { + vi.unstubAllGlobals(); + mkdirSpy.mockRestore(); + appendSpy.mockRestore(); + if (savedHeaders !== undefined) { + process.env.OTEL_EXPORTER_OTLP_HEADERS = savedHeaders; + } else { + delete process.env.OTEL_EXPORTER_OTLP_HEADERS; + } + }); + + it("includes custom headers when OTEL_EXPORTER_OTLP_HEADERS is set", async () => { + const mockFetch = vi.fn().mockResolvedValue({ ok: true, status: 200, statusText: "OK" }); + vi.stubGlobal("fetch", mockFetch); + + process.env.OTEL_EXPORTER_OTLP_HEADERS = "Authorization=Bearer mytoken,X-Tenant=acme"; + await sendOTLPSpan("https://traces.example.com", {}); + + const [, init] = mockFetch.mock.calls[0]; + expect(init.headers["Authorization"]).toBe("Bearer mytoken"); + expect(init.headers["X-Tenant"]).toBe("acme"); + expect(init.headers["Content-Type"]).toBe("application/json"); + }); + + it("does not add extra headers when OTEL_EXPORTER_OTLP_HEADERS is absent", async () => { + const mockFetch = vi.fn().mockResolvedValue({ ok: true, status: 200, statusText: "OK" }); + vi.stubGlobal("fetch", mockFetch); + + await sendOTLPSpan("https://traces.example.com", {}); + + const [, init] = mockFetch.mock.calls[0]; + expect(Object.keys(init.headers)).toEqual(["Content-Type"]); + }); +}); + +// --------------------------------------------------------------------------- +// sendJobSetupSpan +// --------------------------------------------------------------------------- + +describe("sendJobSetupSpan", () => { + /** @type {Record} */ + const savedEnv = {}; + const envKeys = ["OTEL_EXPORTER_OTLP_ENDPOINT", "OTEL_SERVICE_NAME", "INPUT_JOB_NAME", "INPUT_TRACE_ID", "GH_AW_INFO_WORKFLOW_NAME", "GH_AW_INFO_ENGINE_ID", "GITHUB_RUN_ID", "GITHUB_ACTOR", "GITHUB_REPOSITORY"]; + let mkdirSpy, appendSpy; + + beforeEach(() => { + vi.stubGlobal("fetch", vi.fn()); + for (const k of envKeys) { + savedEnv[k] = process.env[k]; + delete process.env[k]; + } + mkdirSpy = vi.spyOn(fs, "mkdirSync").mockImplementation(() => {}); + appendSpy = vi.spyOn(fs, "appendFileSync").mockImplementation(() => {}); + }); + + afterEach(() => { + vi.unstubAllGlobals(); + for (const k of envKeys) { + if (savedEnv[k] !== undefined) { + process.env[k] = savedEnv[k]; + } else { + delete process.env[k]; + } + } + mkdirSpy.mockRestore(); + appendSpy.mockRestore(); + }); + + /** + * Extract the scalar value from an OTLP attribute's `value` union, covering all + * known OTLP value types (stringValue, intValue, boolValue). + * + * @param {{ key: string, value: { stringValue?: string, intValue?: number, boolValue?: boolean } }} attr + * @returns {string | number | boolean | undefined} + */ + function attrValue(attr) { + if (attr.value.stringValue !== undefined) return attr.value.stringValue; + if (attr.value.intValue !== undefined) return attr.value.intValue; + if (attr.value.boolValue !== undefined) return attr.value.boolValue; + return undefined; + } + + it("returns a trace ID and span ID even when OTEL_EXPORTER_OTLP_ENDPOINT is not set", async () => { + const { traceId, spanId } = await sendJobSetupSpan(); + expect(traceId).toMatch(/^[0-9a-f]{32}$/); + expect(spanId).toMatch(/^[0-9a-f]{16}$/); + expect(fetch).not.toHaveBeenCalled(); + }); + + it("returns the same trace ID when called with INPUT_TRACE_ID and no endpoint", async () => { + process.env.INPUT_TRACE_ID = "a".repeat(32); + const { traceId } = await sendJobSetupSpan(); + expect(traceId).toBe("a".repeat(32)); + expect(fetch).not.toHaveBeenCalled(); + }); + + it("generates a new trace ID when INPUT_TRACE_ID is invalid", async () => { + process.env.INPUT_TRACE_ID = "not-a-valid-trace-id"; + const { traceId } = await sendJobSetupSpan(); + expect(traceId).toMatch(/^[0-9a-f]{32}$/); + expect(traceId).not.toBe("not-a-valid-trace-id"); + }); + + it("normalizes uppercase INPUT_TRACE_ID to lowercase and accepts it", async () => { + // Trace IDs pasted from external tools may be uppercase; we normalise them. + process.env.INPUT_TRACE_ID = "A".repeat(32); + const { traceId } = await sendJobSetupSpan(); + expect(traceId).toBe("a".repeat(32)); + }); + + it("rejects an invalid options.traceId and generates a new trace ID", async () => { + const { traceId } = await sendJobSetupSpan({ traceId: "too-short" }); + expect(traceId).toMatch(/^[0-9a-f]{32}$/); + expect(traceId).not.toBe("too-short"); + }); + + it("sends a span when endpoint is configured and returns the trace ID and span ID", async () => { + const mockFetch = vi.fn().mockResolvedValue({ ok: true, status: 200, statusText: "OK" }); + vi.stubGlobal("fetch", mockFetch); + + process.env.OTEL_EXPORTER_OTLP_ENDPOINT = "https://traces.example.com"; + process.env.INPUT_JOB_NAME = "agent"; + process.env.GH_AW_INFO_WORKFLOW_NAME = "my-workflow"; + process.env.GH_AW_INFO_ENGINE_ID = "copilot"; + process.env.GITHUB_RUN_ID = "123456789"; + process.env.GITHUB_ACTOR = "octocat"; + process.env.GITHUB_REPOSITORY = "owner/repo"; + + const { traceId, spanId } = await sendJobSetupSpan(); + + expect(traceId).toMatch(/^[0-9a-f]{32}$/); + expect(spanId).toMatch(/^[0-9a-f]{16}$/); + expect(mockFetch).toHaveBeenCalledOnce(); + const [url, init] = mockFetch.mock.calls[0]; + expect(url).toBe("https://traces.example.com/v1/traces"); + expect(init.method).toBe("POST"); + + const body = JSON.parse(init.body); + const span = body.resourceSpans[0].scopeSpans[0].spans[0]; + expect(span.name).toBe("gh-aw.job.setup"); + // Span traceId and spanId must match the returned values + expect(span.traceId).toBe(traceId); + expect(span.spanId).toBe(spanId); + + const attrs = Object.fromEntries(span.attributes.map(a => [a.key, attrValue(a)])); + expect(attrs["gh-aw.job.name"]).toBe("agent"); + expect(attrs["gh-aw.workflow.name"]).toBe("my-workflow"); + expect(attrs["gh-aw.engine.id"]).toBe("copilot"); + expect(attrs["gh-aw.run.id"]).toBe("123456789"); + expect(attrs["gh-aw.run.actor"]).toBe("octocat"); + expect(attrs["gh-aw.repository"]).toBe("owner/repo"); + }); + + it("uses trace ID from options.traceId for cross-job correlation", async () => { + const mockFetch = vi.fn().mockResolvedValue({ ok: true, status: 200, statusText: "OK" }); + vi.stubGlobal("fetch", mockFetch); + + process.env.OTEL_EXPORTER_OTLP_ENDPOINT = "https://traces.example.com"; + const correlationTraceId = "b".repeat(32); + + const { traceId } = await sendJobSetupSpan({ traceId: correlationTraceId }); + + expect(traceId).toBe(correlationTraceId); + const body = JSON.parse(mockFetch.mock.calls[0][1].body); + expect(body.resourceSpans[0].scopeSpans[0].spans[0].traceId).toBe(correlationTraceId); + }); + + it("uses trace ID from INPUT_TRACE_ID env var when options.traceId is absent", async () => { + const mockFetch = vi.fn().mockResolvedValue({ ok: true, status: 200, statusText: "OK" }); + vi.stubGlobal("fetch", mockFetch); + + process.env.OTEL_EXPORTER_OTLP_ENDPOINT = "https://traces.example.com"; + process.env.INPUT_TRACE_ID = "c".repeat(32); + + const { traceId } = await sendJobSetupSpan(); + + expect(traceId).toBe("c".repeat(32)); + const body = JSON.parse(mockFetch.mock.calls[0][1].body); + expect(body.resourceSpans[0].scopeSpans[0].spans[0].traceId).toBe("c".repeat(32)); + }); + + it("options.traceId takes priority over INPUT_TRACE_ID", async () => { + const mockFetch = vi.fn().mockResolvedValue({ ok: true, status: 200, statusText: "OK" }); + vi.stubGlobal("fetch", mockFetch); + + process.env.OTEL_EXPORTER_OTLP_ENDPOINT = "https://traces.example.com"; + process.env.INPUT_TRACE_ID = "d".repeat(32); + + const { traceId } = await sendJobSetupSpan({ traceId: "e".repeat(32) }); + + expect(traceId).toBe("e".repeat(32)); + const body = JSON.parse(mockFetch.mock.calls[0][1].body); + expect(body.resourceSpans[0].scopeSpans[0].spans[0].traceId).toBe("e".repeat(32)); + }); + + it("uses the provided startMs for the span start time", async () => { + const mockFetch = vi.fn().mockResolvedValue({ ok: true, status: 200, statusText: "OK" }); + vi.stubGlobal("fetch", mockFetch); + + process.env.OTEL_EXPORTER_OTLP_ENDPOINT = "https://traces.example.com"; + const startMs = 1_700_000_000_000; + await sendJobSetupSpan({ startMs }); + + const body = JSON.parse(mockFetch.mock.calls[0][1].body); + const span = body.resourceSpans[0].scopeSpans[0].spans[0]; + expect(span.startTimeUnixNano).toBe(toNanoString(startMs)); + }); + + it("uses OTEL_SERVICE_NAME for the resource service.name attribute", async () => { + const mockFetch = vi.fn().mockResolvedValue({ ok: true, status: 200, statusText: "OK" }); + vi.stubGlobal("fetch", mockFetch); + + process.env.OTEL_EXPORTER_OTLP_ENDPOINT = "https://traces.example.com"; + process.env.OTEL_SERVICE_NAME = "my-service"; + + await sendJobSetupSpan(); + + const body = JSON.parse(mockFetch.mock.calls[0][1].body); + const resourceAttrs = body.resourceSpans[0].resource.attributes; + expect(resourceAttrs).toContainEqual({ key: "service.name", value: { stringValue: "my-service" } }); + }); + + it("omits gh-aw.engine.id attribute when engine is not set", async () => { + const mockFetch = vi.fn().mockResolvedValue({ ok: true, status: 200, statusText: "OK" }); + vi.stubGlobal("fetch", mockFetch); + + process.env.OTEL_EXPORTER_OTLP_ENDPOINT = "https://traces.example.com"; + + await sendJobSetupSpan(); + + const body = JSON.parse(mockFetch.mock.calls[0][1].body); + const span = body.resourceSpans[0].scopeSpans[0].spans[0]; + const keys = span.attributes.map(a => a.key); + expect(keys).not.toContain("gh-aw.engine.id"); + }); +}); + +// --------------------------------------------------------------------------- +// sendJobConclusionSpan +// --------------------------------------------------------------------------- + +describe("sendJobConclusionSpan", () => { + /** @type {Record} */ + const savedEnv = {}; + const envKeys = [ + "OTEL_EXPORTER_OTLP_ENDPOINT", + "OTEL_SERVICE_NAME", + "GH_AW_EFFECTIVE_TOKENS", + "GH_AW_INFO_VERSION", + "GITHUB_AW_OTEL_TRACE_ID", + "GITHUB_AW_OTEL_PARENT_SPAN_ID", + "GITHUB_RUN_ID", + "GITHUB_ACTOR", + "GITHUB_REPOSITORY", + "INPUT_JOB_NAME", + ]; + let mkdirSpy, appendSpy; + + beforeEach(() => { + vi.stubGlobal("fetch", vi.fn()); + for (const k of envKeys) { + savedEnv[k] = process.env[k]; + delete process.env[k]; + } + mkdirSpy = vi.spyOn(fs, "mkdirSync").mockImplementation(() => {}); + appendSpy = vi.spyOn(fs, "appendFileSync").mockImplementation(() => {}); + }); + + afterEach(() => { + vi.unstubAllGlobals(); + for (const k of envKeys) { + if (savedEnv[k] !== undefined) { + process.env[k] = savedEnv[k]; + } else { + delete process.env[k]; + } + } + mkdirSpy.mockRestore(); + appendSpy.mockRestore(); + }); + + it("is a no-op when OTEL_EXPORTER_OTLP_ENDPOINT is not set", async () => { + await sendJobConclusionSpan("gh-aw.job.conclusion"); + expect(fetch).not.toHaveBeenCalled(); + }); + + it("sends a span with the given span name", async () => { + const mockFetch = vi.fn().mockResolvedValue({ ok: true, status: 200, statusText: "OK" }); + vi.stubGlobal("fetch", mockFetch); + + process.env.OTEL_EXPORTER_OTLP_ENDPOINT = "https://traces.example.com"; + process.env.GITHUB_RUN_ID = "111"; + process.env.GITHUB_ACTOR = "octocat"; + process.env.GITHUB_REPOSITORY = "owner/repo"; + + await sendJobConclusionSpan("gh-aw.job.safe-outputs"); + + expect(mockFetch).toHaveBeenCalledOnce(); + const body = JSON.parse(mockFetch.mock.calls[0][1].body); + const span = body.resourceSpans[0].scopeSpans[0].spans[0]; + expect(span.name).toBe("gh-aw.job.safe-outputs"); + expect(span.traceId).toMatch(/^[0-9a-f]{32}$/); + expect(span.spanId).toMatch(/^[0-9a-f]{16}$/); + }); + + it("includes effective_tokens attribute when GH_AW_EFFECTIVE_TOKENS is set", async () => { + const mockFetch = vi.fn().mockResolvedValue({ ok: true, status: 200, statusText: "OK" }); + vi.stubGlobal("fetch", mockFetch); + + process.env.OTEL_EXPORTER_OTLP_ENDPOINT = "https://traces.example.com"; + process.env.GH_AW_EFFECTIVE_TOKENS = "5000"; + + await sendJobConclusionSpan("gh-aw.job.conclusion"); + + const body = JSON.parse(mockFetch.mock.calls[0][1].body); + const span = body.resourceSpans[0].scopeSpans[0].spans[0]; + const etAttr = span.attributes.find(a => a.key === "gh-aw.effective_tokens"); + expect(etAttr).toBeDefined(); + expect(etAttr.value.intValue).toBe(5000); + }); + + it("omits effective_tokens attribute when GH_AW_EFFECTIVE_TOKENS is absent", async () => { + const mockFetch = vi.fn().mockResolvedValue({ ok: true, status: 200, statusText: "OK" }); + vi.stubGlobal("fetch", mockFetch); + + process.env.OTEL_EXPORTER_OTLP_ENDPOINT = "https://traces.example.com"; + + await sendJobConclusionSpan("gh-aw.job.conclusion"); + + const body = JSON.parse(mockFetch.mock.calls[0][1].body); + const span = body.resourceSpans[0].scopeSpans[0].spans[0]; + const keys = span.attributes.map(a => a.key); + expect(keys).not.toContain("gh-aw.effective_tokens"); + }); + + it("uses GH_AW_INFO_VERSION as scope version when aw_info.json is absent", async () => { + const mockFetch = vi.fn().mockResolvedValue({ ok: true, status: 200, statusText: "OK" }); + vi.stubGlobal("fetch", mockFetch); + + process.env.OTEL_EXPORTER_OTLP_ENDPOINT = "https://traces.example.com"; + process.env.GH_AW_INFO_VERSION = "v2.0.0"; + + await sendJobConclusionSpan("gh-aw.job.conclusion"); + + const body = JSON.parse(mockFetch.mock.calls[0][1].body); + expect(body.resourceSpans[0].scopeSpans[0].scope.version).toBe("v2.0.0"); + }); + + it("uses GITHUB_AW_OTEL_TRACE_ID from env as trace ID (1 trace per run)", async () => { + const mockFetch = vi.fn().mockResolvedValue({ ok: true, status: 200, statusText: "OK" }); + vi.stubGlobal("fetch", mockFetch); + + process.env.OTEL_EXPORTER_OTLP_ENDPOINT = "https://traces.example.com"; + process.env.GITHUB_AW_OTEL_TRACE_ID = "f".repeat(32); + + await sendJobConclusionSpan("gh-aw.job.conclusion"); + + const body = JSON.parse(mockFetch.mock.calls[0][1].body); + const span = body.resourceSpans[0].scopeSpans[0].spans[0]; + expect(span.traceId).toBe("f".repeat(32)); + }); + + it("uses GITHUB_AW_OTEL_PARENT_SPAN_ID as parentSpanId (1 parent span per job)", async () => { + const mockFetch = vi.fn().mockResolvedValue({ ok: true, status: 200, statusText: "OK" }); + vi.stubGlobal("fetch", mockFetch); + + process.env.OTEL_EXPORTER_OTLP_ENDPOINT = "https://traces.example.com"; + const parentSpanId = "abcdef1234567890"; + process.env.GITHUB_AW_OTEL_PARENT_SPAN_ID = parentSpanId; + + await sendJobConclusionSpan("gh-aw.job.conclusion"); + + const body = JSON.parse(mockFetch.mock.calls[0][1].body); + const span = body.resourceSpans[0].scopeSpans[0].spans[0]; + expect(span.parentSpanId).toBe(parentSpanId); + }); + + it("omits parentSpanId when GITHUB_AW_OTEL_PARENT_SPAN_ID is absent", async () => { + const mockFetch = vi.fn().mockResolvedValue({ ok: true, status: 200, statusText: "OK" }); + vi.stubGlobal("fetch", mockFetch); + + process.env.OTEL_EXPORTER_OTLP_ENDPOINT = "https://traces.example.com"; + + await sendJobConclusionSpan("gh-aw.job.conclusion"); + + const body = JSON.parse(mockFetch.mock.calls[0][1].body); + const span = body.resourceSpans[0].scopeSpans[0].spans[0]; + expect(span.parentSpanId).toBeUndefined(); + }); + + it("normalizes uppercase GITHUB_AW_OTEL_TRACE_ID to lowercase", async () => { + const mockFetch = vi.fn().mockResolvedValue({ ok: true, status: 200, statusText: "OK" }); + vi.stubGlobal("fetch", mockFetch); + + process.env.OTEL_EXPORTER_OTLP_ENDPOINT = "https://traces.example.com"; + process.env.GITHUB_AW_OTEL_TRACE_ID = "F".repeat(32); // uppercase — should be normalised + + await sendJobConclusionSpan("gh-aw.job.conclusion"); + + const body = JSON.parse(mockFetch.mock.calls[0][1].body); + const span = body.resourceSpans[0].scopeSpans[0].spans[0]; + expect(span.traceId).toBe("f".repeat(32)); + }); +}); diff --git a/actions/setup/post.js b/actions/setup/post.js index 96f8470c10..d8445ae588 100644 --- a/actions/setup/post.js +++ b/actions/setup/post.js @@ -1,5 +1,6 @@ -// Setup Activation Action - Post Cleanup -// Removes the /tmp/gh-aw/ directory created during the main action step. +// Setup Activation Action - Post Step +// Sends an OTLP conclusion span for the job, then removes the /tmp/gh-aw/ +// directory created during the main action step. // Runs in the post-job phase so that temporary files are erased after the // workflow job completes, regardless of success or failure. // @@ -8,25 +9,41 @@ // passwordless sudo. We fall back to fs.rmSync for self-hosted runners that // don't have sudo but do have direct write access. +const path = require("path"); const { spawnSync } = require("child_process"); const fs = require("fs"); -const tmpDir = "/tmp/gh-aw"; +// Wrap everything in an async IIFE so that the OTLP span is fully sent before +// the cleanup deletes /tmp/gh-aw/ (which contains aw_info.json and otel.jsonl). +(async () => { + // Send a gh-aw.job.conclusion span to the configured OTLP endpoint, if any. + // Delegates to action_conclusion_otlp.cjs so that script mode (clean.sh) and + // dev/release mode share the same implementation. Non-fatal: errors are + // handled inside sendJobConclusionSpan via console.warn. + try { + const { run } = require(path.join(__dirname, "js", "action_conclusion_otlp.cjs")); + await run(); + } catch { + // Non-fatal: silently ignore any OTLP export errors in the post step. + } -console.log(`Cleaning up ${tmpDir}...`); + const tmpDir = "/tmp/gh-aw"; -// Try sudo rm -rf first (handles root-owned files on GitHub-hosted runners) -const result = spawnSync("sudo", ["rm", "-rf", tmpDir], { stdio: "inherit" }); + console.log(`Cleaning up ${tmpDir}...`); -if (result.status === 0) { - console.log(`Cleaned up ${tmpDir}`); -} else { - // Fall back to fs.rmSync for environments without sudo - try { - fs.rmSync(tmpDir, { recursive: true, force: true }); + // Try sudo rm -rf first (handles root-owned files on GitHub-hosted runners) + const result = spawnSync("sudo", ["rm", "-rf", tmpDir], { stdio: "inherit" }); + + if (result.status === 0) { console.log(`Cleaned up ${tmpDir}`); - } catch (err) { - // Log but do not fail — cleanup is best-effort - console.error(`Warning: failed to clean up ${tmpDir}: ${err.message}`); + } else { + // Fall back to fs.rmSync for environments without sudo + try { + fs.rmSync(tmpDir, { recursive: true, force: true }); + console.log(`Cleaned up ${tmpDir}`); + } catch (err) { + // Log but do not fail — cleanup is best-effort + console.error(`Warning: failed to clean up ${tmpDir}: ${err.message}`); + } } -} +})(); diff --git a/actions/setup/setup.sh b/actions/setup/setup.sh index d1402d25c7..3dbbf986dd 100755 --- a/actions/setup/setup.sh +++ b/actions/setup/setup.sh @@ -16,6 +16,10 @@ set -e +# Capture start time immediately so the OTLP setup span reflects actual setup duration. +# Falls back to 0 when node is unavailable. +SETUP_START_MS=$(node -e "process.stdout.write(String(Date.now()))" 2>/dev/null || echo "0") + # Helper: create directories, using sudo on macOS where system directories are root-owned create_dir() { if [[ "$(uname -s)" == "Darwin" ]] && [[ "$1" == /opt/* ]]; then @@ -383,6 +387,16 @@ else echo "Custom tokens not enabled - skipping @actions/github installation" fi +# Send OTLP job setup span when configured (non-fatal). +# Delegates to action_setup_otlp.cjs (same file used by actions/setup/index.js) +# to keep dev/release and script mode behavior in sync. +# Skipped when GH_AW_SKIP_SETUP_OTLP=1 because index.js will send the span itself. +if [ -z "${GH_AW_SKIP_SETUP_OTLP}" ] && command -v node &>/dev/null && [ -f "${DESTINATION}/action_setup_otlp.cjs" ]; then + echo "Sending OTLP setup span..." + SETUP_START_MS="${SETUP_START_MS}" INPUT_TRACE_ID="${INPUT_TRACE_ID:-}" node "${DESTINATION}/action_setup_otlp.cjs" || true + echo "OTLP setup span step complete" +fi + # Set output if [ -n "${GITHUB_OUTPUT}" ]; then echo "files_copied=${FILE_COUNT}" >> "${GITHUB_OUTPUT}" diff --git a/pkg/parser/schemas/main_workflow_schema.json b/pkg/parser/schemas/main_workflow_schema.json index 66026536a3..e1080e2074 100644 --- a/pkg/parser/schemas/main_workflow_schema.json +++ b/pkg/parser/schemas/main_workflow_schema.json @@ -8328,6 +8328,21 @@ "type": "string", "enum": ["on", "off"], "description": "If set to 'on', append a compact observability section to the GitHub Actions job summary. Defaults to off when omitted." + }, + "otlp": { + "type": "object", + "description": "OTLP (OpenTelemetry Protocol) trace export configuration.", + "properties": { + "endpoint": { + "type": "string", + "description": "OTLP collector endpoint URL (e.g. 'https://traces.example.com:4317'). Supports GitHub Actions expressions such as ${{ secrets.OTLP_ENDPOINT }}. When a static URL is provided, its hostname is automatically added to the network firewall allowlist." + }, + "headers": { + "type": "string", + "description": "Comma-separated list of key=value HTTP headers to include with every OTLP export request (e.g. 'Authorization=Bearer '). Supports GitHub Actions expressions such as ${{ secrets.OTLP_HEADERS }}. Injected as the OTEL_EXPORTER_OTLP_HEADERS environment variable." + } + }, + "additionalProperties": false } }, "additionalProperties": false @@ -9161,7 +9176,12 @@ "type": "number", "minimum": 0 }, - "examples": [{ "my-custom-model": 2.5, "gpt-5": 3.0 }] + "examples": [ + { + "my-custom-model": 2.5, + "gpt-5": 3.0 + } + ] }, "token-class-weights": { "type": "object", diff --git a/pkg/workflow/cache.go b/pkg/workflow/cache.go index 7e9569a8d4..cd1de8e9ac 100644 --- a/pkg/workflow/cache.go +++ b/pkg/workflow/cache.go @@ -924,7 +924,9 @@ func (c *Compiler) buildUpdateCacheMemoryJob(data *WorkflowData, threatDetection setupSteps = append(setupSteps, c.generateCheckoutActionsFolder(data)...) // Cache restore job doesn't need project support - setupSteps = append(setupSteps, c.generateSetupStep(setupActionRef, SetupActionDestination, false)...) + // Cache job depends on agent job; reuse the agent's trace ID so all jobs share one OTLP trace + cacheTraceID := fmt.Sprintf("${{ needs.%s.outputs.setup-trace-id }}", constants.ActivationJobName) + setupSteps = append(setupSteps, c.generateSetupStep(setupActionRef, SetupActionDestination, false, cacheTraceID)...) } // Prepend setup steps to all cache steps @@ -962,7 +964,7 @@ func (c *Compiler) buildUpdateCacheMemoryJob(data *WorkflowData, threatDetection RunsOn: c.formatFrameworkJobRunsOn(data), If: jobCondition, Permissions: permissions, - Needs: []string{string(constants.AgentJobName), string(constants.DetectionJobName)}, + Needs: []string{string(constants.AgentJobName), string(constants.DetectionJobName), string(constants.ActivationJobName)}, Env: jobEnv, Steps: steps, } diff --git a/pkg/workflow/compiler_activation_job.go b/pkg/workflow/compiler_activation_job.go index c64eb953ae..55831bd403 100644 --- a/pkg/workflow/compiler_activation_job.go +++ b/pkg/workflow/compiler_activation_job.go @@ -34,7 +34,10 @@ func (c *Compiler) buildActivationJob(data *WorkflowData, preActivationJobCreate steps = append(steps, c.generateCheckoutActionsFolder(data)...) // Activation job doesn't need project support (no safe outputs processed here) - steps = append(steps, c.generateSetupStep(setupActionRef, SetupActionDestination, false)...) + // traceID is empty: activation generates the root trace ID + steps = append(steps, c.generateSetupStep(setupActionRef, SetupActionDestination, false, "")...) + // Expose the trace ID for cross-job span correlation so downstream jobs can reuse it + outputs["setup-trace-id"] = "${{ steps.setup.outputs.trace-id }}" // When a workflow_call trigger is present, resolve the platform (host) repository before // generating aw_info so that target_repo can be included in aw_info.json and used by @@ -570,6 +573,11 @@ func (c *Compiler) buildActivationJob(data *WorkflowData, preActivationJobCreate environment = "environment: " + cleanManualApproval } + // In script mode, explicitly add a cleanup step (mirrors post.js in dev/release/action mode). + if c.actionMode.IsScript() { + steps = append(steps, c.generateScriptModeCleanupStep()) + } + job := &Job{ Name: string(constants.ActivationJobName), If: activationCondition, diff --git a/pkg/workflow/compiler_custom_actions_test.go b/pkg/workflow/compiler_custom_actions_test.go index 9b47032c8f..28f3d4b5ce 100644 --- a/pkg/workflow/compiler_custom_actions_test.go +++ b/pkg/workflow/compiler_custom_actions_test.go @@ -261,6 +261,21 @@ Test workflow with script mode. if !strings.Contains(lockStr, "ref: 1.0.0") { t.Error("Expected 'ref: 1.0.0' in checkout step for script mode when version is set") } + + // 8. Setup step should include INPUT_JOB_NAME for OTLP span job name attribute + if !strings.Contains(lockStr, "INPUT_JOB_NAME: ${{ github.job }}") { + t.Error("Expected INPUT_JOB_NAME env var in setup step for script mode") + } + + // 9. Cleanup step should be generated for script mode (mirrors post.js) + if !strings.Contains(lockStr, "bash /tmp/gh-aw/actions-source/actions/setup/clean.sh") { + t.Error("Expected 'Clean Scripts' step with clean.sh in script mode") + } + + // 10. Cleanup step should run with if: always() + if !strings.Contains(lockStr, "if: always()") { + t.Error("Expected 'if: always()' guard on cleanup step in script mode") + } } // TestVersionToGitRef tests the versionToGitRef helper function used to derive diff --git a/pkg/workflow/compiler_main_job.go b/pkg/workflow/compiler_main_job.go index f1348d73b6..67d5c606cc 100644 --- a/pkg/workflow/compiler_main_job.go +++ b/pkg/workflow/compiler_main_job.go @@ -27,7 +27,9 @@ func (c *Compiler) buildMainJob(data *WorkflowData, activationJobCreated bool) ( steps = append(steps, c.generateCheckoutActionsFolder(data)...) // Main job doesn't need project support (no safe outputs processed here) - steps = append(steps, c.generateSetupStep(setupActionRef, SetupActionDestination, false)...) + // Pass activation's trace ID so all agent spans share the same OTLP trace + agentTraceID := fmt.Sprintf("${{ needs.%s.outputs.setup-trace-id }}", constants.ActivationJobName) + steps = append(steps, c.generateSetupStep(setupActionRef, SetupActionDestination, false, agentTraceID)...) } // Set runtime paths that depend on RUNNER_TEMP via $GITHUB_ENV. @@ -154,6 +156,8 @@ func (c *Compiler) buildMainJob(data *WorkflowData, activationJobCreated bool) ( // It is exposed here so that the safe_outputs job can set GH_AW_EFFECTIVE_TOKENS and render // the {effective_tokens_suffix} template expression in footer templates. "effective_tokens": fmt.Sprintf("${{ steps.%s.outputs.effective_tokens }}", constants.ParseMCPGatewayStepID), + // setup-trace-id propagates the shared OTLP trace ID to downstream jobs (detection, safe_outputs, cache, etc.) + "setup-trace-id": "${{ steps.setup.outputs.trace-id }}", } // Note: secret_verification_result is now an output of the activation job (not the agent job). @@ -265,6 +269,11 @@ func (c *Compiler) buildMainJob(data *WorkflowData, activationJobCreated bool) ( } } + // In script mode, explicitly add a cleanup step (mirrors post.js in dev/release/action mode). + if c.actionMode.IsScript() { + steps = append(steps, c.generateScriptModeCleanupStep()) + } + job := &Job{ Name: string(constants.AgentJobName), If: jobCondition, diff --git a/pkg/workflow/compiler_orchestrator_workflow.go b/pkg/workflow/compiler_orchestrator_workflow.go index 4b6630d922..57d5ff5d1a 100644 --- a/pkg/workflow/compiler_orchestrator_workflow.go +++ b/pkg/workflow/compiler_orchestrator_workflow.go @@ -109,6 +109,10 @@ func (c *Compiler) ParseWorkflowFile(markdownPath string) (*WorkflowData, error) // Extract YAML configuration sections from frontmatter c.extractYAMLSections(result.Frontmatter, workflowData) + // Inject OTLP configuration: add endpoint domain to firewall allowlist and + // set OTEL env vars in the workflow env block (no-op when not configured). + c.injectOTLPConfig(workflowData) + // Merge features from imports if len(engineSetup.importsResult.MergedFeatures) > 0 { mergedFeatures, err := c.MergeFeatures(workflowData.Features, engineSetup.importsResult.MergedFeatures) diff --git a/pkg/workflow/compiler_pre_activation_job.go b/pkg/workflow/compiler_pre_activation_job.go index bbd91841a5..d17989171b 100644 --- a/pkg/workflow/compiler_pre_activation_job.go +++ b/pkg/workflow/compiler_pre_activation_job.go @@ -39,7 +39,8 @@ func (c *Compiler) buildPreActivationJob(data *WorkflowData, needsPermissionChec needsContentsRead := (c.actionMode.IsDev() || c.actionMode.IsScript()) && len(c.generateCheckoutActionsFolder(data)) > 0 // Pre-activation job doesn't need project support (no safe outputs processed here) - steps = append(steps, c.generateSetupStep(setupActionRef, SetupActionDestination, false)...) + // Pre-activation runs before activation so no trace ID is available yet + steps = append(steps, c.generateSetupStep(setupActionRef, SetupActionDestination, false, "")...) // Determine permissions for pre-activation job var perms *Permissions @@ -419,6 +420,11 @@ func (c *Compiler) buildPreActivationJob(data *WorkflowData, needsPermissionChec jobIfCondition = data.If } + // In script mode, explicitly add a cleanup step (mirrors post.js in dev/release/action mode). + if c.actionMode.IsScript() { + steps = append(steps, c.generateScriptModeCleanupStep()) + } + job := &Job{ Name: string(constants.PreActivationJobName), If: jobIfCondition, diff --git a/pkg/workflow/compiler_safe_outputs_job.go b/pkg/workflow/compiler_safe_outputs_job.go index 3f589834a7..6a16a77199 100644 --- a/pkg/workflow/compiler_safe_outputs_job.go +++ b/pkg/workflow/compiler_safe_outputs_job.go @@ -51,7 +51,9 @@ func (c *Compiler) buildConsolidatedSafeOutputsJob(data *WorkflowData, mainJobNa // Enable custom-tokens flag if any safe output uses a per-handler github-token enableCustomTokens := c.hasCustomTokenSafeOutputs(data.SafeOutputs) - steps = append(steps, c.generateSetupStep(setupActionRef, SetupActionDestination, enableCustomTokens)...) + // Safe outputs job depends on agent job; reuse the agent's trace ID so all jobs share one OTLP trace + safeOutputsTraceID := fmt.Sprintf("${{ needs.%s.outputs.setup-trace-id }}", constants.ActivationJobName) + steps = append(steps, c.generateSetupStep(setupActionRef, SetupActionDestination, enableCustomTokens, safeOutputsTraceID)...) } // Add artifact download steps after setup. @@ -336,7 +338,9 @@ func (c *Compiler) buildConsolidatedSafeOutputsJob(data *WorkflowData, mainJobNa setupActionRef := c.resolveActionReference("./actions/setup", data) if setupActionRef != "" { insertIndex += len(c.generateCheckoutActionsFolder(data)) - insertIndex += len(c.generateSetupStep(setupActionRef, SetupActionDestination, c.hasCustomTokenSafeOutputs(data.SafeOutputs))) + // Use the same traceID as the real call so the line count matches exactly + countTraceID := fmt.Sprintf("${{ needs.%s.outputs.setup-trace-id }}", constants.ActivationJobName) + insertIndex += len(c.generateSetupStep(setupActionRef, SetupActionDestination, c.hasCustomTokenSafeOutputs(data.SafeOutputs), countTraceID)) } // Add artifact download steps count @@ -379,6 +383,10 @@ func (c *Compiler) buildConsolidatedSafeOutputsJob(data *WorkflowData, mainJobNa steps = append(steps, buildSafeOutputItemsManifestUploadStep(agentArtifactPrefix)...) } + // Append OTLP conclusion span step (no-op when endpoint is not configured). + // Note: this step is now handled by the action post step (post.js) so no + // injected step is needed here. + // In dev mode the setup action is referenced via a local path (./actions/setup), so its files // live in the workspace. When the safe_outputs job contains a checkout step for // create_pull_request or push_to_pull_request_branch, the workspace is replaced with the @@ -392,6 +400,11 @@ func (c *Compiler) buildConsolidatedSafeOutputsJob(data *WorkflowData, mainJobNa consolidatedSafeOutputsJobLog.Print("Added restore actions folder step to safe_outputs job (dev mode with checkout)") } + // In script mode, explicitly add a cleanup step (mirrors post.js in dev/release/action mode). + if c.actionMode.IsScript() { + steps = append(steps, c.generateScriptModeCleanupStep()) + } + // Build the job condition // The job should run if agent job completed (not skipped) AND detection passed (if enabled) agentNotSkipped := BuildAnd( @@ -414,13 +427,12 @@ func (c *Compiler) buildConsolidatedSafeOutputsJob(data *WorkflowData, mainJobNa needs = append(needs, string(constants.DetectionJobName)) consolidatedSafeOutputsJobLog.Print("Added detection job dependency to safe_outputs job") } - // Add activation job dependency when: + // Always add activation job dependency to get the trace-id for OTLP correlation, + // and also when needed for other reasons: // - create_pull_request or push_to_pull_request_branch (need the activation artifact) // - lock-for-agent (need the activation lock) // - workflow_call trigger (need needs.activation.outputs.target_repo for cross-repo token/dispatch) - if usesPatchesAndCheckouts(data.SafeOutputs) || data.LockForAgent || hasWorkflowCallTrigger(data.On) { - needs = append(needs, string(constants.ActivationJobName)) - } + needs = append(needs, string(constants.ActivationJobName)) // Add unlock job dependency if lock-for-agent is enabled // This ensures the issue is unlocked before safe outputs run if data.LockForAgent { diff --git a/pkg/workflow/compiler_safe_outputs_job_test.go b/pkg/workflow/compiler_safe_outputs_job_test.go index fd3ae74975..67c9884e2f 100644 --- a/pkg/workflow/compiler_safe_outputs_job_test.go +++ b/pkg/workflow/compiler_safe_outputs_job_test.go @@ -571,8 +571,8 @@ func TestJobDependencies(t *testing.T) { safeOutputs: &SafeOutputsConfig{ CreateIssues: &CreateIssuesConfig{}, }, - expectedNeeds: []string{string(constants.AgentJobName)}, - notExpectedNeeds: []string{string(constants.DetectionJobName), string(constants.ActivationJobName)}, + expectedNeeds: []string{string(constants.AgentJobName), string(constants.ActivationJobName)}, + notExpectedNeeds: []string{string(constants.DetectionJobName)}, }, { name: "with threat detection", diff --git a/pkg/workflow/compiler_unlock_job.go b/pkg/workflow/compiler_unlock_job.go index 0a4d40b861..0c3c7c5d07 100644 --- a/pkg/workflow/compiler_unlock_job.go +++ b/pkg/workflow/compiler_unlock_job.go @@ -37,7 +37,9 @@ func (c *Compiler) buildUnlockJob(data *WorkflowData, threatDetectionEnabled boo steps = append(steps, c.generateCheckoutActionsFolder(data)...) // Unlock job doesn't need project support - steps = append(steps, c.generateSetupStep(setupActionRef, SetupActionDestination, false)...) + // Unlock job depends on activation, reuse its trace ID + unlockTraceID := fmt.Sprintf("${{ needs.%s.outputs.setup-trace-id }}", constants.ActivationJobName) + steps = append(steps, c.generateSetupStep(setupActionRef, SetupActionDestination, false, unlockTraceID)...) // Add unlock step // Build condition: only unlock if issue was locked by activation job @@ -94,6 +96,11 @@ func (c *Compiler) buildUnlockJob(data *WorkflowData, threatDetectionEnabled boo compilerUnlockJobLog.Printf("Job built successfully: dependencies=%v", needs) + // In script mode, explicitly add a cleanup step (mirrors post.js in dev/release/action mode). + if c.actionMode.IsScript() { + steps = append(steps, c.generateScriptModeCleanupStep()) + } + job := &Job{ Name: "unlock", Needs: needs, diff --git a/pkg/workflow/compiler_yaml_step_generation.go b/pkg/workflow/compiler_yaml_step_generation.go index 5774a8120b..6679eca863 100644 --- a/pkg/workflow/compiler_yaml_step_generation.go +++ b/pkg/workflow/compiler_yaml_step_generation.go @@ -110,17 +110,23 @@ func (c *Compiler) generateRestoreActionsSetupStep() string { // - setupActionRef: The action reference for setup action (e.g., "./actions/setup" or "github/gh-aw/actions/setup@sha") // - destination: The destination path where files should be copied (e.g., SetupActionDestination) // - enableCustomTokens: Whether to enable custom-token support (installs @actions/github so handler_auth.cjs can create per-handler Octokit clients) +// - traceID: Optional OTLP trace ID expression for cross-job span correlation (e.g., "${{ needs.activation.outputs.setup-trace-id }}"). Empty string means a new trace ID is generated. // // Returns a slice of strings representing the YAML lines for the setup step. -func (c *Compiler) generateSetupStep(setupActionRef string, destination string, enableCustomTokens bool) []string { +func (c *Compiler) generateSetupStep(setupActionRef string, destination string, enableCustomTokens bool, traceID string) []string { // Script mode: run the setup.sh script directly if c.actionMode.IsScript() { lines := []string{ " - name: Setup Scripts\n", + " id: setup\n", " run: |\n", " bash /tmp/gh-aw/actions-source/actions/setup/setup.sh\n", " env:\n", fmt.Sprintf(" INPUT_DESTINATION: %s\n", destination), + " INPUT_JOB_NAME: ${{ github.job }}\n", + } + if traceID != "" { + lines = append(lines, fmt.Sprintf(" INPUT_TRACE_ID: %s\n", traceID)) } if enableCustomTokens { lines = append(lines, " INPUT_SAFE_OUTPUT_CUSTOM_TOKENS: 'true'\n") @@ -131,9 +137,14 @@ func (c *Compiler) generateSetupStep(setupActionRef string, destination string, // Dev/Release mode: use the setup action lines := []string{ " - name: Setup Scripts\n", + " id: setup\n", fmt.Sprintf(" uses: %s\n", setupActionRef), " with:\n", fmt.Sprintf(" destination: %s\n", destination), + " job-name: ${{ github.job }}\n", + } + if traceID != "" { + lines = append(lines, fmt.Sprintf(" trace-id: %s\n", traceID)) } if enableCustomTokens { lines = append(lines, " safe-output-custom-tokens: 'true'\n") @@ -155,3 +166,23 @@ func (c *Compiler) generateSetRuntimePathsStep() []string { " echo \"GH_AW_SAFE_OUTPUTS_TOOLS_PATH=${RUNNER_TEMP}/gh-aw/safeoutputs/tools.json\" >> \"$GITHUB_OUTPUT\"\n", } } + +// generateScriptModeCleanupStep generates a cleanup step for script mode that sends an OTLP +// conclusion span and removes /tmp/gh-aw/. This mirrors the post.js post step that runs +// automatically when using a `uses:` action in dev/release/action mode. +// +// The step is guarded by `if: always()` so it runs even if prior steps fail, ensuring +// trace spans are exported and temporary files are cleaned up in all cases. +// +// Only call this in script mode (c.actionMode.IsScript()). +func (c *Compiler) generateScriptModeCleanupStep() string { + var step strings.Builder + step.WriteString(" - name: Clean Scripts\n") + step.WriteString(" if: always()\n") + step.WriteString(" run: |\n") + step.WriteString(" bash /tmp/gh-aw/actions-source/actions/setup/clean.sh\n") + step.WriteString(" env:\n") + fmt.Fprintf(&step, " INPUT_DESTINATION: %s\n", SetupActionDestination) + step.WriteString(" INPUT_JOB_NAME: ${{ github.job }}\n") + return step.String() +} diff --git a/pkg/workflow/frontmatter_types.go b/pkg/workflow/frontmatter_types.go index c486638122..2ae08be7a6 100644 --- a/pkg/workflow/frontmatter_types.go +++ b/pkg/workflow/frontmatter_types.go @@ -117,18 +117,38 @@ type RateLimitConfig struct { IgnoredRoles []string `json:"ignored-roles,omitempty"` // Roles that are exempt from rate limiting (e.g., ["admin", "maintainer"]) } +// OTLPConfig holds configuration for OTLP (OpenTelemetry Protocol) trace export. +type OTLPConfig struct { + // Endpoint is the OTLP collector endpoint URL (e.g. "https://traces.example.com:4317"). + // Supports GitHub Actions expressions such as ${{ secrets.OTLP_ENDPOINT }}. + // When a static URL is provided, its hostname is automatically added to the + // network firewall allowlist. + Endpoint string `json:"endpoint,omitempty"` + + // Headers is a comma-separated list of key=value HTTP headers to include with + // every OTLP export request (e.g. "Authorization=Bearer "). + // Supports GitHub Actions expressions such as ${{ secrets.OTLP_HEADERS }}. + // Injected as the standard OTEL_EXPORTER_OTLP_HEADERS environment variable. + Headers string `json:"headers,omitempty"` +} + // ObservabilityConfig represents workflow observability options. type ObservabilityConfig struct { - JobSummary string `json:"job-summary,omitempty"` + JobSummary string `json:"job-summary,omitempty"` + OTLP *OTLPConfig `json:"otlp,omitempty"` } // FrontmatterConfig represents the structured configuration from workflow frontmatter // This provides compile-time type safety and clearer error messages compared to map[string]any type FrontmatterConfig struct { // Core workflow fields - Name string `json:"name,omitempty"` - Description string `json:"description,omitempty"` - Engine string `json:"engine,omitempty"` + Name string `json:"name,omitempty"` + Description string `json:"description,omitempty"` + // Engine accepts both a plain string engine name (e.g. "copilot") and an object-style + // configuration (e.g. {id: copilot, max-continuations: 2}). Using any prevents + // JSON unmarshal failures when the engine is an object, which would otherwise cause + // ParseFrontmatterConfig to return nil and break features that depend on it (e.g. OTLP). + Engine any `json:"engine,omitempty"` Source string `json:"source,omitempty"` TrackerID string `json:"tracker-id,omitempty"` Version string `json:"version,omitempty"` @@ -256,7 +276,7 @@ func ParseFrontmatterConfig(frontmatter map[string]any) (*FrontmatterConfig, err } } - frontmatterTypesLog.Printf("Successfully parsed frontmatter config: name=%s, engine=%s", config.Name, config.Engine) + frontmatterTypesLog.Printf("Successfully parsed frontmatter config: name=%s, engine=%v", config.Name, config.Engine) return &config, nil } @@ -525,7 +545,7 @@ func (fc *FrontmatterConfig) ToMap() map[string]any { if fc.Description != "" { result["description"] = fc.Description } - if fc.Engine != "" { + if fc.Engine != nil { result["engine"] = fc.Engine } if fc.Source != "" { diff --git a/pkg/workflow/notify_comment.go b/pkg/workflow/notify_comment.go index 67a96f075a..b5bdb965fa 100644 --- a/pkg/workflow/notify_comment.go +++ b/pkg/workflow/notify_comment.go @@ -43,7 +43,9 @@ func (c *Compiler) buildConclusionJob(data *WorkflowData, mainJobName string, sa steps = append(steps, c.generateCheckoutActionsFolder(data)...) // Notify comment job doesn't need project support - steps = append(steps, c.generateSetupStep(setupActionRef, SetupActionDestination, false)...) + // Conclusion/notify job depends on activation, reuse its trace ID + notifyTraceID := fmt.Sprintf("${{ needs.%s.outputs.setup-trace-id }}", constants.ActivationJobName) + steps = append(steps, c.generateSetupStep(setupActionRef, SetupActionDestination, false, notifyTraceID)...) } // Add GitHub App token minting step if app is configured @@ -354,6 +356,10 @@ func (c *Compiler) buildConclusionJob(data *WorkflowData, mainJobName string, sa steps = append(steps, c.buildGitHubAppTokenInvalidationStep()...) } + // Append OTLP conclusion span step (no-op when endpoint is not configured). + // Note: this step is now handled by the action post step (post.js) so no + // injected step is needed here. + // Build the condition for this job: // 1. always() - run even if agent fails // 2. agent was activated (not skipped) OR lockdown check failed in activation job @@ -441,6 +447,11 @@ func (c *Compiler) buildConclusionJob(data *WorkflowData, mainJobName string, sa notifyCommentLog.Printf("Configuring conclusion job concurrency group: %s", group) } + // In script mode, explicitly add a cleanup step (mirrors post.js in dev/release/action mode). + if c.actionMode.IsScript() { + steps = append(steps, c.generateScriptModeCleanupStep()) + } + job := &Job{ Name: "conclusion", If: RenderCondition(condition), diff --git a/pkg/workflow/observability_otlp.go b/pkg/workflow/observability_otlp.go new file mode 100644 index 0000000000..7c6c22870f --- /dev/null +++ b/pkg/workflow/observability_otlp.go @@ -0,0 +1,139 @@ +package workflow + +import ( + "fmt" + "net/url" + "strings" + + "github.com/github/gh-aw/pkg/logger" +) + +var otlpLog = logger.New("workflow:observability_otlp") + +// extractOTLPEndpointDomain parses an OTLP endpoint URL and returns its hostname. +// Returns an empty string when the endpoint is a GitHub Actions expression (which +// cannot be resolved at compile time) or when the URL is otherwise invalid. +func extractOTLPEndpointDomain(endpoint string) string { + if endpoint == "" { + return "" + } + + // GitHub Actions expressions (e.g. ${{ secrets.OTLP_ENDPOINT }}) cannot be + // resolved at compile time, so skip domain extraction for them. + if strings.Contains(endpoint, "${{") { + otlpLog.Printf("OTLP endpoint is a GitHub Actions expression, skipping domain extraction: %s", endpoint) + return "" + } + + parsed, err := url.Parse(endpoint) + if err != nil || parsed.Host == "" { + otlpLog.Printf("Failed to extract domain from OTLP endpoint %q: %v", endpoint, err) + return "" + } + + // Strip the port from the host so the AWF domain allowlist entry matches all ports + // (e.g. "traces.example.com:4317" → "traces.example.com"). + host := parsed.Hostname() + otlpLog.Printf("Extracted OTLP domain: %s", host) + return host +} + +// getOTLPEndpointEnvValue returns the raw endpoint value suitable for injecting as an +// environment variable in the generated GitHub Actions workflow YAML. +// Returns an empty string when no OTLP endpoint is configured. +func getOTLPEndpointEnvValue(config *FrontmatterConfig) string { + if config == nil || config.Observability == nil || config.Observability.OTLP == nil { + return "" + } + return config.Observability.OTLP.Endpoint +} + +// extractOTLPConfigFromRaw reads OTLP endpoint and headers directly from the raw +// frontmatter map[string]any. This avoids dependence on ParseFrontmatterConfig +// succeeding -- that function may fail for workflows with complex tool configurations +// (e.g. engine objects, array-style bash configs), which would leave ParsedFrontmatter +// nil and prevent OTLP injection. +func extractOTLPConfigFromRaw(frontmatter map[string]any) (endpoint, headers string) { + obs, ok := frontmatter["observability"] + if !ok { + return + } + obsMap, ok := obs.(map[string]any) + if !ok { + return + } + otlp, ok := obsMap["otlp"] + if !ok { + return + } + otlpMap, ok := otlp.(map[string]any) + if !ok { + return + } + if ep, ok := otlpMap["endpoint"].(string); ok { + endpoint = ep + } + if h, ok := otlpMap["headers"].(string); ok { + headers = h + } + return +} + +// 1. When the endpoint is a static URL, its hostname is appended to +// NetworkPermissions.Allowed so the AWF firewall allows outbound traffic to it. +// +// 2. OTEL_EXPORTER_OTLP_ENDPOINT and OTEL_SERVICE_NAME are appended to the +// workflow-level env: YAML block (workflowData.Env) so they are available to +// every step in the generated GitHub Actions workflow. +// +// 3. When headers are configured, OTEL_EXPORTER_OTLP_HEADERS is also appended +// to the workflow-level env: block. +// +// When no OTLP endpoint is configured the function is a no-op. +func (c *Compiler) injectOTLPConfig(workflowData *WorkflowData) { + // Read OTLP config from the raw frontmatter map so that injection works even + // when ParseFrontmatterConfig failed (e.g. due to complex tool configs). + endpoint, headers := extractOTLPConfigFromRaw(workflowData.RawFrontmatter) + + // Fall back to ParsedFrontmatter when the raw map didn't yield an endpoint. + if endpoint == "" { + endpoint = getOTLPEndpointEnvValue(workflowData.ParsedFrontmatter) + } + + if endpoint == "" { + return + } + + otlpLog.Printf("Injecting OTLP configuration: endpoint=%s", endpoint) + + // 1. Add OTLP endpoint domain to the firewall allowlist. + if domain := extractOTLPEndpointDomain(endpoint); domain != "" { + if workflowData.NetworkPermissions == nil { + workflowData.NetworkPermissions = &NetworkPermissions{} + } + workflowData.NetworkPermissions.Allowed = append(workflowData.NetworkPermissions.Allowed, domain) + otlpLog.Printf("Added OTLP domain to network allowlist: %s", domain) + } + + // 2. Inject OTEL env vars into the workflow-level env: block. + otlpEnvLines := fmt.Sprintf(" OTEL_EXPORTER_OTLP_ENDPOINT: %s\n OTEL_SERVICE_NAME: gh-aw", endpoint) + + // 3. Inject OTEL_EXPORTER_OTLP_HEADERS when configured. + // Prefer raw frontmatter value (already read above); fall back to ParsedFrontmatter. + if headers == "" && workflowData.ParsedFrontmatter != nil && + workflowData.ParsedFrontmatter.Observability != nil && + workflowData.ParsedFrontmatter.Observability.OTLP != nil { + headers = workflowData.ParsedFrontmatter.Observability.OTLP.Headers + } + if headers != "" { + otlpEnvLines += "\n OTEL_EXPORTER_OTLP_HEADERS: " + headers + otlpLog.Printf("Injected OTEL_EXPORTER_OTLP_HEADERS env var") + } + + if workflowData.Env == "" { + workflowData.Env = "env:\n" + otlpEnvLines + } else { + workflowData.Env = workflowData.Env + "\n" + otlpEnvLines + } + otlpLog.Printf("Injected OTEL env vars into workflow env block") +} diff --git a/pkg/workflow/observability_otlp_test.go b/pkg/workflow/observability_otlp_test.go new file mode 100644 index 0000000000..5de9ea9df0 --- /dev/null +++ b/pkg/workflow/observability_otlp_test.go @@ -0,0 +1,527 @@ +//go:build !integration + +package workflow + +import ( + "strings" + "testing" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +// TestExtractOTLPEndpointDomain verifies hostname extraction from OTLP endpoint URLs. +func TestExtractOTLPEndpointDomain(t *testing.T) { + tests := []struct { + name string + endpoint string + expected string + }{ + { + name: "empty endpoint returns empty string", + endpoint: "", + expected: "", + }, + { + name: "GitHub Actions expression returns empty string", + endpoint: "${{ secrets.OTLP_ENDPOINT }}", + expected: "", + }, + { + name: "inline expression returns empty string", + endpoint: "https://${{ secrets.HOST }}:4317", + expected: "", + }, + { + name: "HTTPS URL without port", + endpoint: "https://traces.example.com", + expected: "traces.example.com", + }, + { + name: "HTTPS URL with port", + endpoint: "https://traces.example.com:4317", + expected: "traces.example.com", + }, + { + name: "HTTP URL with path", + endpoint: "http://otel-collector.internal:4318/v1/traces", + expected: "otel-collector.internal", + }, + { + name: "gRPC URL", + endpoint: "grpc://traces.example.com:4317", + expected: "traces.example.com", + }, + { + name: "subdomain", + endpoint: "https://otel.collector.corp.example.com:4317", + expected: "otel.collector.corp.example.com", + }, + { + name: "invalid URL (no scheme) returns empty string", + endpoint: "traces.example.com:4317", + expected: "", + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + got := extractOTLPEndpointDomain(tt.endpoint) + assert.Equal(t, tt.expected, got, "extractOTLPEndpointDomain(%q)", tt.endpoint) + }) + } +} + +// TestGetOTLPEndpointEnvValue verifies endpoint value extraction from FrontmatterConfig. +func TestGetOTLPEndpointEnvValue(t *testing.T) { + tests := []struct { + name string + config *FrontmatterConfig + expected string + }{ + { + name: "nil config returns empty string", + config: nil, + expected: "", + }, + { + name: "nil observability returns empty string", + config: &FrontmatterConfig{}, + expected: "", + }, + { + name: "nil OTLP returns empty string", + config: &FrontmatterConfig{ + Observability: &ObservabilityConfig{}, + }, + expected: "", + }, + { + name: "empty endpoint returns empty string", + config: &FrontmatterConfig{ + Observability: &ObservabilityConfig{ + OTLP: &OTLPConfig{Endpoint: ""}, + }, + }, + expected: "", + }, + { + name: "static URL endpoint", + config: &FrontmatterConfig{ + Observability: &ObservabilityConfig{ + OTLP: &OTLPConfig{Endpoint: "https://traces.example.com:4317"}, + }, + }, + expected: "https://traces.example.com:4317", + }, + { + name: "secret expression endpoint", + config: &FrontmatterConfig{ + Observability: &ObservabilityConfig{ + OTLP: &OTLPConfig{Endpoint: "${{ secrets.OTLP_ENDPOINT }}"}, + }, + }, + expected: "${{ secrets.OTLP_ENDPOINT }}", + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + got := getOTLPEndpointEnvValue(tt.config) + assert.Equal(t, tt.expected, got, "getOTLPEndpointEnvValue") + }) + } +} + +// TestInjectOTLPConfig verifies that injectOTLPConfig correctly modifies WorkflowData. +func TestInjectOTLPConfig(t *testing.T) { + newCompiler := func() *Compiler { return &Compiler{} } + + t.Run("no-op when OTLP is not configured", func(t *testing.T) { + c := newCompiler() + wd := &WorkflowData{ + ParsedFrontmatter: &FrontmatterConfig{}, + } + c.injectOTLPConfig(wd) + assert.Nil(t, wd.NetworkPermissions, "NetworkPermissions should remain nil") + assert.Empty(t, wd.Env, "Env should remain empty") + }) + + t.Run("no-op when ParsedFrontmatter is nil", func(t *testing.T) { + c := newCompiler() + wd := &WorkflowData{} + c.injectOTLPConfig(wd) + assert.Nil(t, wd.NetworkPermissions, "NetworkPermissions should remain nil") + assert.Empty(t, wd.Env, "Env should remain empty") + }) + + t.Run("injects env vars when endpoint is a secret expression", func(t *testing.T) { + c := newCompiler() + wd := &WorkflowData{ + ParsedFrontmatter: &FrontmatterConfig{ + Observability: &ObservabilityConfig{ + OTLP: &OTLPConfig{Endpoint: "${{ secrets.OTLP_ENDPOINT }}"}, + }, + }, + } + c.injectOTLPConfig(wd) + + // NetworkPermissions.Allowed should NOT be populated (can't resolve expression) + if wd.NetworkPermissions != nil { + assert.Empty(t, wd.NetworkPermissions.Allowed, "Allowed should be empty for expression endpoints") + } + + // Env should contain the OTEL vars + require.NotEmpty(t, wd.Env, "Env should be set") + assert.Contains(t, wd.Env, "OTEL_EXPORTER_OTLP_ENDPOINT: ${{ secrets.OTLP_ENDPOINT }}", "should contain endpoint var") + assert.Contains(t, wd.Env, "OTEL_SERVICE_NAME: gh-aw", "should contain service name") + }) + + t.Run("adds domain to new NetworkPermissions and injects env vars for static URL", func(t *testing.T) { + c := newCompiler() + wd := &WorkflowData{ + ParsedFrontmatter: &FrontmatterConfig{ + Observability: &ObservabilityConfig{ + OTLP: &OTLPConfig{Endpoint: "https://traces.example.com:4317"}, + }, + }, + } + c.injectOTLPConfig(wd) + + require.NotNil(t, wd.NetworkPermissions, "NetworkPermissions should be created") + assert.Contains(t, wd.NetworkPermissions.Allowed, "traces.example.com", "should contain OTLP domain") + + require.NotEmpty(t, wd.Env, "Env should be set") + assert.Contains(t, wd.Env, "OTEL_EXPORTER_OTLP_ENDPOINT: https://traces.example.com:4317") + assert.Contains(t, wd.Env, "OTEL_SERVICE_NAME: gh-aw") + assert.True(t, strings.HasPrefix(wd.Env, "env:"), "Env should start with 'env:'") + }) + + t.Run("appends domain to existing NetworkPermissions.Allowed", func(t *testing.T) { + c := newCompiler() + wd := &WorkflowData{ + ParsedFrontmatter: &FrontmatterConfig{ + Observability: &ObservabilityConfig{ + OTLP: &OTLPConfig{Endpoint: "https://traces.example.com:4317"}, + }, + }, + NetworkPermissions: &NetworkPermissions{ + Allowed: []string{"api.github.com", "pypi.org"}, + }, + } + c.injectOTLPConfig(wd) + + assert.Contains(t, wd.NetworkPermissions.Allowed, "api.github.com", "existing domains should remain") + assert.Contains(t, wd.NetworkPermissions.Allowed, "pypi.org", "existing domains should remain") + assert.Contains(t, wd.NetworkPermissions.Allowed, "traces.example.com", "OTLP domain should be appended") + }) + + t.Run("appends OTEL vars to existing Env block", func(t *testing.T) { + c := newCompiler() + wd := &WorkflowData{ + ParsedFrontmatter: &FrontmatterConfig{ + Observability: &ObservabilityConfig{ + OTLP: &OTLPConfig{Endpoint: "https://traces.example.com"}, + }, + }, + Env: "env:\n MY_VAR: hello", + } + c.injectOTLPConfig(wd) + + assert.Contains(t, wd.Env, "MY_VAR: hello", "existing env var should remain") + assert.Contains(t, wd.Env, "OTEL_EXPORTER_OTLP_ENDPOINT: https://traces.example.com") + assert.Contains(t, wd.Env, "OTEL_SERVICE_NAME: gh-aw") + // Should still be a single env: block + assert.Equal(t, 1, strings.Count(wd.Env, "env:"), "should have exactly one env: key") + }) + + t.Run("OTEL_SERVICE_NAME is always gh-aw", func(t *testing.T) { + c := newCompiler() + wd := &WorkflowData{ + ParsedFrontmatter: &FrontmatterConfig{ + Observability: &ObservabilityConfig{ + OTLP: &OTLPConfig{Endpoint: "https://otel.corp.com"}, + }, + }, + } + c.injectOTLPConfig(wd) + assert.Contains(t, wd.Env, "OTEL_SERVICE_NAME: gh-aw", "service name should always be gh-aw") + }) + + t.Run("injects OTEL_EXPORTER_OTLP_HEADERS when headers are configured", func(t *testing.T) { + c := newCompiler() + wd := &WorkflowData{ + ParsedFrontmatter: &FrontmatterConfig{ + Observability: &ObservabilityConfig{ + OTLP: &OTLPConfig{ + Endpoint: "https://traces.example.com", + Headers: "Authorization=Bearer tok,X-Tenant=acme", + }, + }, + }, + } + c.injectOTLPConfig(wd) + assert.Contains(t, wd.Env, "OTEL_EXPORTER_OTLP_HEADERS: Authorization=Bearer tok,X-Tenant=acme", "headers var should be injected") + }) + + t.Run("injects OTEL_EXPORTER_OTLP_HEADERS for secret expression", func(t *testing.T) { + c := newCompiler() + wd := &WorkflowData{ + ParsedFrontmatter: &FrontmatterConfig{ + Observability: &ObservabilityConfig{ + OTLP: &OTLPConfig{ + Endpoint: "https://traces.example.com", + Headers: "${{ secrets.OTLP_HEADERS }}", + }, + }, + }, + } + c.injectOTLPConfig(wd) + assert.Contains(t, wd.Env, "OTEL_EXPORTER_OTLP_HEADERS: ${{ secrets.OTLP_HEADERS }}", "headers var should support secret expressions") + }) + + t.Run("does not inject OTEL_EXPORTER_OTLP_HEADERS when headers not configured", func(t *testing.T) { + c := newCompiler() + wd := &WorkflowData{ + ParsedFrontmatter: &FrontmatterConfig{ + Observability: &ObservabilityConfig{ + OTLP: &OTLPConfig{Endpoint: "https://traces.example.com"}, + }, + }, + } + c.injectOTLPConfig(wd) + assert.NotContains(t, wd.Env, "OTEL_EXPORTER_OTLP_HEADERS", "headers var should not appear when unconfigured") + }) +} + +// TestObservabilityConfigParsing verifies that the OTLPConfig is correctly parsed +// from raw frontmatter via ParseFrontmatterConfig. +func TestObservabilityConfigParsing(t *testing.T) { + tests := []struct { + name string + frontmatter map[string]any + wantOTLPConfig bool + expectedEndpoint string + expectedHeaders string + }{ + { + name: "no observability section", + frontmatter: map[string]any{}, + wantOTLPConfig: false, + }, + { + name: "observability without otlp", + frontmatter: map[string]any{ + "observability": map[string]any{ + "job-summary": "on", + }, + }, + wantOTLPConfig: false, + }, + { + name: "observability with otlp endpoint", + frontmatter: map[string]any{ + "observability": map[string]any{ + "otlp": map[string]any{ + "endpoint": "https://traces.example.com:4317", + }, + }, + }, + wantOTLPConfig: true, + expectedEndpoint: "https://traces.example.com:4317", + }, + { + name: "observability with otlp secret expression", + frontmatter: map[string]any{ + "observability": map[string]any{ + "otlp": map[string]any{ + "endpoint": "${{ secrets.OTLP_ENDPOINT }}", + }, + }, + }, + wantOTLPConfig: true, + expectedEndpoint: "${{ secrets.OTLP_ENDPOINT }}", + }, + { + name: "observability with both job-summary and otlp", + frontmatter: map[string]any{ + "observability": map[string]any{ + "job-summary": "on", + "otlp": map[string]any{ + "endpoint": "https://traces.example.com", + }, + }, + }, + wantOTLPConfig: true, + expectedEndpoint: "https://traces.example.com", + }, + { + name: "observability with otlp endpoint and headers", + frontmatter: map[string]any{ + "observability": map[string]any{ + "otlp": map[string]any{ + "endpoint": "https://traces.example.com", + "headers": "Authorization=Bearer tok,X-Tenant=acme", + }, + }, + }, + wantOTLPConfig: true, + expectedEndpoint: "https://traces.example.com", + expectedHeaders: "Authorization=Bearer tok,X-Tenant=acme", + }, + { + name: "observability with otlp headers as secret expression", + frontmatter: map[string]any{ + "observability": map[string]any{ + "otlp": map[string]any{ + "endpoint": "https://traces.example.com", + "headers": "${{ secrets.OTLP_HEADERS }}", + }, + }, + }, + wantOTLPConfig: true, + expectedEndpoint: "https://traces.example.com", + expectedHeaders: "${{ secrets.OTLP_HEADERS }}", + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + config, err := ParseFrontmatterConfig(tt.frontmatter) + require.NoError(t, err, "ParseFrontmatterConfig should not fail") + require.NotNil(t, config, "Config should not be nil") + + if !tt.wantOTLPConfig { + if config.Observability != nil { + assert.Nil(t, config.Observability.OTLP, "OTLP should be nil") + } + return + } + + require.NotNil(t, config.Observability, "Observability should not be nil") + require.NotNil(t, config.Observability.OTLP, "OTLP should not be nil") + assert.Equal(t, tt.expectedEndpoint, config.Observability.OTLP.Endpoint, "Endpoint should match") + assert.Equal(t, tt.expectedHeaders, config.Observability.OTLP.Headers, "Headers should match") + }) + } +} + +// TestExtractOTLPConfigFromRaw verifies direct raw-frontmatter OTLP extraction. +func TestExtractOTLPConfigFromRaw(t *testing.T) { + tests := []struct { + name string + frontmatter map[string]any + wantEndpoint string + wantHeaders string + }{ + { + name: "nil frontmatter", + frontmatter: nil, + }, + { + name: "empty frontmatter", + frontmatter: map[string]any{}, + }, + { + name: "no observability key", + frontmatter: map[string]any{"name": "test"}, + }, + { + name: "observability without otlp", + frontmatter: map[string]any{ + "observability": map[string]any{"job-summary": "on"}, + }, + }, + { + name: "observability.otlp with endpoint", + frontmatter: map[string]any{ + "observability": map[string]any{ + "otlp": map[string]any{"endpoint": "https://traces.example.com:4317"}, + }, + }, + wantEndpoint: "https://traces.example.com:4317", + }, + { + name: "observability.otlp with secret expression endpoint", + frontmatter: map[string]any{ + "observability": map[string]any{ + "otlp": map[string]any{"endpoint": "${{ secrets.GH_AW_OTEL_ENDPOINT }}"}, + }, + }, + wantEndpoint: "${{ secrets.GH_AW_OTEL_ENDPOINT }}", + }, + { + name: "observability.otlp with endpoint and headers", + frontmatter: map[string]any{ + "observability": map[string]any{ + "otlp": map[string]any{ + "endpoint": "https://traces.example.com", + "headers": "${{ secrets.GH_AW_OTEL_HEADERS }}", + }, + }, + }, + wantEndpoint: "https://traces.example.com", + wantHeaders: "${{ secrets.GH_AW_OTEL_HEADERS }}", + }, + { + name: "Sentry-style header with space in value", + frontmatter: map[string]any{ + "observability": map[string]any{ + "otlp": map[string]any{ + "endpoint": "https://sentry.io/api/123/envelope/", + "headers": "x-sentry-auth=Sentry sentry_key=abc123", + }, + }, + }, + wantEndpoint: "https://sentry.io/api/123/envelope/", + wantHeaders: "x-sentry-auth=Sentry sentry_key=abc123", + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + gotEndpoint, gotHeaders := extractOTLPConfigFromRaw(tt.frontmatter) + assert.Equal(t, tt.wantEndpoint, gotEndpoint, "endpoint") + assert.Equal(t, tt.wantHeaders, gotHeaders, "headers") + }) + } +} + +// TestInjectOTLPConfig_RawFrontmatterFallback verifies that injectOTLPConfig works +// when ParsedFrontmatter is nil (e.g. complex engine objects cause ParseFrontmatterConfig +// to fail) but the raw frontmatter contains valid OTLP configuration. +func TestInjectOTLPConfig_RawFrontmatterFallback(t *testing.T) { + c := &Compiler{} + + t.Run("injects OTLP from raw frontmatter when ParsedFrontmatter is nil", func(t *testing.T) { + wd := &WorkflowData{ + ParsedFrontmatter: nil, // simulates ParseFrontmatterConfig failure + RawFrontmatter: map[string]any{ + "observability": map[string]any{ + "otlp": map[string]any{ + "endpoint": "${{ secrets.GH_AW_OTEL_ENDPOINT }}", + "headers": "${{ secrets.GH_AW_OTEL_HEADERS }}", + }, + }, + // Simulate complex engine object that would cause ParseFrontmatterConfig to fail. + "engine": map[string]any{"id": "copilot", "max-continuations": 2}, + }, + } + c.injectOTLPConfig(wd) + + require.NotEmpty(t, wd.Env, "Env should be set even without ParsedFrontmatter") + assert.Contains(t, wd.Env, "OTEL_EXPORTER_OTLP_ENDPOINT: ${{ secrets.GH_AW_OTEL_ENDPOINT }}", "endpoint should be injected from raw") + assert.Contains(t, wd.Env, "OTEL_SERVICE_NAME: gh-aw", "service name should be set") + assert.Contains(t, wd.Env, "OTEL_EXPORTER_OTLP_HEADERS: ${{ secrets.GH_AW_OTEL_HEADERS }}", "headers should be injected from raw") + }) + + t.Run("no-op when neither raw nor parsed frontmatter has OTLP", func(t *testing.T) { + wd := &WorkflowData{ + ParsedFrontmatter: nil, + RawFrontmatter: map[string]any{"name": "my-workflow"}, + } + c.injectOTLPConfig(wd) + assert.Empty(t, wd.Env, "Env should remain empty") + assert.Nil(t, wd.NetworkPermissions, "NetworkPermissions should remain nil") + }) +} diff --git a/pkg/workflow/publish_assets.go b/pkg/workflow/publish_assets.go index fd275bd3e4..83037af629 100644 --- a/pkg/workflow/publish_assets.go +++ b/pkg/workflow/publish_assets.go @@ -5,6 +5,7 @@ import ( "fmt" "strings" + "github.com/github/gh-aw/pkg/constants" "github.com/github/gh-aw/pkg/logger" ) @@ -103,7 +104,9 @@ func (c *Compiler) buildUploadAssetsJob(data *WorkflowData, mainJobName string, preSteps = append(preSteps, c.generateCheckoutActionsFolder(data)...) // Publish assets job doesn't need project support - preSteps = append(preSteps, c.generateSetupStep(setupActionRef, SetupActionDestination, false)...) + // Publish assets job depends on the agent job; reuse its trace ID so all jobs share one OTLP trace + publishTraceID := fmt.Sprintf("${{ needs.%s.outputs.setup-trace-id }}", constants.ActivationJobName) + preSteps = append(preSteps, c.generateSetupStep(setupActionRef, SetupActionDestination, false, publishTraceID)...) } // Step 1: Checkout repository @@ -147,8 +150,8 @@ func (c *Compiler) buildUploadAssetsJob(data *WorkflowData, mainJobName string, // Build the job condition using expression tree jobCondition := BuildSafeOutputType("upload_asset") - // Build job dependencies — detection is now inline in the agent job - needs := []string{mainJobName} + // Build job dependencies — always include activation job for OTLP trace ID correlation + needs := []string{mainJobName, string(constants.ActivationJobName)} // In dev mode the setup action is referenced via a local path (./actions/setup), so its // files live in the workspace. The upload_assets step does a git checkout to the assets diff --git a/pkg/workflow/qmd.go b/pkg/workflow/qmd.go index efe2d3dd7d..284a28862a 100644 --- a/pkg/workflow/qmd.go +++ b/pkg/workflow/qmd.go @@ -573,7 +573,9 @@ func (c *Compiler) buildQmdIndexingJob(data *WorkflowData) (*Job, error) { // Run the setup action to copy qmd_index.cjs and setup_globals.cjs to SetupActionDestination. setupActionRef := c.resolveActionReference("./actions/setup", data) - steps = append(steps, c.generateSetupStep(setupActionRef, SetupActionDestination, false)...) + // QMD indexing job depends on activation; reuse its trace ID so all jobs share one OTLP trace + qmdTraceID := fmt.Sprintf("${{ needs.%s.outputs.setup-trace-id }}", constants.ActivationJobName) + steps = append(steps, c.generateSetupStep(setupActionRef, SetupActionDestination, false, qmdTraceID)...) // Check out the repository workspace if any checkout-based collection uses the default repo // (i.e., no per-collection checkout config, meaning it relies on ${GITHUB_WORKSPACE}). diff --git a/pkg/workflow/repo_memory.go b/pkg/workflow/repo_memory.go index 1f69dcebf3..c073d86c46 100644 --- a/pkg/workflow/repo_memory.go +++ b/pkg/workflow/repo_memory.go @@ -603,7 +603,9 @@ func (c *Compiler) buildPushRepoMemoryJob(data *WorkflowData, threatDetectionEna steps = append(steps, c.generateCheckoutActionsFolder(data)...) // Repo memory job doesn't need project support - steps = append(steps, c.generateSetupStep(setupActionRef, SetupActionDestination, false)...) + // Repo memory job depends on agent job; reuse the agent's trace ID so all jobs share one OTLP trace + repoMemoryTraceID := fmt.Sprintf("${{ needs.%s.outputs.setup-trace-id }}", constants.ActivationJobName) + steps = append(steps, c.generateSetupStep(setupActionRef, SetupActionDestination, false, repoMemoryTraceID)...) } // Add checkout step to configure git (without checking out files) @@ -741,7 +743,7 @@ func (c *Compiler) buildPushRepoMemoryJob(data *WorkflowData, threatDetectionEna BuildPropertyAccess(fmt.Sprintf("needs.%s.result", constants.AgentJobName)), BuildStringLiteral("success"), ) - jobNeeds := []string{string(constants.AgentJobName)} + jobNeeds := []string{string(constants.AgentJobName), string(constants.ActivationJobName)} var jobCondition string if threatDetectionEnabled { // When threat detection is enabled, also require detection passed (succeeded or skipped). diff --git a/pkg/workflow/testdata/TestWasmGolden_CompileFixtures/basic-copilot.golden b/pkg/workflow/testdata/TestWasmGolden_CompileFixtures/basic-copilot.golden index e777485f86..b22442fbe3 100644 --- a/pkg/workflow/testdata/TestWasmGolden_CompileFixtures/basic-copilot.golden +++ b/pkg/workflow/testdata/TestWasmGolden_CompileFixtures/basic-copilot.golden @@ -28,6 +28,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -37,9 +38,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -228,6 +231,7 @@ jobs: effective_tokens: ${{ steps.parse-mcp-gateway.outputs.effective_tokens }} inference_access_error: ${{ steps.detect-inference-error.outputs.inference_access_error || 'false' }} model: ${{ needs.activation.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -237,9 +241,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -522,9 +529,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 diff --git a/pkg/workflow/testdata/TestWasmGolden_CompileFixtures/with-imports.golden b/pkg/workflow/testdata/TestWasmGolden_CompileFixtures/with-imports.golden index 7c426adca4..83e1da1ea0 100644 --- a/pkg/workflow/testdata/TestWasmGolden_CompileFixtures/with-imports.golden +++ b/pkg/workflow/testdata/TestWasmGolden_CompileFixtures/with-imports.golden @@ -28,6 +28,7 @@ jobs: lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }} model: ${{ steps.generate_aw_info.outputs.model }} secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -37,9 +38,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Generate agentic run info id: generate_aw_info env: @@ -229,6 +232,7 @@ jobs: effective_tokens: ${{ steps.parse-mcp-gateway.outputs.effective_tokens }} inference_access_error: ${{ steps.detect-inference-error.outputs.inference_access_error || 'false' }} model: ${{ needs.activation.outputs.model }} + setup-trace-id: ${{ steps.setup.outputs.trace-id }} steps: - name: Checkout actions folder uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -238,9 +242,12 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} + trace-id: ${{ needs.activation.outputs.setup-trace-id }} - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -523,9 +530,11 @@ jobs: actions persist-credentials: false - name: Setup Scripts + id: setup uses: ./actions/setup with: destination: ${{ runner.temp }}/gh-aw/actions + job-name: ${{ github.job }} - name: Check team membership for workflow id: check_membership uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 diff --git a/pkg/workflow/threat_detection.go b/pkg/workflow/threat_detection.go index a83795ba2d..b23831bd46 100644 --- a/pkg/workflow/threat_detection.go +++ b/pkg/workflow/threat_detection.go @@ -657,7 +657,9 @@ func (c *Compiler) buildDetectionJob(data *WorkflowData) (*Job, error) { if setupActionRef != "" || c.actionMode.IsScript() { // For dev mode (local action path), checkout the actions folder first steps = append(steps, c.generateCheckoutActionsFolder(data)...) - steps = append(steps, c.generateSetupStep(setupActionRef, SetupActionDestination, false)...) + // Detection job depends on agent job; reuse the agent's trace ID so all jobs share one OTLP trace + detectionTraceID := fmt.Sprintf("${{ needs.%s.outputs.setup-trace-id }}", constants.ActivationJobName) + steps = append(steps, c.generateSetupStep(setupActionRef, SetupActionDestination, false, detectionTraceID)...) } // Download agent output artifact to access output files (prompt.txt, agent_output.json, patches). @@ -679,8 +681,8 @@ func (c *Compiler) buildDetectionJob(data *WorkflowData) (*Job, error) { "detection_conclusion": "${{ steps.detection_conclusion.outputs.conclusion }}", } - // Detection job depends on agent job - needs := []string{string(constants.AgentJobName)} + // Detection job depends on agent job and activation job (for trace ID) + needs := []string{string(constants.AgentJobName), string(constants.ActivationJobName)} // Determine runs-on: use threat detection override if set, otherwise ubuntu-latest. // The detection job runs on a fresh runner separate from the agent job, so it does