OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[CI] [GHA] [AW] Upgrade the `gh aw` package (#37589)
Andrei Kashchikhinb30eb35260ee
diff --git a/.github/aw/actions-lock.json b/.github/aw/actions-lock.jsonindex d8bcc87e2bc..9bdc72fa702 100644--- a/.github/aw/actions-lock.json+++ b/.github/aw/actions-lock.json@@ -1,9 +1,41 @@{"entries": {- "github/gh-aw-actions/[email protected]": {+ "github/gh-aw-actions/[email protected]": {"repo": "github/gh-aw-actions/setup",- "version": "v0.85.4",- "sha": "2709137ea6c5b0e19aa621454dc643ea8dc526b1"+ "version": "v0.87.4",+ "sha": "ea4b911d44a5336c74325a122a5fd9110b45ff06"+ }+ },+ "containers": {+ "ghcr.io/github/gh-aw-firewall/agent:0.28.4": {+ "image": "ghcr.io/github/gh-aw-firewall/agent:0.28.4",+ "digest": "sha256:8f18587981eff7e6291784200a88a7191d23bfd8f5723db848c640d6b4e88e46",+ "pinned_image": "ghcr.io/github/gh-aw-firewall/agent:0.28.4@sha256:8f18587981eff7e6291784200a88a7191d23bfd8f5723db848c640d6b4e88e46"+ },+ "ghcr.io/github/gh-aw-firewall/api-proxy:0.28.4": {+ "image": "ghcr.io/github/gh-aw-firewall/api-proxy:0.28.4",+ "digest": "sha256:64e668297d1b9d83ee102626e104c054ac2cf5cfd7225bf6e144f86962229882",+ "pinned_image": "ghcr.io/github/gh-aw-firewall/api-proxy:0.28.4@sha256:64e668297d1b9d83ee102626e104c054ac2cf5cfd7225bf6e144f86962229882"+ },+ "ghcr.io/github/gh-aw-firewall/squid:0.28.4": {+ "image": "ghcr.io/github/gh-aw-firewall/squid:0.28.4",+ "digest": "sha256:35953d0beac18f642aa0bc98bb726a85288539b1fc630c16e94da33300058258",+ "pinned_image": "ghcr.io/github/gh-aw-firewall/squid:0.28.4@sha256:35953d0beac18f642aa0bc98bb726a85288539b1fc630c16e94da33300058258"+ },+ "ghcr.io/github/gh-aw-mcpg:v0.4.10": {+ "image": "ghcr.io/github/gh-aw-mcpg:v0.4.10",+ "digest": "sha256:08bb5fa417aed94b40a14e2b7b3ae457531a5f22b143a32fe58317139d9b8f42",+ "pinned_image": "ghcr.io/github/gh-aw-mcpg:v0.4.10@sha256:08bb5fa417aed94b40a14e2b7b3ae457531a5f22b143a32fe58317139d9b8f42"+ },+ "ghcr.io/github/gh-aw-node": {+ "image": "ghcr.io/github/gh-aw-node",+ "digest": "sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e",+ "pinned_image": "ghcr.io/github/gh-aw-node@sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e"+ },+ "ghcr.io/github/github-mcp-server:v1.10.0": {+ "image": "ghcr.io/github/github-mcp-server:v1.10.0",+ "digest": "sha256:097512ddf58af80a620c177ae9cad93448f9a2a55c70ee8fde5cec6714522a8c",+ "pinned_image": "ghcr.io/github/github-mcp-server:v1.10.0@sha256:097512ddf58af80a620c177ae9cad93448f9a2a55c70ee8fde5cec6714522a8c"}}}diff --git a/.github/workflows/agentic_workflows_check.yml b/.github/workflows/agentic_workflows_check.ymlindex 5fe0ceef1a4..526bdf9b5e0 100644--- a/.github/workflows/agentic_workflows_check.yml+++ b/.github/workflows/agentic_workflows_check.yml@@ -25,12 +25,10 @@ jobs:with:submodules: 'false'- - name: Install gh aw extension- env:- GH_TOKEN: ${{ github.token }}- run: |- gh extension install github/gh-aw- gh aw --version+ - name: Install gh-aw+ uses: github/gh-aw/actions/setup-cli@57c8c22d3eefb88d996ec6e49a461944adfee625+ with:+ version: v0.87.4- name: Compile and verify agentic workflowsenv:diff --git a/.github/workflows/ci-doctor-mq.lock.yml b/.github/workflows/ci-doctor-mq.lock.ymlindex b2bfb0845dd..20883277d60 100644--- a/.github/workflows/ci-doctor-mq.lock.yml+++ b/.github/workflows/ci-doctor-mq.lock.yml@@ -1,6 +1,6 @@-# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"02aef3108182e7ebd2fe8d5e64f4030431be39005215a1a887130026fd1064ff","body_hash":"0ed1f4fe9d6014054c62cd1abeea3e368dc1e1790a4dd101771eeed8afe691c5","compiler_version":"v0.85.4","strict":true,"agent_id":"copilot","agent_model":"claude-sonnet-4.6","engine_versions":{"copilot":"1.0.78"}}-# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN","MERGE_QUEUE_TOKEN","TEAMS_WEBHOOK_URL"],"actions":[{"repo":"actions/cache/restore","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/cache/save","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/checkout","sha":"9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0","version":"9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0"},{"repo":"actions/download-artifact","sha":"3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c","version":"v8.0.1"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"820762786026740c76f36085b0efc47a31fe5020","version":"v7.0.0"},{"repo":"actions/setup-python","sha":"a309ff8b426b58ec0e2a45f0f869d46889d02405","version":"a309ff8b426b58ec0e2a45f0f869d46889d02405"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"},{"repo":"github/gh-aw-actions/setup","sha":"2709137ea6c5b0e19aa621454dc643ea8dc526b1","version":"v0.85.4"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.27.44","digest":"sha256:0d727725c737b58c7bdf51f640cffb928385ec46517e0917c7f1a02f1bada8b4","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.27.44@sha256:0d727725c737b58c7bdf51f640cffb928385ec46517e0917c7f1a02f1bada8b4"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.44","digest":"sha256:b50fbadba138f6e9aba94aca09711335c489bb3b15861220cb66f6092e042dc7","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.44@sha256:b50fbadba138f6e9aba94aca09711335c489bb3b15861220cb66f6092e042dc7"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.27.44","digest":"sha256:83e48bbe12c634be8c228a576832fe45f66c529ac3659db92bddbcf2eeb6d627","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.27.44@sha256:83e48bbe12c634be8c228a576832fe45f66c529ac3659db92bddbcf2eeb6d627"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.4.8","digest":"sha256:38bbea36cdb46a3c9d04d1db05e672966f5239b431a2022eb35881688e5721d8","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.4.8@sha256:38bbea36cdb46a3c9d04d1db05e672966f5239b431a2022eb35881688e5721d8"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:0d9f1fb5fd6610c0ac1f5194a38e45a8a1e81f8a390d5142d8e4e6f26a4b3196","pinned_image":"ghcr.io/github/gh-aw-node@sha256:0d9f1fb5fd6610c0ac1f5194a38e45a8a1e81f8a390d5142d8e4e6f26a4b3196"},{"image":"ghcr.io/github/github-mcp-server:v1.8.0","digest":"sha256:d5a18c04b92714c309eb46a2305087e91a4dbd80420f6e462656699f95093520","pinned_image":"ghcr.io/github/github-mcp-server:v1.8.0@sha256:d5a18c04b92714c309eb46a2305087e91a4dbd80420f6e462656699f95093520"}]}-# This file was automatically generated by gh-aw (v0.85.4). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md+# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"bd62643665b6983e8e2542328e0b12919dec0567191a9a00ded57ef9e40a4cf8","body_hash":"0ed1f4fe9d6014054c62cd1abeea3e368dc1e1790a4dd101771eeed8afe691c5","compiler_version":"v0.87.4","strict":true,"agent_id":"copilot","agent_model":"claude-sonnet-4.6","engine_versions":{"copilot":"1.0.80"}}+# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN","MERGE_QUEUE_TOKEN","TEAMS_WEBHOOK_URL"],"actions":[{"repo":"actions/cache/restore","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/cache/save","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/download-artifact","sha":"3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c","version":"v8.0.1"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-python","sha":"5fda3b95a4ea91299a34e894583c3862153e4b97","version":"v7.0.0"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"},{"repo":"github/gh-aw-actions/setup","sha":"ea4b911d44a5336c74325a122a5fd9110b45ff06","version":"v0.87.4"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.28.4","digest":"sha256:8f18587981eff7e6291784200a88a7191d23bfd8f5723db848c640d6b4e88e46","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.28.4@sha256:8f18587981eff7e6291784200a88a7191d23bfd8f5723db848c640d6b4e88e46"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.28.4","digest":"sha256:64e668297d1b9d83ee102626e104c054ac2cf5cfd7225bf6e144f86962229882","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.28.4@sha256:64e668297d1b9d83ee102626e104c054ac2cf5cfd7225bf6e144f86962229882"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.28.4","digest":"sha256:35953d0beac18f642aa0bc98bb726a85288539b1fc630c16e94da33300058258","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.28.4@sha256:35953d0beac18f642aa0bc98bb726a85288539b1fc630c16e94da33300058258"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.4.10","digest":"sha256:08bb5fa417aed94b40a14e2b7b3ae457531a5f22b143a32fe58317139d9b8f42","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.4.10@sha256:08bb5fa417aed94b40a14e2b7b3ae457531a5f22b143a32fe58317139d9b8f42"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e","pinned_image":"ghcr.io/github/gh-aw-node@sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e"},{"image":"ghcr.io/github/github-mcp-server:v1.10.0","digest":"sha256:097512ddf58af80a620c177ae9cad93448f9a2a55c70ee8fde5cec6714522a8c","pinned_image":"ghcr.io/github/github-mcp-server:v1.10.0@sha256:097512ddf58af80a620c177ae9cad93448f9a2a55c70ee8fde5cec6714522a8c"}],"mcp_servers":[{"name":"github","tools":["actions_get","actions_list","get_commit","get_file_contents","get_job_logs","get_latest_release","get_me","get_pull_request","get_pull_request_comments","get_pull_request_diff","get_pull_request_files","get_pull_request_review_comments","get_pull_request_reviews","get_pull_request_status","get_release_by_tag","get_tag","issue_read","list_branches","list_commits","list_issue_types","list_issues","list_pull_requests","list_releases","list_starred_repositories","list_tags","pull_request_read","search_code","search_issues","search_pull_requests","search_repositories"]},{"name":"safeoutputs","tools":["add_comment","missing_data","missing_tool","noop","notify_teams","notify_teams_recurring","remediate_transient_failure"]}]}+# This file was automatically generated by gh-aw (v0.87.4). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md## ___ _ _# / _ \ | | (_)@@ -48,22 +48,20 @@# - actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0# - actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0# - actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1-# - actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # 9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0# - actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1# - actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0# - actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 (source v9)-# - actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0-# - actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # a309ff8b426b58ec0e2a45f0f869d46889d02405+# - actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0# - actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1-# - github/gh-aw-actions/setup@2709137ea6c5b0e19aa621454dc643ea8dc526b1 # v0.85.4+# - github/gh-aw-actions/setup@ea4b911d44a5336c74325a122a5fd9110b45ff06 # v0.87.4## Container images used:-# - ghcr.io/github/gh-aw-firewall/agent:0.27.44@sha256:0d727725c737b58c7bdf51f640cffb928385ec46517e0917c7f1a02f1bada8b4-# - ghcr.io/github/gh-aw-firewall/api-proxy:0.27.44@sha256:b50fbadba138f6e9aba94aca09711335c489bb3b15861220cb66f6092e042dc7-# - ghcr.io/github/gh-aw-firewall/squid:0.27.44@sha256:83e48bbe12c634be8c228a576832fe45f66c529ac3659db92bddbcf2eeb6d627-# - ghcr.io/github/gh-aw-mcpg:v0.4.8@sha256:38bbea36cdb46a3c9d04d1db05e672966f5239b431a2022eb35881688e5721d8-# - ghcr.io/github/gh-aw-node@sha256:0d9f1fb5fd6610c0ac1f5194a38e45a8a1e81f8a390d5142d8e4e6f26a4b3196-# - ghcr.io/github/github-mcp-server:v1.8.0@sha256:d5a18c04b92714c309eb46a2305087e91a4dbd80420f6e462656699f95093520+# - ghcr.io/github/gh-aw-firewall/agent:0.28.4@sha256:8f18587981eff7e6291784200a88a7191d23bfd8f5723db848c640d6b4e88e46+# - ghcr.io/github/gh-aw-firewall/api-proxy:0.28.4@sha256:64e668297d1b9d83ee102626e104c054ac2cf5cfd7225bf6e144f86962229882+# - ghcr.io/github/gh-aw-firewall/squid:0.28.4@sha256:35953d0beac18f642aa0bc98bb726a85288539b1fc630c16e94da33300058258+# - ghcr.io/github/gh-aw-mcpg:v0.4.10@sha256:08bb5fa417aed94b40a14e2b7b3ae457531a5f22b143a32fe58317139d9b8f42+# - ghcr.io/github/gh-aw-node@sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e+# - ghcr.io/github/github-mcp-server:v1.10.0@sha256:097512ddf58af80a620c177ae9cad93448f9a2a55c70ee8fde5cec6714522a8cname: "CI Failure Doctor — Merge Queue"on:@@ -140,7 +138,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@2709137ea6c5b0e19aa621454dc643ea8dc526b1 # v0.85.4+ uses: github/gh-aw-actions/setup@ea4b911d44a5336c74325a122a5fd9110b45ff06 # v0.87.4with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -150,8 +148,8 @@ jobs:env:GH_AW_SETUP_WORKFLOW_NAME: "CI Failure Doctor — Merge Queue"GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor-mq.lock.yml@${{ github.ref }}- GH_AW_INFO_VERSION: "1.0.78"- GH_AW_INFO_AWF_VERSION: "v0.27.44"+ GH_AW_INFO_VERSION: "1.0.80"+ GH_AW_INFO_AWF_VERSION: "v0.28.4"GH_AW_INFO_ENGINE_ID: "copilot"- name: Generate agentic run infoid: generate_aw_info@@ -159,25 +157,28 @@ jobs:GH_AW_INFO_ENGINE_ID: "copilot"GH_AW_INFO_ENGINE_NAME: "GitHub Copilot CLI"GH_AW_INFO_MODEL: "claude-sonnet-4.6"- GH_AW_INFO_VERSION: "1.0.78"- GH_AW_INFO_AGENT_VERSION: "1.0.78"- GH_AW_INFO_CLI_VERSION: "v0.85.4"+ GH_AW_INFO_VERSION: "1.0.80"+ GH_AW_INFO_AGENT_VERSION: "1.0.80"+ GH_AW_INFO_CLI_VERSION: "v0.87.4"GH_AW_INFO_WORKFLOW_NAME: "CI Failure Doctor — Merge Queue"GH_AW_INFO_EXPERIMENTAL: "false"GH_AW_INFO_SUPPORTS_TOOLS_ALLOWLIST: "true"GH_AW_INFO_STAGED: "false"GH_AW_INFO_ALLOWED_DOMAINS: '["defaults"]'GH_AW_INFO_FIREWALL_ENABLED: "true"- GH_AW_INFO_AWF_VERSION: "v0.27.44"+ GH_AW_INFO_AWF_VERSION: "v0.28.4"GH_AW_INFO_AWMG_VERSION: ""GH_AW_INFO_FIREWALL_TYPE: "squid"+ GH_AW_INFO_AGENT_RUNTIME: ""GH_AW_COMPILED_STRICT: "true"uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0with:script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/generate_aw_info.cjs');+ const { main } = require(path.join(actionsDir, 'generate_aw_info.cjs'));await main(core, context);- name: Restore daily AIC usage cacheid: restore-daily-aic-cache@@ -199,9 +200,11 @@ jobs:with:github-token: ${{ secrets.GITHUB_TOKEN }}script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/restore_aic_usage_cache_fallback.cjs');+ const { main } = require(path.join(actionsDir, 'restore_aic_usage_cache_fallback.cjs'));await main();- name: Check daily workflow token guardrailid: daily-effective-workflow-guardrail@@ -219,9 +222,11 @@ jobs:with:github-token: ${{ secrets.GITHUB_TOKEN }}script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/check_daily_aic_workflow_guardrail.cjs');+ const { main } = require(path.join(actionsDir, 'check_daily_aic_workflow_guardrail.cjs'));await main();- name: Validate COPILOT_GITHUB_TOKEN secretid: validate-secret@@ -252,8 +257,8 @@ jobs:env:GH_AW_AGENT_FOLDERS: ".agents .github"GH_AW_AGENT_FILES: "AGENTS.md"- # poutine:ignore untrusted_checkout_exec- run: bash "${RUNNER_TEMP}/gh-aw/actions/save_base_github_folders.sh"+ run: |+ bash "${RUNNER_TEMP}/gh-aw/actions/save_base_github_folders.sh"- name: Check workflow lock fileid: check-lock-fileuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0@@ -262,27 +267,34 @@ jobs:GH_AW_CONTEXT_WORKFLOW_REF: "${{ github.workflow_ref }}"with:script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/check_workflow_timestamp_api.cjs');+ const { main } = require(path.join(actionsDir, 'check_workflow_timestamp_api.cjs'));await main();- name: Check compile-agentic versionuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:- GH_AW_COMPILED_VERSION: "v0.85.4"+ GH_AW_COMPILED_VERSION: "v0.87.4"with:script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/check_version_updates.cjs');+ const { main } = require(path.join(actionsDir, 'check_version_updates.cjs'));await main();- name: Log runtime featuresif: ${{ contains(toJSON(vars), '"GH_AW_RUNTIME_FEATURES":') }}run: bash "${RUNNER_TEMP}/gh-aw/actions/log_runtime_features_summary.sh"- name: Create prompt with built-in context+ uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:- GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt+ GH_AW_ACTIONS_DIR: ${{ runner.temp }}/gh-aw/actions+ GH_AW_PROMPT: ${{ runner.temp }}/gh-aw/aw-prompts/prompt.txtGH_AW_SAFE_OUTPUTS: ${{ runner.temp }}/gh-aw/safeoutputs/outputs.jsonl+ GH_AW_PROMPT_CONFIG: "{\"items\":[{\"content_env\":\"GH_AW_PROMPT_CONTENT_0000\"},{\"file\":\"xpia.md\"},{\"file\":\"temp_folder_prompt.md\"},{\"file\":\"markdown.md\"},{\"file\":\"repo_memory_prompt.md\"},{\"file\":\"safe_outputs_prompt.md\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0001\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0002\"},{\"file\":\"mcp_cli_tools_with_safeoutputs_prompt.md\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0003\"},{\"file\":\"github_mcp_tools_with_safeoutputs_prompt.md\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0004\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0005\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0006\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0007\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0008\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0009\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0010\"}]}"GH_AW_EXPR_1A3A194A: ${{ github.event.discussion.number || (fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_type == 'discussion' && fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_number) }}GH_AW_EXPR_463A214A: ${{ github.event.pull_request.number || (fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_type == 'pull_request' && fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_number) }}GH_AW_EXPR_802A9F6A: ${{ github.event.issue.number || (fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_type == 'issue' && fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_number) }}@@ -299,69 +311,27 @@ jobs:GH_AW_GITHUB_RUN_ID: ${{ github.run_id }}GH_AW_GITHUB_WORKSPACE: ${{ github.workspace }}GH_AW_WIKI_NOTE: ${{ '' }}- # poutine:ignore untrusted_checkout_exec- run: |- bash "${RUNNER_TEMP}/gh-aw/actions/create_prompt_first.sh"- {- cat << 'GH_AW_PROMPT_0d4bf9761af0f0b8_EOF'- <system>- GH_AW_PROMPT_0d4bf9761af0f0b8_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"- cat "${RUNNER_TEMP}/gh-aw/prompts/repo_memory_prompt.md"- cat "${RUNNER_TEMP}/gh-aw/prompts/safe_outputs_prompt.md"- cat << 'GH_AW_PROMPT_0d4bf9761af0f0b8_EOF'- <safe-output-tools>- Tools: add_comment, missing_tool, missing_data, noop, notify_teams, notify_teams_recurring, remediate_transient_failure- </safe-output-tools>- GH_AW_PROMPT_0d4bf9761af0f0b8_EOF- cat "${RUNNER_TEMP}/gh-aw/prompts/mcp_cli_tools_prompt.md"- cat << 'GH_AW_PROMPT_0d4bf9761af0f0b8_EOF'- <github-context>- The following GitHub context information is available for this workflow:- {{#if github.actor}}- - **actor**: __GH_AW_GITHUB_ACTOR__- {{/if}}- {{#if github.repository}}- - **repository**: __GH_AW_GITHUB_REPOSITORY__- {{/if}}- {{#if github.workspace}}- - **workspace**: __GH_AW_GITHUB_WORKSPACE__- {{/if}}- {{#if github.event.issue.number || (github.aw.context.item_type == 'issue' && github.aw.context.item_number)}}- - **issue-number**: #__GH_AW_EXPR_802A9F6A__- {{/if}}- {{#if github.event.discussion.number || (github.aw.context.item_type == 'discussion' && github.aw.context.item_number)}}- - **discussion-number**: #__GH_AW_EXPR_1A3A194A__- {{/if}}- {{#if github.event.pull_request.number || (github.aw.context.item_type == 'pull_request' && github.aw.context.item_number)}}- - **pull-request-number**: #__GH_AW_EXPR_463A214A__- {{/if}}- {{#if github.event.comment.id || github.aw.context.comment_id}}- - **comment-id**: __GH_AW_EXPR_FF1D34CE__- {{/if}}- {{#if github.run_id}}- - **workflow-run-id**: __GH_AW_GITHUB_RUN_ID__- {{/if}}- </github-context>-- GH_AW_PROMPT_0d4bf9761af0f0b8_EOF- cat "${RUNNER_TEMP}/gh-aw/prompts/github_mcp_tools_with_safeoutputs_prompt.md"- cat << 'GH_AW_PROMPT_0d4bf9761af0f0b8_EOF'- </system>- {{#runtime-import .github/workflows/shared/agentic-workflows/download-failure-logs.md}}- {{#runtime-import .github/workflows/shared/agentic-workflows/collect-pr-info.md}}- {{#runtime-import .github/workflows/shared/agentic-workflows/notify-teams.md}}- {{#runtime-import .github/workflows/shared/agentic-workflows/notify-teams-recurring.md}}- {{#runtime-import .github/workflows/shared/agentic-workflows/remediate-transient-failure.md}}- {{#runtime-import .github/workflows/ci-doctor-mq.md}}- GH_AW_PROMPT_0d4bf9761af0f0b8_EOF- } > "$GH_AW_PROMPT"+ GH_AW_PROMPT_CONTENT_0000: "<system>\n"+ GH_AW_PROMPT_CONTENT_0001: "<safe-output-tools>\nTools: add_comment, missing_tool, missing_data, noop, notify_teams, notify_teams_recurring, remediate_transient_failure\n"+ GH_AW_PROMPT_CONTENT_0002: "</safe-output-tools>\n"+ GH_AW_PROMPT_CONTENT_0003: "<github-context>\nThe following GitHub context information is available for this workflow:\n{{#if github.actor}}\n- **actor**: __GH_AW_GITHUB_ACTOR__\n{{/if}}\n{{#if github.repository}}\n- **repository**: __GH_AW_GITHUB_REPOSITORY__\n{{/if}}\n{{#if github.workspace}}\n- **workspace**: __GH_AW_GITHUB_WORKSPACE__\n{{/if}}\n{{#if github.event.issue.number || (github.aw.context.item_type == 'issue' && github.aw.context.item_number)}}\n- **issue-number**: #__GH_AW_EXPR_802A9F6A__\n{{/if}}\n{{#if github.event.discussion.number || (github.aw.context.item_type == 'discussion' && github.aw.context.item_number)}}\n- **discussion-number**: #__GH_AW_EXPR_1A3A194A__\n{{/if}}\n{{#if github.event.pull_request.number || (github.aw.context.item_type == 'pull_request' && github.aw.context.item_number)}}\n- **pull-request-number**: #__GH_AW_EXPR_463A214A__\n{{/if}}\n{{#if github.event.comment.id || github.aw.context.comment_id}}\n- **comment-id**: __GH_AW_EXPR_FF1D34CE__\n{{/if}}\n{{#if github.run_id}}\n- **workflow-run-id**: __GH_AW_GITHUB_RUN_ID__\n{{/if}}\n</github-context>\n\n"+ GH_AW_PROMPT_CONTENT_0004: "</system>\n"+ GH_AW_PROMPT_CONTENT_0005: "{{#runtime-import .github/workflows/shared/agentic-workflows/download-failure-logs.md}}\n"+ GH_AW_PROMPT_CONTENT_0006: "{{#runtime-import .github/workflows/shared/agentic-workflows/collect-pr-info.md}}\n"+ GH_AW_PROMPT_CONTENT_0007: "{{#runtime-import .github/workflows/shared/agentic-workflows/notify-teams.md}}\n"+ GH_AW_PROMPT_CONTENT_0008: "{{#runtime-import .github/workflows/shared/agentic-workflows/notify-teams-recurring.md}}\n"+ GH_AW_PROMPT_CONTENT_0009: "{{#runtime-import .github/workflows/shared/agentic-workflows/remediate-transient-failure.md}}\n"+ GH_AW_PROMPT_CONTENT_0010: "{{#runtime-import .github/workflows/ci-doctor-mq.md}}\n"+ with:+ script: |+ const { setupGlobals } = require(process.env.GH_AW_ACTIONS_DIR + '/setup_globals.cjs');+ setupGlobals(core, github, context, exec, io, getOctokit);+ const { main } = require(process.env.GH_AW_ACTIONS_DIR + '/create_prompt.cjs');+ await main(core);- name: Interpolate variables and render templatesuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:- GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt+ GH_AW_PROMPT: ${{ runner.temp }}/gh-aw/aw-prompts/prompt.txtGH_AW_ENGINE_ID: "copilot"GH_AW_GITHUB_EVENT_INPUTS_LINK: ${{ github.event.inputs.link }}GH_AW_GITHUB_EVENT_INPUTS_RUN_ID: ${{ github.event.inputs.run_id }}@@ -373,14 +343,16 @@ jobs:GH_AW_GITHUB_REPOSITORY: ${{ github.repository }}with:script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/interpolate_prompt.cjs');+ const { main } = require(path.join(actionsDir, 'interpolate_prompt.cjs'));await main();- name: Substitute placeholdersuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:- GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt+ GH_AW_PROMPT: ${{ runner.temp }}/gh-aw/aw-prompts/prompt.txtGH_AW_EXPR_1A3A194A: ${{ github.event.discussion.number || (fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_type == 'discussion' && fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_number) }}GH_AW_EXPR_463A214A: ${{ github.event.pull_request.number || (fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_type == 'pull_request' && fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_number) }}GH_AW_EXPR_802A9F6A: ${{ github.event.issue.number || (fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_type == 'issue' && fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_number) }}@@ -406,10 +378,12 @@ jobs:GH_AW_WIKI_NOTE: ''with:script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const substitutePlaceholders = require('${{ runner.temp }}/gh-aw/actions/substitute_placeholders.cjs');+ const substitutePlaceholders = require(path.join(actionsDir, 'substitute_placeholders.cjs'));// Call the substitution functionreturn await substitutePlaceholders({@@ -442,14 +416,18 @@ jobs:});- name: Validate prompt placeholdersenv:- GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt- # poutine:ignore untrusted_checkout_exec- run: bash "${RUNNER_TEMP}/gh-aw/actions/validate_prompt_placeholders.sh"+ GH_AW_PROMPT: ${{ runner.temp }}/gh-aw/aw-prompts/prompt.txt+ run: |+ bash "${RUNNER_TEMP}/gh-aw/actions/validate_prompt_placeholders.sh"- name: Print promptenv:- GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt- # poutine:ignore untrusted_checkout_exec- run: bash "${RUNNER_TEMP}/gh-aw/actions/print_prompt_summary.sh"+ GH_AW_PROMPT: ${{ runner.temp }}/gh-aw/aw-prompts/prompt.txt+ run: |+ bash "${RUNNER_TEMP}/gh-aw/actions/print_prompt_summary.sh"+ - name: Stage prompt files for artifact upload+ run: |+ mkdir -p /tmp/gh-aw/aw-prompts+ cp -a "${RUNNER_TEMP}/gh-aw/aw-prompts/." /tmp/gh-aw/aw-prompts/- name: Upload activation artifactif: success()uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1@@ -507,11 +485,12 @@ jobs:setup-parent-span-id: ${{ steps.setup.outputs.parent-span-id || steps.setup.outputs.span-id }}setup-span-id: ${{ steps.setup.outputs.span-id }}setup-trace-id: ${{ steps.setup.outputs.trace-id }}+ shell_expansion_guard_rejected: ${{ steps.detect-agent-errors.outputs.shell_expansion_guard_rejected || 'false' }}unknown_model_ai_credits: ${{ steps.parse-mcp-gateway.outputs.unknown_model_ai_credits || 'false' }}steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@2709137ea6c5b0e19aa621454dc643ea8dc526b1 # v0.85.4+ uses: github/gh-aw-actions/setup@ea4b911d44a5336c74325a122a5fd9110b45ff06 # v0.87.4with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -520,8 +499,8 @@ jobs:env:GH_AW_SETUP_WORKFLOW_NAME: "CI Failure Doctor — Merge Queue"GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor-mq.lock.yml@${{ github.ref }}- GH_AW_INFO_VERSION: "1.0.78"- GH_AW_INFO_AWF_VERSION: "v0.27.44"+ GH_AW_INFO_VERSION: "1.0.80"+ GH_AW_INFO_AWF_VERSION: "v0.28.4"GH_AW_INFO_ENGINE_ID: "copilot"- name: Set runtime pathsid: set-runtime-paths@@ -557,7 +536,7 @@ jobs:CREATE_ORPHAN: truerun: bash "${RUNNER_TEMP}/gh-aw/actions/clone_repo_memory_branch.sh"- name: Set up Python- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # a309ff8b426b58ec0e2a45f0f869d46889d02405+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0with:python-version: "3.13"- name: Install PyGithub@@ -572,7 +551,7 @@ jobs:export PYTHONPATH=.github/scripts/agentic-workflows/:${PYTHONPATH}python .github/scripts/agentic-workflows/download_failure_logs.py- name: Set up Python- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # a309ff8b426b58ec0e2a45f0f869d46889d02405+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0with:python-version: "3.13"- name: Install PyGithub@@ -603,17 +582,19 @@ jobs:with:github-token: ${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN || secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/checkout_pr_branch.cjs');+ const { main } = require(path.join(actionsDir, 'checkout_pr_branch.cjs'));await main();- name: Install GitHub Copilot CLIrun: bash "${RUNNER_TEMP}/gh-aw/actions/install_copilot_cli.sh"env:GH_HOST: github.com- GH_AW_COMPILED_VERSION: v0.85.4+ GH_AW_COMPILED_VERSION: v0.87.4- name: Install AWF binary- run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.27.44 --rootless+ run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.28.4 --rootless- name: Determine automatic lockdown mode for GitHub MCP Serverid: determine-automatic-lockdownuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 (source v9)@@ -622,7 +603,9 @@ jobs:GH_AW_GITHUB_MCP_SERVER_TOKEN: ${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN }}with:script: |- const determineAutomaticLockdown = require('${{ runner.temp }}/gh-aw/actions/determine_automatic_lockdown.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const determineAutomaticLockdown = require(path.join(actionsDir, 'determine_automatic_lockdown.cjs'));await determineAutomaticLockdown(github, context, core);- name: Restore agent config folders from base branchif: steps.checkout-pr.outcome == 'success'@@ -640,15 +623,26 @@ jobs:GH_AW_SKILL_DIR: ".github/skills"run: bash "${RUNNER_TEMP}/gh-aw/actions/restore_inline_skills.sh"- name: Download container images- run: bash "${RUNNER_TEMP}/gh-aw/actions/download_docker_images.sh" ghcr.io/github/gh-aw-firewall/agent:0.27.44@sha256:0d727725c737b58c7bdf51f640cffb928385ec46517e0917c7f1a02f1bada8b4 ghcr.io/github/gh-aw-firewall/api-proxy:0.27.44@sha256:b50fbadba138f6e9aba94aca09711335c489bb3b15861220cb66f6092e042dc7 ghcr.io/github/gh-aw-firewall/squid:0.27.44@sha256:83e48bbe12c634be8c228a576832fe45f66c529ac3659db92bddbcf2eeb6d627 ghcr.io/github/gh-aw-mcpg:v0.4.8@sha256:38bbea36cdb46a3c9d04d1db05e672966f5239b431a2022eb35881688e5721d8 ghcr.io/github/gh-aw-node@sha256:0d9f1fb5fd6610c0ac1f5194a38e45a8a1e81f8a390d5142d8e4e6f26a4b3196 ghcr.io/github/github-mcp-server:v1.8.0@sha256:d5a18c04b92714c309eb46a2305087e91a4dbd80420f6e462656699f95093520- - name: Generate Safe Outputs Config+ run: bash "${RUNNER_TEMP}/gh-aw/actions/download_docker_images.sh" ghcr.io/github/gh-aw-firewall/agent:0.28.4@sha256:8f18587981eff7e6291784200a88a7191d23bfd8f5723db848c640d6b4e88e46 ghcr.io/github/gh-aw-firewall/api-proxy:0.28.4@sha256:64e668297d1b9d83ee102626e104c054ac2cf5cfd7225bf6e144f86962229882 ghcr.io/github/gh-aw-firewall/squid:0.28.4@sha256:35953d0beac18f642aa0bc98bb726a85288539b1fc630c16e94da33300058258 ghcr.io/github/gh-aw-mcpg:v0.4.10@sha256:08bb5fa417aed94b40a14e2b7b3ae457531a5f22b143a32fe58317139d9b8f42 ghcr.io/github/gh-aw-node@sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e ghcr.io/github/github-mcp-server:v1.10.0@sha256:097512ddf58af80a620c177ae9cad93448f9a2a55c70ee8fde5cec6714522a8c+ - name: Prepare Safe Outputs Directoriesrun: |mkdir -p "${RUNNER_TEMP}/gh-aw/safeoutputs"mkdir -p /tmp/gh-aw/safeoutputsmkdir -p /tmp/gh-aw/mcp-logs/safeoutputs- cat > "${RUNNER_TEMP}/gh-aw/safeoutputs/config.json" << 'GH_AW_SAFE_OUTPUTS_CONFIG_3667922a9eb92fde_EOF'- {"add_comment":{"max":1,"target":"*"},"create_report_incomplete_issue":{},"missing_data":{},"missing_tool":{},"noop":{"max":1,"report-as-issue":"false"},"notify-teams":{"description":"Send a CI failure investigation summary to Microsoft Teams. Call this exactly once at the end of the investigation with a concise title and a thorough description of the failure.","inputs":{"author":{"default":"not_found","description":"GitHub login of the PR author or commit author, if known. Omit otherwise.","required":false,"type":"string"},"db_entries":{"default":null,"description":"Total number of unique entries currently in the CI Doctor MQ investigation database (count of distinct investigation files under /tmp/gh-aw/repo-memory/default/mq/investigations/, including the one created by this run). Report as a non-negative integer encoded as a string.","required":true,"type":"string"},"description":{"default":null,"description":"Thorough markdown description of the problem: root cause, failed jobs, key error messages, and recommended actions.","required":true,"type":"string"},"failed_workflow":{"default":null,"description":"Name of the GitHub Actions workflow that failed (as reported by `get_workflow_run`, e.g. 'Linux (Ubuntu 22.04, Python 3.11)'). Do NOT pass the CI Doctor MQ workflow name.","required":true,"type":"string"},"occurrence_count":{"default":null,"description":"How many times this same issue has been recorded in the CI Doctor MQ database, including the current investigation. Compute by matching the current failure signature (normalized error message + failure category, job-agnostic) against prior investigation/pattern files under /tmp/gh-aw/repo-memory/default/mq/. Must be \u003e= 1. Report as a positive integer encoded as a string.","required":true,"type":"string"},"pipeline_url":{"default":null,"description":"URL of the failed GitHub Actions workflow run.","required":true,"type":"string"},"pr_number":{"default":"not_found","description":"Pull request number if the failure is associated with a PR in the merge queue. Omit otherwise.","required":false,"type":"string"},"pr_url":{"default":"not_found","description":"Pull request URL if the failure is associated with a PR in the merge queue. Omit otherwise.","required":false,"type":"string"},"statistics":{"default":null,"description":"Markdown-formatted statistics summary of the CI Doctor MQ pattern database. Must include a table (or list) of every known failure pattern with: pattern signature/title, total reproduction count, first-seen timestamp (UTC, ISO 8601), and last-seen timestamp (UTC, ISO 8601). Sort patterns by reproduction count descending. Compute from files under /tmp/gh-aw/repo-memory/default/mq/investigations/ and /tmp/gh-aw/repo-memory/default/mq/patterns/. Keep concise (top 20 patterns max). Use the rendering rules from the description field (tilde fences, no raw HTML).","required":true,"type":"string"},"statistics_json":{"default":null,"description":"Full statistics database serialized as a compact JSON string. Must be a JSON object of the form {\"generated_at\": \u003cISO8601 UTC\u003e, \"total_patterns\": \u003cint\u003e, \"total_investigations\": \u003cint\u003e, \"patterns\": [{\"signature\": \u003cstr\u003e, \"title\": \u003cstr\u003e, \"category\": \u003cstr\u003e, \"count\": \u003cint\u003e, \"first_seen\": \u003cISO8601 UTC\u003e, \"last_seen\": \u003cISO8601 UTC\u003e, \"recent_run_urls\": [\u003cstr\u003e, ...]}]}. Include ALL known patterns, not just the top N. This payload is uploaded as a workflow artifact for offline analysis.","required":true,"type":"string"},"title":{"default":null,"description":"Short, searchable description of the failure (e.g. 'smoke_Bucketize tests fail on comparison'). No PR/run numbers.","required":true,"type":"string"}},"output":"Notification sent to Microsoft Teams."},"notify-teams-recurring":{"description":"Send a recurring merge-queue failure escalation alert to Microsoft Teams. Call this ONLY when the same failure pattern has 3 or more occurrences in the last 12 hours. Do NOT call this for every failure.","inputs":{"affected_prs":{"default":null,"description":"Markdown-formatted list of affected PR numbers/links from the merge queue that hit this failure in the last 12 hours. One PR per line, e.g. '- [#1234](https://github.com/org/repo/pull/1234)'. Include up to 10 most recent PRs.","required":true,"type":"string"},"description":{"default":null,"description":"Concise markdown gist of the recurring problem: what keeps failing, suspected root cause, and recommended escalation actions. Use Teams-safe markdown only (no raw HTML).","required":true,"type":"string"},"failed_workflow":{"default":null,"description":"Name of the GitHub Actions workflow with the recurring failure.","required":true,"type":"string"},"pipeline_url":{"default":null,"description":"URL of the current (latest) failed workflow run.","required":true,"type":"string"},"recent_count":{"default":null,"description":"Number of times this failure pattern has occurred in the last 12 hours, including the current run. Report as a positive integer encoded as a string (e.g., '3', '5').","required":true,"type":"string"},"recent_run_urls":{"default":null,"description":"Markdown-formatted list of workflow run URLs that exhibited this failure in the last 12 hours. One URL per line, e.g. '- [Run 12345](https://github.com/org/repo/actions/runs/12345)'. Include up to 10 most recent runs.","required":true,"type":"string"},"title":{"default":null,"description":"Short, searchable description of the recurring failure pattern (same as notify_teams.title).","required":true,"type":"string"}},"output":"Recurring failure escalation sent to Microsoft Teams."},"push_repo_memory":{"memories":[{"dir":"/tmp/gh-aw/repo-memory/default","id":"default","max_file_count":500,"max_file_size":1048576,"max_patch_size":1048576}]},"remediate-transient-failure":{"description":"Remediate a TRANSIENT merge-queue pipeline failure. Call this at most once and ONLY when the investigation concludes the failure is transient (Infrastructure, Flaky Test, Network, or External Service categories such as runner hiccups, network timeouts, cancelled jobs, or downstream outages). The job resolves the PR's live merge-queue status itself and decides whether to re-run the failed jobs (PR still in the queue) or re-add the PR to the merge queue (PR was dropped) — you do NOT know or provide the queue status. Do NOT call for deterministic Code Issue / Dependencies / Configuration failures that a restart or re-queue cannot fix.","inputs":{"reason":{"default":null,"description":"Short justification for why the failure is transient and remediation is expected to help (e.g. 'network timeout while downloading dependencies').","required":true,"type":"string"},"repository":{"default":"not_found","description":"The owner/repo of the repository that owns the analysed run (e.g. 'openvinotoolkit/openvino'). Defaults to the current repository when omitted.","required":false,"type":"string"},"run_id":{"default":null,"description":"Numeric ID of the analysed GitHub Actions workflow run (github.event.workflow_run.id for merge-queue triggers, or the run_id input for workflow_dispatch). Report as a numeric string.","required":true,"type":"string"}},"output":"Transient-failure remediation requested for the analysed workflow run."},"report_incomplete":{}}- GH_AW_SAFE_OUTPUTS_CONFIG_3667922a9eb92fde_EOF+ - name: Generate Safe Outputs Config+ uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0+ env:+ GH_AW_FILE_ROOT: "${{ runner.temp }}/gh-aw"+ GH_AW_FILE_CONFIG: "{\"files\":[{\"path\":\"safeoutputs/config.json\",\"content_env\":\"GH_AW_SAFE_OUTPUTS_CONFIG\"}]}"+ GH_AW_SAFE_OUTPUTS_CONFIG: "{\"add_comment\":{\"max\":1,\"target\":\"*\"},\"create_report_incomplete_issue\":{},\"missing_data\":{},\"missing_tool\":{},\"noop\":{\"max\":1,\"report-as-issue\":\"false\"},\"notify-teams\":{\"description\":\"Send a CI failure investigation summary to Microsoft Teams. Call this exactly once at the end of the investigation with a concise title and a thorough description of the failure.\",\"inputs\":{\"author\":{\"default\":\"not_found\",\"description\":\"GitHub login of the PR author or commit author, if known. Omit otherwise.\",\"required\":false,\"type\":\"string\"},\"db_entries\":{\"default\":null,\"description\":\"Total number of unique entries currently in the CI Doctor MQ investigation database (count of distinct investigation files under /tmp/gh-aw/repo-memory/default/mq/investigations/, including the one created by this run). Report as a non-negative integer encoded as a string.\",\"required\":true,\"type\":\"string\"},\"description\":{\"default\":null,\"description\":\"Thorough markdown description of the problem: root cause, failed jobs, key error messages, and recommended actions.\",\"required\":true,\"type\":\"string\"},\"failed_workflow\":{\"default\":null,\"description\":\"Name of the GitHub Actions workflow that failed (as reported by `get_workflow_run`, e.g. 'Linux (Ubuntu 22.04, Python 3.11)'). Do NOT pass the CI Doctor MQ workflow name.\",\"required\":true,\"type\":\"string\"},\"occurrence_count\":{\"default\":null,\"description\":\"How many times this same issue has been recorded in the CI Doctor MQ database, including the current investigation. Compute by matching the current failure signature (normalized error message + failure category, job-agnostic) against prior investigation/pattern files under /tmp/gh-aw/repo-memory/default/mq/. Must be \\u003e= 1. Report as a positive integer encoded as a string.\",\"required\":true,\"type\":\"string\"},\"pipeline_url\":{\"default\":null,\"description\":\"URL of the failed GitHub Actions workflow run.\",\"required\":true,\"type\":\"string\"},\"pr_number\":{\"default\":\"not_found\",\"description\":\"Pull request number if the failure is associated with a PR in the merge queue. Omit otherwise.\",\"required\":false,\"type\":\"string\"},\"pr_url\":{\"default\":\"not_found\",\"description\":\"Pull request URL if the failure is associated with a PR in the merge queue. Omit otherwise.\",\"required\":false,\"type\":\"string\"},\"statistics\":{\"default\":null,\"description\":\"Markdown-formatted statistics summary of the CI Doctor MQ pattern database. Must include a table (or list) of every known failure pattern with: pattern signature/title, total reproduction count, first-seen timestamp (UTC, ISO 8601), and last-seen timestamp (UTC, ISO 8601). Sort patterns by reproduction count descending. Compute from files under /tmp/gh-aw/repo-memory/default/mq/investigations/ and /tmp/gh-aw/repo-memory/default/mq/patterns/. Keep concise (top 20 patterns max). Use the rendering rules from the description field (tilde fences, no raw HTML).\",\"required\":true,\"type\":\"string\"},\"statistics_json\":{\"default\":null,\"description\":\"Full statistics database serialized as a compact JSON string. Must be a JSON object of the form {\\\"generated_at\\\": \\u003cISO8601 UTC\\u003e, \\\"total_patterns\\\": \\u003cint\\u003e, \\\"total_investigations\\\": \\u003cint\\u003e, \\\"patterns\\\": [{\\\"signature\\\": \\u003cstr\\u003e, \\\"title\\\": \\u003cstr\\u003e, \\\"category\\\": \\u003cstr\\u003e, \\\"count\\\": \\u003cint\\u003e, \\\"first_seen\\\": \\u003cISO8601 UTC\\u003e, \\\"last_seen\\\": \\u003cISO8601 UTC\\u003e, \\\"recent_run_urls\\\": [\\u003cstr\\u003e, ...]}]}. Include ALL known patterns, not just the top N. This payload is uploaded as a workflow artifact for offline analysis.\",\"required\":true,\"type\":\"string\"},\"title\":{\"default\":null,\"description\":\"Short, searchable description of the failure (e.g. 'smoke_Bucketize tests fail on comparison'). No PR/run numbers.\",\"required\":true,\"type\":\"string\"}},\"output\":\"Notification sent to Microsoft Teams.\"},\"notify-teams-recurring\":{\"description\":\"Send a recurring merge-queue failure escalation alert to Microsoft Teams. Call this ONLY when the same failure pattern has 3 or more occurrences in the last 12 hours. Do NOT call this for every failure.\",\"inputs\":{\"affected_prs\":{\"default\":null,\"description\":\"Markdown-formatted list of affected PR numbers/links from the merge queue that hit this failure in the last 12 hours. One PR per line, e.g. '- [#1234](https://github.com/org/repo/pull/1234)'. Include up to 10 most recent PRs.\",\"required\":true,\"type\":\"string\"},\"description\":{\"default\":null,\"description\":\"Concise markdown gist of the recurring problem: what keeps failing, suspected root cause, and recommended escalation actions. Use Teams-safe markdown only (no raw HTML).\",\"required\":true,\"type\":\"string\"},\"failed_workflow\":{\"default\":null,\"description\":\"Name of the GitHub Actions workflow with the recurring failure.\",\"required\":true,\"type\":\"string\"},\"pipeline_url\":{\"default\":null,\"description\":\"URL of the current (latest) failed workflow run.\",\"required\":true,\"type\":\"string\"},\"recent_count\":{\"default\":null,\"description\":\"Number of times this failure pattern has occurred in the last 12 hours, including the current run. Report as a positive integer encoded as a string (e.g., '3', '5').\",\"required\":true,\"type\":\"string\"},\"recent_run_urls\":{\"default\":null,\"description\":\"Markdown-formatted list of workflow run URLs that exhibited this failure in the last 12 hours. One URL per line, e.g. '- [Run 12345](https://github.com/org/repo/actions/runs/12345)'. Include up to 10 most recent runs.\",\"required\":true,\"type\":\"string\"},\"title\":{\"default\":null,\"description\":\"Short, searchable description of the recurring failure pattern (same as notify_teams.title).\",\"required\":true,\"type\":\"string\"}},\"output\":\"Recurring failure escalation sent to Microsoft Teams.\"},\"push_repo_memory\":{\"memories\":[{\"dir\":\"/tmp/gh-aw/repo-memory/default\",\"id\":\"default\",\"max_file_count\":500,\"max_file_size\":1048576,\"max_patch_size\":1048576}]},\"remediate-transient-failure\":{\"description\":\"Remediate a TRANSIENT merge-queue pipeline failure. Call this at most once and ONLY when the investigation concludes the failure is transient (Infrastructure, Flaky Test, Network, or External Service categories such as runner hiccups, network timeouts, cancelled jobs, or downstream outages). The job resolves the PR's live merge-queue status itself and decides whether to re-run the failed jobs (PR still in the queue) or re-add the PR to the merge queue (PR was dropped) — you do NOT know or provide the queue status. Do NOT call for deterministic Code Issue / Dependencies / Configuration failures that a restart or re-queue cannot fix.\",\"inputs\":{\"reason\":{\"default\":null,\"description\":\"Short justification for why the failure is transient and remediation is expected to help (e.g. 'network timeout while downloading dependencies').\",\"required\":true,\"type\":\"string\"},\"repository\":{\"default\":\"not_found\",\"description\":\"The owner/repo of the repository that owns the analysed run (e.g. 'openvinotoolkit/openvino'). Defaults to the current repository when omitted.\",\"required\":false,\"type\":\"string\"},\"run_id\":{\"default\":null,\"description\":\"Numeric ID of the analysed GitHub Actions workflow run (github.event.workflow_run.id for merge-queue triggers, or the run_id input for workflow_dispatch). Report as a numeric string.\",\"required\":true,\"type\":\"string\"}},\"output\":\"Transient-failure remediation requested for the analysed workflow run.\"},\"report_incomplete\":{}}"+ with:+ script: |+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));+ setupGlobals(core, github, context, exec, io, getOctokit);+ const { main } = require(path.join(actionsDir, 'create_files.cjs'));+ await main();- name: Generate Safe Outputs Toolsenv:GH_AW_TOOLS_META_JSON: |@@ -812,9 +806,18 @@ jobs:"sanitize": true,"maxLength": 65000},+ "comment_id": {+ "optionalPositiveInteger": true+ },"item_number": {"issueOrPRNumber": true},+ "pr": {+ "issueOrPRNumber": true+ },+ "pr_number": {+ "issueOrPRNumber": true+ },"reply_to_id": {"type": "string","maxLength": 256@@ -822,6 +825,16 @@ jobs:"repo": {"type": "string","maxLength": 256+ },+ "target": {+ "type": "string",+ "enum": [+ "status"+ ]+ },+ "temporary_id": {+ "type": "string",+ "pattern": "^#?aw_[A-Za-z0-9_]{3,12}$"}}},@@ -882,6 +895,16 @@ jobs:}}},+ "push_repo_memory": {+ "defaultMax": 1,+ "fields": {+ "memory_id": {+ "type": "string",+ "sanitize": true,+ "maxLength": 128+ }+ }+ },"report_incomplete": {"defaultMax": 5,"fields": {@@ -902,9 +925,11 @@ jobs:uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0with:script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/generate_safe_outputs_tools.cjs');+ const { main } = require(path.join(actionsDir, 'generate_safe_outputs_tools.cjs'));await main();- name: Start MCP Gatewayid: start-mcp-gateway@@ -921,6 +946,11 @@ jobs:run: |set -eo pipefailmkdir -p "${RUNNER_TEMP}/gh-aw/mcp-config"+ if [ -n "${GITHUB_EVENT_PATH:-}" ] && [ -r "${GITHUB_EVENT_PATH}" ]; then+ GH_AW_SAFEOUTPUTS_EVENT_PATH="${RUNNER_TEMP}/gh-aw/safeoutputs/github_event.json"+ cp "${GITHUB_EVENT_PATH}" "${GH_AW_SAFEOUTPUTS_EVENT_PATH}"+ export GITHUB_EVENT_PATH="${GH_AW_SAFEOUTPUTS_EVENT_PATH}"+ fi# Export gateway environment variables for MCP config and gateway scriptexport MCP_GATEWAY_PORT="8080"@@ -932,22 +962,23 @@ jobs:export MCP_GATEWAY_PAYLOAD_DIR="/tmp/gh-aw/mcp-payloads"mkdir -p "${MCP_GATEWAY_PAYLOAD_DIR}"export MCP_GATEWAY_PAYLOAD_SIZE_THRESHOLD="524288"+ export MCP_GATEWAY_ALLOWED_MOUNT_ROOTS="${GITHUB_WORKSPACE}:rw,${RUNNER_TEMP}/gh-aw:ro,${RUNNER_TEMP}/gh-aw/safeoutputs:rw,/opt:ro,/tmp:rw,/usr/bin/gh:ro"export DEBUG="*"export GH_AW_ENGINE="copilot"MCP_GATEWAY_UID=$(id -u 2>/dev/null || echo '0')MCP_GATEWAY_GID=$(id -g 2>/dev/null || echo '0')source "${RUNNER_TEMP}/gh-aw/actions/resolve_docker_socket_gid.sh"- export MCP_GATEWAY_DOCKER_COMMAND='docker run -i --rm --network bridge -p 127.0.0.1:'"${MCP_GATEWAY_PORT}"':'"${MCP_GATEWAY_PORT}"' --name awmg-mcpg --add-host host.docker.internal:host-gateway --user '"${MCP_GATEWAY_UID}"':'"${MCP_GATEWAY_GID}"' --group-add '"${DOCKER_SOCK_GID}"' -v '"${DOCKER_SOCK_PATH}"':/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 DOCKER_HOST=unix:///var/run/docker.sock -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_POLICY_ALLOW_CREATE_PULL_REQUEST -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 GH_AW_SINK_VISIBILITY -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 RUNNER_TEMP -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 -v '"${RUNNER_TEMP}"'/gh-aw/safeoutputs:'"${RUNNER_TEMP}"'/gh-aw/safeoutputs:rw ghcr.io/github/gh-aw-mcpg:v0.4.8'+ export MCP_GATEWAY_DOCKER_COMMAND='docker run -i --rm --network bridge -p 127.0.0.1:'"${MCP_GATEWAY_PORT}"':'"${MCP_GATEWAY_PORT}"' --name awmg-mcpg --add-host host.docker.internal:host-gateway --user '"${MCP_GATEWAY_UID}"':'"${MCP_GATEWAY_GID}"' --group-add '"${DOCKER_SOCK_GID}"' -v '"${DOCKER_SOCK_PATH}"':/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 DOCKER_HOST=unix:///var/run/docker.sock -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_POLICY_ALLOW_CREATE_PULL_REQUEST -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 GH_AW_SINK_VISIBILITY -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 RUNNER_TEMP -e MCP_GATEWAY_ALLOWED_MOUNT_ROOTS -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 -v '"${RUNNER_TEMP}"'/gh-aw/safeoutputs:'"${RUNNER_TEMP}"'/gh-aw/safeoutputs:rw ghcr.io/github/gh-aw-mcpg:v0.4.10'mkdir -p "$HOME/.copilot"GH_AW_NODE=$(which node 2>/dev/null || command -v node 2>/dev/null || echo node)- cat << GH_AW_MCP_CONFIG_81cc4c61546f2054_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"+ cat << GH_AW_MCP_CONFIG_f62bc53970772047_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"{"mcpServers": {"github": {"type": "stdio",- "container": "ghcr.io/github/github-mcp-server:v1.8.0",+ "container": "ghcr.io/github/github-mcp-server:v1.10.0","env": {"GITHUB_FEATURES": "fields_param","GITHUB_HOST": "${GITHUB_SERVER_URL}",@@ -980,6 +1011,8 @@ jobs:"GH_AW_SAFE_OUTPUTS_CONFIG_PATH": "\${GH_AW_SAFE_OUTPUTS_CONFIG_PATH}","GH_AW_SAFE_OUTPUTS_TOOLS_PATH": "\${GH_AW_SAFE_OUTPUTS_TOOLS_PATH}","GH_AW_POLICY_ALLOW_CREATE_PULL_REQUEST": "\${GH_AW_POLICY_ALLOW_CREATE_PULL_REQUEST}",+ "GITHUB_EVENT_NAME": "\${GITHUB_EVENT_NAME}",+ "GITHUB_EVENT_PATH": "\${GITHUB_EVENT_PATH}","GITHUB_REPOSITORY": "\${GITHUB_REPOSITORY}","GITHUB_SHA": "\${GITHUB_SHA}","GITHUB_TOKEN": "\${GITHUB_TOKEN}",@@ -1004,7 +1037,7 @@ jobs:"startupTimeout": 120}}- GH_AW_MCP_CONFIG_81cc4c61546f2054_EOF+ GH_AW_MCP_CONFIG_f62bc53970772047_EOF- name: Mount MCP servers as CLIsid: mount-mcp-cliscontinue-on-error: true@@ -1015,9 +1048,11 @@ jobs:uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0with:script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io);- const { main } = require('${{ runner.temp }}/gh-aw/actions/mount_mcp_as_cli.cjs');+ const { main } = require(path.join(actionsDir, 'mount_mcp_as_cli.cjs'));await main();- name: Clean credentialscontinue-on-error: true@@ -1033,18 +1068,30 @@ jobs:run: |set -o pipefailprintf '%s' "$(date +%s%3N)" > /tmp/gh-aw/agent_cli_start_ms.txt- trap 'gh_aw_exit_code=$?; mkdir -p /tmp/gh-aw >/dev/null 2>&1 || true; printf "%s" "$gh_aw_exit_code" > /tmp/gh-aw/agent_execution_exit_code.txt || true; rm -f "$HOME/.copilot/settings.json"' EXIT+ trap 'gh_aw_exit_code=$?; mkdir -p /tmp/gh-aw >/dev/null 2>&1 || true; printf "%s" "$gh_aw_exit_code" > /tmp/gh-aw/agent_execution_exit_code.txt || true; rm -f "$HOME/.copilot/settings.json"; if [ "$gh_aw_exit_code" -ne 0 ]; then echo "::error::Agent execution exited with code $gh_aw_exit_code"; fi' EXITmkdir -p "$HOME/.copilot"printf '%s' '{"builtInAgents":{"rubberDuck":false}}' > "$HOME/.copilot/settings.json"export XDG_CONFIG_HOME="$HOME"export GH_AW_MCP_CONFIG="$HOME/.copilot/mcp-config.json"+ GH_AW_COPILOT_SRC="$(command -v copilot 2>/dev/null || true)"+ if [ -z "$GH_AW_COPILOT_SRC" ] || [ ! -x "$GH_AW_COPILOT_SRC" ]; then+ echo "GitHub Copilot CLI executable not found on PATH after installation" >&2+ exit 127+ fi+ GH_AW_COPILOT_BIN="${RUNNER_TEMP}/gh-aw/bin/copilot"+ mkdir -p "${RUNNER_TEMP}/gh-aw/bin"+ if [ "$GH_AW_COPILOT_SRC" != "$GH_AW_COPILOT_BIN" ]; then+ cp "$GH_AW_COPILOT_SRC" "$GH_AW_COPILOT_BIN"+ fi+ chmod 755 "$GH_AW_COPILOT_BIN"+touch /tmp/gh-aw/agent-step-summary.mdGH_AW_NODE_BIN=$(command -v node 2>/dev/null || true)export GH_AW_NODE_BINexport COPILOT_API_KEY="$COPILOT_DUMMY_BYOK"(umask 177 && touch /tmp/gh-aw/agent-stdio.log)GH_AW_MAX_AI_CREDITS="${GH_AW_MAX_AI_CREDITS:-1000}"- printf '%s\n' "{\"\$schema\":\"https://github.com/github/gh-aw-firewall/releases/download/v0.27.44/awf-config.schema.json\",\"network\":{\"allowDomains\":[\"api.business.githubcopilot.com\",\"api.enterprise.githubcopilot.com\",\"api.github.com\",\"api.githubcopilot.com\",\"api.individual.githubcopilot.com\",\"api.snapcraft.io\",\"archive.ubuntu.com\",\"azure.archive.ubuntu.com\",\"crl.geotrust.com\",\"crl.globalsign.com\",\"crl.identrust.com\",\"crl.sectigo.com\",\"crl.thawte.com\",\"crl.usertrust.com\",\"crl.verisign.com\",\"crl3.digicert.com\",\"crl4.digicert.com\",\"crls.ssl.com\",\"github.com\",\"host.docker.internal\",\"json-schema.org\",\"json.schemastore.org\",\"keyserver.ubuntu.com\",\"ocsp.digicert.com\",\"ocsp.geotrust.com\",\"ocsp.globalsign.com\",\"ocsp.identrust.com\",\"ocsp.sectigo.com\",\"ocsp.ssl.com\",\"ocsp.thawte.com\",\"ocsp.usertrust.com\",\"ocsp.verisign.com\",\"packagecloud.io\",\"packages.cloud.google.com\",\"packages.microsoft.com\",\"ppa.launchpad.net\",\"raw.githubusercontent.com\",\"registry.npmjs.org\",\"s.symcb.com\",\"s.symcd.com\",\"security.ubuntu.com\",\"telemetry.enterprise.githubcopilot.com\",\"ts-crl.ws.symantec.com\",\"ts-ocsp.ws.symantec.com\",\"www.googleapis.com\"],\"isolation\":true,\"topologyAttach\":[\"awmg-mcpg\"]},\"apiProxy\":{\"enabled\":true,\"enableTokenSteering\":true,\"maxRuns\":500,\"maxAiCredits\":${GH_AW_MAX_AI_CREDITS},\"maxCacheMisses\":5,\"models\":{\"agent\":[\"sonnet-6x\",\"gpt-5.4\",\"gpt-5.5\",\"gpt-5.6\",\"gpt-5.3\",\"gemini-pro\",\"any\"],\"antigravity\":[\"copilot/antigravity*\",\"google/antigravity*\",\"gemini/antigravity*\"],\"any\":[\"copilot/*\",\"anthropic/*\",\"openai/*\",\"google/*\",\"gemini/*\"],\"auto\":[\"copilot/auto\",\"large\"],\"claude\":[\"agent\"],\"codex\":[\"agent\"],\"coding\":[\"copilot/gpt-5*codex*\",\"openai/gpt-5*codex*\",\"gpt-5-codex\",\"kimi\"],\"computer-use\":[\"copilot/*computer-use*\",\"google/*computer-use*\",\"gemini/*computer-use*\",\"openai/*computer-use*\"],\"copilot\":[\"agent\"],\"deep-research\":[\"copilot/deep-research*\",\"copilot/o3-deep-research*\",\"copilot/o4-mini-deep-research*\",\"google/deep-research*\",\"gemini/deep-research*\",\"openai/o3-deep-research*\",\"openai/o4-mini-deep-research*\"],\"detection\":[\"small\"],\"evals\":[\"small\"],\"fable\":[\"copilot/*fable*\",\"anthropic/*fable*\"],\"gemini\":[\"agent\"],\"gemini-3-flash\":[\"copilot/gemini-3*flash*\",\"google/gemini-3*flash*\",\"gemini/gemini-3*flash*\"],\"gemini-3-pro\":[\"copilot/gemini-3*pro*\",\"google/gemini-3*pro*\",\"google/nano-banana*\",\"gemini/gemini-3*pro*\"],\"gemini-3.1-flash\":[\"copilot/gemini-3.1*flash*\",\"google/gemini-3.1*flash*\",\"gemini/gemini-3.1*flash*\"],\"gemini-3.1-pro\":[\"copilot/gemini-3.1*pro*\",\"google/gemini-3.1*pro*\",\"gemini/gemini-3.1*pro*\"],\"gemini-3.5-flash\":[\"copilot/gemini-3.5*flash*\",\"google/gemini-3.5*flash*\",\"gemini/gemini-3.5*flash*\"],\"gemini-3.6-flash\":[\"copilot/gemini-3.6*flash*\",\"google/gemini-3.6*flash*\",\"gemini/gemini-3.6*flash*\"],\"gemini-flash\":[\"copilot/gemini-*flash*\",\"google/gemini-*flash*\",\"gemini/gemini-*flash*\"],\"gemini-flash-lite\":[\"copilot/gemini-*flash*lite*\",\"google/gemini-*flash*lite*\",\"gemini/gemini-*flash*lite*\"],\"gemini-omni\":[\"copilot/gemini-omni*\",\"google/gemini-omni*\",\"gemini/gemini-omni*\"],\"gemini-pro\":[\"copilot/gemini-*pro*\",\"google/gemini-*pro*\",\"gemini/gemini-*pro*\"],\"gemma\":[\"copilot/gemma*\",\"google/gemma*\",\"gemini/gemma*\"],\"gpt-5\":[\"copilot/gpt-5*\",\"openai/gpt-5*\"],\"gpt-5-codex\":[\"copilot/gpt-5*codex*\",\"openai/gpt-5*codex*\"],\"gpt-5-mini\":[\"copilot/gpt-5*mini*\",\"openai/gpt-5*mini*\"],\"gpt-5-nano\":[\"copilot/gpt-5*nano*\",\"openai/gpt-5*nano*\"],\"gpt-5-pro\":[\"copilot/gpt-5*pro*\",\"openai/gpt-5*pro*\"],\"gpt-5.1\":[\"copilot/gpt-5.1*\",\"openai/gpt-5.1*\"],\"gpt-5.2\":[\"copilot/gpt-5.2*\",\"openai/gpt-5.2*\"],\"gpt-5.3\":[\"copilot/gpt-5.3*\",\"openai/gpt-5.3*\"],\"gpt-5.4\":[\"copilot/gpt-5.4*\",\"openai/gpt-5.4*\"],\"gpt-5.5\":[\"copilot/gpt-5.5*\",\"openai/gpt-5.5*\"],\"gpt-5.6\":[\"copilot/gpt-5.6*\",\"openai/gpt-5.6*\"],\"grok\":[\"copilot/*grok*\",\"openai/*grok*\"],\"haiku\":[\"copilot/*haiku*\",\"anthropic/*haiku*\"],\"image-generation\":[\"copilot/gpt-image*\",\"openai/gpt-image*\",\"openai/chatgpt-image*\",\"copilot/gemini-*image*\",\"google/gemini-*image*\",\"gemini/gemini-*image*\",\"google/imagen*\"],\"kimi\":[\"copilot/kimi*\",\"openai/kimi*\"],\"kiwi\":[\"copilot/kiwi*\",\"openai/kiwi*\"],\"large\":[\"sonnet\",\"gpt-5-pro\",\"gpt-5\",\"gemini-pro\"],\"lyria\":[\"google/lyria*\",\"gemini/lyria*\",\"copilot/lyria*\"],\"mai-code\":[\"copilot/MAI-Code*\",\"copilot/mai-code*\",\"openai/MAI-Code*\"],\"mai-code-1-flash-picker\":[\"copilot/MAI-Code-1-Flash-picker*\",\"copilot/mai-code-1-flash-picker*\",\"openai/MAI-Code-1-Flash-picker*\"],\"mini\":[\"haiku\",\"gpt-5-mini\",\"gpt-5-nano\",\"gemini-flash-lite\"],\"nano-banana\":[\"copilot/nano-banana*\",\"google/nano-banana*\",\"gemini/nano-banana*\"],\"opus\":[\"copilot/*opus*\",\"anthropic/*opus*\"],\"opusplan\":[\"opus?effort=high\"],\"raptor-mini\":[\"copilot/raptor*\",\"openai/raptor*\"],\"reasoning\":[\"copilot/o1*\",\"copilot/o3*\",\"copilot/o4*\",\"openai/o1*\",\"openai/o3*\",\"openai/o4*\"],\"robotics\":[\"copilot/*robotics*\",\"google/*robotics*\",\"gemini/*robotics*\"],\"small\":[\"mini\"],\"small-agent\":[\"haiku\",\"gpt-5-mini\",\"gemini-flash\"],\"sonnet\":[\"copilot/*sonnet*\",\"anthropic/*sonnet*\"],\"sonnet-6x\":[\"copilot/*sonnet-4.5*\",\"copilot/*sonnet-4.6*\",\"copilot/*sonnet-5*\",\"copilot/*sonnet-4-5-*\",\"anthropic/*sonnet-4-5-*\",\"copilot/*sonnet-4-6*\",\"anthropic/*sonnet-4-6*\",\"anthropic/*sonnet-5*\"],\"summarization\":[\"haiku\",\"gpt-5-mini\",\"gemini-flash-lite\",\"mini\"],\"veo\":[\"google/veo*\",\"gemini/veo*\"],\"vision\":[\"copilot/gemini-*image*\",\"google/gemini-*image*\",\"gemini/gemini-*image*\",\"copilot/gemini-*flash*\",\"google/gemini-*flash*\",\"gemini/gemini-*flash*\"]}},\"container\":{\"imageTag\":\"0.27.44,squid=sha256:83e48bbe12c634be8c228a576832fe45f66c529ac3659db92bddbcf2eeb6d627,agent=sha256:0d727725c737b58c7bdf51f640cffb928385ec46517e0917c7f1a02f1bada8b4,api-proxy=sha256:b50fbadba138f6e9aba94aca09711335c489bb3b15861220cb66f6092e042dc7,cli-proxy=sha256:c064d15974f7c933ec7d3f7b4038f4fd203547b3154bdc821afd379144887eff\"},\"logging\":{\"proxyLogsDir\":\"/tmp/gh-aw/sandbox/firewall/logs\",\"auditDir\":\"/tmp/gh-aw/sandbox/firewall/audit\"}}" > "${RUNNER_TEMP}/gh-aw/awf-config.json"+ printf '%s\n' "{\"\$schema\":\"https://github.com/github/gh-aw-firewall/releases/download/v0.28.4/awf-config.schema.json\",\"network\":{\"allowDomains\":[\"api.business.githubcopilot.com\",\"api.enterprise.githubcopilot.com\",\"api.github.com\",\"api.githubcopilot.com\",\"api.individual.githubcopilot.com\",\"api.snapcraft.io\",\"archive.ubuntu.com\",\"azure.archive.ubuntu.com\",\"crl.geotrust.com\",\"crl.globalsign.com\",\"crl.identrust.com\",\"crl.sectigo.com\",\"crl.thawte.com\",\"crl.usertrust.com\",\"crl.verisign.com\",\"crl3.digicert.com\",\"crl4.digicert.com\",\"crls.ssl.com\",\"github.com\",\"host.docker.internal\",\"json-schema.org\",\"json.schemastore.org\",\"keyserver.ubuntu.com\",\"ocsp.digicert.com\",\"ocsp.geotrust.com\",\"ocsp.globalsign.com\",\"ocsp.identrust.com\",\"ocsp.sectigo.com\",\"ocsp.ssl.com\",\"ocsp.thawte.com\",\"ocsp.usertrust.com\",\"ocsp.verisign.com\",\"packagecloud.io\",\"packages.cloud.google.com\",\"packages.microsoft.com\",\"ppa.launchpad.net\",\"raw.githubusercontent.com\",\"s.symcb.com\",\"s.symcd.com\",\"security.ubuntu.com\",\"telemetry.enterprise.githubcopilot.com\",\"ts-crl.ws.symantec.com\",\"ts-ocsp.ws.symantec.com\",\"www.googleapis.com\"],\"isolation\":true,\"topologyAttach\":[\"awmg-mcpg\"]},\"apiProxy\":{\"enabled\":true,\"enableTokenSteering\":true,\"maxRuns\":500,\"maxAiCredits\":${GH_AW_MAX_AI_CREDITS},\"maxCacheMisses\":5,\"models\":{\"agent\":[\"sonnet-6x\",\"gpt-5.4\",\"gpt-5.5\",\"gpt-5.6\",\"gpt-5.3\",\"gemini-pro\",\"any\"],\"antigravity\":[\"copilot/antigravity*\",\"google/antigravity*\",\"gemini/antigravity*\"],\"any\":[\"copilot/*\",\"anthropic/*\",\"openai/*\",\"google/*\",\"gemini/*\"],\"auto\":[\"copilot/auto\",\"large\"],\"claude\":[\"agent\"],\"codex\":[\"agent\"],\"coding\":[\"copilot/gpt-5*codex*\",\"openai/gpt-5*codex*\",\"gpt-5-codex\",\"kimi\"],\"computer-use\":[\"copilot/*computer-use*\",\"google/*computer-use*\",\"gemini/*computer-use*\",\"openai/*computer-use*\"],\"copilot\":[\"agent\"],\"deep-research\":[\"copilot/deep-research*\",\"copilot/o3-deep-research*\",\"copilot/o4-mini-deep-research*\",\"google/deep-research*\",\"gemini/deep-research*\",\"openai/o3-deep-research*\",\"openai/o4-mini-deep-research*\"],\"detection\":[\"small\"],\"evals\":[\"small\"],\"fable\":[\"copilot/*fable*\",\"anthropic/*fable*\"],\"gemini\":[\"agent\"],\"gemini-3-flash\":[\"copilot/gemini-3*flash*\",\"google/gemini-3*flash*\",\"gemini/gemini-3*flash*\"],\"gemini-3-pro\":[\"copilot/gemini-3*pro*\",\"google/gemini-3*pro*\",\"google/nano-banana*\",\"gemini/gemini-3*pro*\"],\"gemini-3.1-flash\":[\"copilot/gemini-3.1*flash*\",\"google/gemini-3.1*flash*\",\"gemini/gemini-3.1*flash*\"],\"gemini-3.1-pro\":[\"copilot/gemini-3.1*pro*\",\"google/gemini-3.1*pro*\",\"gemini/gemini-3.1*pro*\"],\"gemini-3.5-flash\":[\"copilot/gemini-3.5*flash*\",\"google/gemini-3.5*flash*\",\"gemini/gemini-3.5*flash*\"],\"gemini-3.6-flash\":[\"copilot/gemini-3.6*flash*\",\"google/gemini-3.6*flash*\",\"gemini/gemini-3.6*flash*\"],\"gemini-3.7-flash\":[\"copilot/gemini-3.7*flash*\",\"google/gemini-3.7*flash*\",\"gemini/gemini-3.7*flash*\"],\"gemini-flash\":[\"copilot/gemini-*flash*\",\"google/gemini-*flash*\",\"gemini/gemini-*flash*\"],\"gemini-flash-lite\":[\"copilot/gemini-*flash*lite*\",\"google/gemini-*flash*lite*\",\"gemini/gemini-*flash*lite*\"],\"gemini-omni\":[\"copilot/gemini-omni*\",\"google/gemini-omni*\",\"gemini/gemini-omni*\"],\"gemini-pro\":[\"copilot/gemini-*pro*\",\"google/gemini-*pro*\",\"gemini/gemini-*pro*\"],\"gemma\":[\"copilot/gemma*\",\"google/gemma*\",\"gemini/gemma*\"],\"gpt-5\":[\"copilot/gpt-5*\",\"openai/gpt-5*\"],\"gpt-5-codex\":[\"copilot/gpt-5*codex*\",\"openai/gpt-5*codex*\"],\"gpt-5-mini\":[\"copilot/gpt-5*mini*\",\"openai/gpt-5*mini*\"],\"gpt-5-nano\":[\"copilot/gpt-5*nano*\",\"openai/gpt-5*nano*\"],\"gpt-5-pro\":[\"copilot/gpt-5*pro*\",\"openai/gpt-5*pro*\"],\"gpt-5.1\":[\"copilot/gpt-5.1*\",\"openai/gpt-5.1*\"],\"gpt-5.2\":[\"copilot/gpt-5.2*\",\"openai/gpt-5.2*\"],\"gpt-5.3\":[\"copilot/gpt-5.3*\",\"openai/gpt-5.3*\"],\"gpt-5.4\":[\"copilot/gpt-5.4*\",\"openai/gpt-5.4*\"],\"gpt-5.5\":[\"copilot/gpt-5.5*\",\"openai/gpt-5.5*\"],\"gpt-5.6\":[\"copilot/gpt-5.6*\",\"openai/gpt-5.6*\"],\"grok\":[\"copilot/*grok*\",\"openai/*grok*\"],\"haiku\":[\"copilot/*haiku*\",\"anthropic/*haiku*\"],\"image-generation\":[\"copilot/gpt-image*\",\"openai/gpt-image*\",\"openai/chatgpt-image*\",\"copilot/gemini-*image*\",\"google/gemini-*image*\",\"gemini/gemini-*image*\",\"google/imagen*\"],\"kimi\":[\"copilot/kimi*\",\"openai/kimi*\"],\"kiwi\":[\"copilot/kiwi*\",\"openai/kiwi*\"],\"large\":[\"sonnet\",\"gpt-5-pro\",\"gpt-5\",\"gemini-pro\"],\"lyria\":[\"google/lyria*\",\"gemini/lyria*\",\"copilot/lyria*\"],\"mai-code\":[\"copilot/MAI-Code*\",\"copilot/mai-code*\",\"openai/MAI-Code*\"],\"mai-code-1-flash-picker\":[\"copilot/MAI-Code-1-Flash-picker*\",\"copilot/mai-code-1-flash-picker*\",\"openai/MAI-Code-1-Flash-picker*\"],\"mini\":[\"haiku\",\"gpt-5-mini\",\"gpt-5-nano\",\"gemini-flash-lite\"],\"nano-banana\":[\"copilot/nano-banana*\",\"google/nano-banana*\",\"gemini/nano-banana*\"],\"opus\":[\"copilot/*opus*\",\"anthropic/*opus*\"],\"opusplan\":[\"opus?effort=high\"],\"raptor-mini\":[\"copilot/raptor*\",\"openai/raptor*\"],\"reasoning\":[\"copilot/o1*\",\"copilot/o3*\",\"copilot/o4*\",\"openai/o1*\",\"openai/o3*\",\"openai/o4*\"],\"robotics\":[\"copilot/*robotics*\",\"google/*robotics*\",\"gemini/*robotics*\"],\"small\":[\"mini\"],\"small-agent\":[\"haiku\",\"gpt-5-mini\",\"gemini-flash\"],\"sonnet\":[\"copilot/*sonnet*\",\"anthropic/*sonnet*\"],\"sonnet-6x\":[\"copilot/*sonnet-4.5*\",\"copilot/*sonnet-4.6*\",\"copilot/*sonnet-5*\",\"copilot/*sonnet-4-5-*\",\"anthropic/*sonnet-4-5-*\",\"copilot/*sonnet-4-6*\",\"anthropic/*sonnet-4-6*\",\"anthropic/*sonnet-5*\"],\"summarization\":[\"haiku\",\"gpt-5-mini\",\"gemini-flash-lite\",\"mini\"],\"veo\":[\"google/veo*\",\"gemini/veo*\"],\"vision\":[\"copilot/gemini-*image*\",\"google/gemini-*image*\",\"gemini/gemini-*image*\",\"copilot/gemini-*flash*\",\"google/gemini-*flash*\",\"gemini/gemini-*flash*\"]}},\"container\":{\"imageTag\":\"0.28.4,squid=sha256:35953d0beac18f642aa0bc98bb726a85288539b1fc630c16e94da33300058258,agent=sha256:8f18587981eff7e6291784200a88a7191d23bfd8f5723db848c640d6b4e88e46,api-proxy=sha256:64e668297d1b9d83ee102626e104c054ac2cf5cfd7225bf6e144f86962229882,cli-proxy=sha256:7ad9113203642c5b12303b97e221fc6b5dd0fb0655c09a2eba9d5c6fa3201a3b\"},\"logging\":{\"proxyLogsDir\":\"/tmp/gh-aw/sandbox/firewall/logs\",\"auditDir\":\"/tmp/gh-aw/sandbox/firewall/audit\"}}" > "${RUNNER_TEMP}/gh-aw/awf-config.json"cp "${RUNNER_TEMP}/gh-aw/awf-config.json" /tmp/gh-aw/awf-config.jsonexport GH_AW_MODELS_JSON_PATH="/tmp/gh-aw/models.json"GH_AW_DOCKER_HOST=""@@ -1062,8 +1109,8 @@ jobs:fifi# shellcheck disable=SC1003,SC2016,SC2086- awf --config "${RUNNER_TEMP}/gh-aw/awf-config.json" --container-workdir "${GITHUB_WORKSPACE}" --mount "${RUNNER_TEMP}/gh-aw:${RUNNER_TEMP}/gh-aw:ro" --mount "${RUNNER_TEMP}/gh-aw:/host${RUNNER_TEMP}/gh-aw:ro" ${GH_AW_TOOL_CACHE_MOUNT:+--mount "$GH_AW_TOOL_CACHE_MOUNT"} ${GH_AW_DOCKER_HOST:+--docker-host "$GH_AW_DOCKER_HOST"} --env-all --exclude-env ACTIONS_ID_TOKEN_REQUEST_TOKEN --exclude-env ACTIONS_ID_TOKEN_REQUEST_URL --exclude-env COPILOT_GITHUB_TOKEN --exclude-env GITHUB_MCP_SERVER_TOKEN --exclude-env MCP_GATEWAY_API_KEY --log-level info --skip-pull \- -- /bin/bash -c 'set +o histexpand; export PATH="${RUNNER_TEMP}/gh-aw/mcp-cli/bin:$PATH" && : "${RUNNER_TOOL_CACHE:?RUNNER_TOOL_CACHE must be set}"; GH_AW_TOOL_CACHE="$RUNNER_TOOL_CACHE"; export PATH="$(find "$GH_AW_TOOL_CACHE" -maxdepth 5 -type d -name bin 2>/dev/null | tr '\''\n'\'' '\'':'\'')$PATH"; [ -n "$GOROOT" ] && export PATH="$GOROOT/bin:$PATH" || true; [ -n "$ERLANG_HOME" ] && export PATH="$ERLANG_HOME/bin:$PATH" || true && GH_AW_NODE_EXEC="${GH_AW_NODE_BIN:-}"; if [ -z "$GH_AW_NODE_EXEC" ] || [ ! -x "$GH_AW_NODE_EXEC" ]; then GH_AW_NODE_EXEC="$(command -v node 2>/dev/null || true)"; fi; if [ -z "$GH_AW_NODE_EXEC" ]; then echo "node runtime missing on this runner — check runtimes.node in workflow YAML" >&2; exit 127; fi; GH_AW_NPM_GLOBAL_ROOT="$(npm root -g 2>/dev/null || true)"; if [ -n "$GH_AW_NPM_GLOBAL_ROOT" ]; then export NODE_PATH="${GH_AW_NPM_GLOBAL_ROOT}${NODE_PATH:+:${NODE_PATH}}"; fi; "$GH_AW_NODE_EXEC" ${RUNNER_TEMP}/gh-aw/actions/copilot_harness.cjs /usr/local/bin/copilot --add-dir /tmp/gh-aw/ --log-level all --log-dir /tmp/gh-aw/sandbox/agent/logs/ --disable-builtin-mcps --no-ask-user --allow-all-tools --allow-all-paths --add-dir "${GITHUB_WORKSPACE}" --prompt-file /tmp/gh-aw/aw-prompts/prompt.txt' 2>&1 | tee -a /tmp/gh-aw/agent-stdio.log+ awf --config "${RUNNER_TEMP}/gh-aw/awf-config.json" --container-workdir "${GITHUB_WORKSPACE}" --mount "${RUNNER_TEMP}/gh-aw:${RUNNER_TEMP}/gh-aw:ro" --mount "${RUNNER_TEMP}/gh-aw:/host${RUNNER_TEMP}/gh-aw:ro" ${GH_AW_TOOL_CACHE_MOUNT:+--mount "$GH_AW_TOOL_CACHE_MOUNT"} ${GH_AW_DOCKER_HOST:+--docker-host "$GH_AW_DOCKER_HOST"} --env-all --exclude-env ACTIONS_ID_TOKEN_REQUEST_TOKEN --exclude-env ACTIONS_ID_TOKEN_REQUEST_URL --exclude-env COPILOT_GITHUB_TOKEN --exclude-env GITHUB_MCP_SERVER_TOKEN --exclude-env MCP_GATEWAY_API_KEY --mount /tmp/gh-aw:/tmp/gh-aw:rw --log-level info --skip-pull \+ -- /bin/bash -c 'set +o histexpand; export PATH="${RUNNER_TEMP}/gh-aw/mcp-cli/bin:$PATH" && : "${RUNNER_TOOL_CACHE:?RUNNER_TOOL_CACHE must be set}"; GH_AW_TOOL_CACHE="$RUNNER_TOOL_CACHE"; export PATH="$(find "$GH_AW_TOOL_CACHE" -maxdepth 5 -type d -name bin 2>/dev/null | tr '\''\n'\'' '\'':'\'')$PATH"; [ -n "$GOROOT" ] && export PATH="$GOROOT/bin:$PATH" || true; [ -n "$ERLANG_HOME" ] && export PATH="$ERLANG_HOME/bin:$PATH" || true && GH_AW_NODE_EXEC="${GH_AW_NODE_BIN:-}"; if [ -z "$GH_AW_NODE_EXEC" ] || [ ! -x "$GH_AW_NODE_EXEC" ]; then GH_AW_NODE_EXEC="$(command -v node 2>/dev/null || true)"; fi; if [ -z "$GH_AW_NODE_EXEC" ]; then echo "node runtime missing on this runner — check runtimes.node in workflow YAML" >&2; exit 127; fi; GH_AW_NPM_GLOBAL_ROOT="$(npm root -g 2>/dev/null || true)"; if [ -n "$GH_AW_NPM_GLOBAL_ROOT" ]; then export NODE_PATH="${GH_AW_NPM_GLOBAL_ROOT}${NODE_PATH:+:${NODE_PATH}}"; fi; "$GH_AW_NODE_EXEC" "${RUNNER_TEMP}/gh-aw/actions/copilot_harness.cjs" "${RUNNER_TEMP}/gh-aw/bin/copilot" --add-dir /tmp/gh-aw/ --log-level all --log-dir /tmp/gh-aw/sandbox/agent/logs/ --disable-builtin-mcps --no-ask-user --allow-all-tools --allow-all-paths --add-dir "${GITHUB_WORKSPACE}" --prompt-file /tmp/gh-aw/aw-prompts/prompt.txt' 2>&1 | tee -a /tmp/gh-aw/agent-stdio.logenv:AWF_REFLECT_ENABLED: 1COPILOT_AGENT_RUNNER_TYPE: STANDALONE@@ -1077,7 +1124,7 @@ jobs:GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txtGH_AW_SAFE_OUTPUTS: ${{ steps.set-runtime-paths.outputs.GH_AW_SAFE_OUTPUTS }}GH_AW_TIMEOUT_MINUTES: 20- GH_AW_VERSION: v0.85.4+ GH_AW_VERSION: v0.87.4GITHUB_API_URL: ${{ github.api_url }}GITHUB_AW: trueGITHUB_COPILOT_INTEGRATION_ID: agentic-workflows@@ -1097,7 +1144,18 @@ jobs:if: always()id: detect-agent-errorscontinue-on-error: true- run: node "${RUNNER_TEMP}/gh-aw/actions/detect_agent_errors.cjs"+ env:+ GH_AW_AGENTIC_EXECUTION_OUTCOME: ${{ steps.agentic_execution.outcome }}+ GH_AW_ENGINE_STEP_TIMEOUT_MINUTES: 20+ uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0+ with:+ script: |+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));+ setupGlobals(core, github, context, exec, io, getOctokit);+ const { main } = require(path.join(actionsDir, 'detect_agent_errors.cjs'));+ await main();- name: Configure Git credentialsenv:GITHUB_REPOSITORY: ${{ github.repository }}@@ -1122,9 +1180,11 @@ jobs:uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0with:script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/redact_secrets.cjs');+ const { main } = require(path.join(actionsDir, 'redact_secrets.cjs'));await main();env:GH_AW_SECRET_NAMES: 'COPILOT_GITHUB_TOKEN,GH_AW_GITHUB_MCP_SERVER_TOKEN,GH_AW_GITHUB_TOKEN,GITHUB_TOKEN'@@ -1148,14 +1208,16 @@ jobs:uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:GH_AW_SAFE_OUTPUTS: ${{ steps.set-runtime-paths.outputs.GH_AW_SAFE_OUTPUTS }}- GH_AW_ALLOWED_DOMAINS: "api.business.githubcopilot.com,api.enterprise.githubcopilot.com,api.github.com,api.githubcopilot.com,api.individual.githubcopilot.com,api.snapcraft.io,archive.ubuntu.com,azure.archive.ubuntu.com,crl.geotrust.com,crl.globalsign.com,crl.identrust.com,crl.sectigo.com,crl.thawte.com,crl.usertrust.com,crl.verisign.com,crl3.digicert.com,crl4.digicert.com,crls.ssl.com,github.com,host.docker.internal,json-schema.org,json.schemastore.org,keyserver.ubuntu.com,ocsp.digicert.com,ocsp.geotrust.com,ocsp.globalsign.com,ocsp.identrust.com,ocsp.sectigo.com,ocsp.ssl.com,ocsp.thawte.com,ocsp.usertrust.com,ocsp.verisign.com,packagecloud.io,packages.cloud.google.com,packages.microsoft.com,ppa.launchpad.net,raw.githubusercontent.com,registry.npmjs.org,s.symcb.com,s.symcd.com,security.ubuntu.com,telemetry.enterprise.githubcopilot.com,ts-crl.ws.symantec.com,ts-ocsp.ws.symantec.com,www.googleapis.com"+ GH_AW_ALLOWED_DOMAINS: "api.business.githubcopilot.com,api.enterprise.githubcopilot.com,api.github.com,api.githubcopilot.com,api.individual.githubcopilot.com,api.snapcraft.io,archive.ubuntu.com,azure.archive.ubuntu.com,crl.geotrust.com,crl.globalsign.com,crl.identrust.com,crl.sectigo.com,crl.thawte.com,crl.usertrust.com,crl.verisign.com,crl3.digicert.com,crl4.digicert.com,crls.ssl.com,github.com,host.docker.internal,json-schema.org,json.schemastore.org,keyserver.ubuntu.com,ocsp.digicert.com,ocsp.geotrust.com,ocsp.globalsign.com,ocsp.identrust.com,ocsp.sectigo.com,ocsp.ssl.com,ocsp.thawte.com,ocsp.usertrust.com,ocsp.verisign.com,packagecloud.io,packages.cloud.google.com,packages.microsoft.com,ppa.launchpad.net,raw.githubusercontent.com,s.symcb.com,s.symcd.com,security.ubuntu.com,telemetry.enterprise.githubcopilot.com,ts-crl.ws.symantec.com,ts-ocsp.ws.symantec.com,www.googleapis.com"GITHUB_SERVER_URL: ${{ github.server_url }}GITHUB_API_URL: ${{ github.api_url }}with:script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/collect_ndjson_output.cjs');+ const { main } = require(path.join(actionsDir, 'collect_ndjson_output.cjs'));await main();- name: Parse agent logs for step summaryif: always()@@ -1165,9 +1227,11 @@ jobs:GH_AW_SAFE_OUTPUTS: ${{ steps.set-runtime-paths.outputs.GH_AW_SAFE_OUTPUTS }}with:script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/parse_copilot_log.cjs');+ const { main } = require(path.join(actionsDir, 'parse_copilot_log.cjs'));await main();- name: Parse MCP Gateway logs for step summaryif: always()@@ -1175,9 +1239,11 @@ jobs:uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0with:script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/parse_mcp_gateway_log.cjs');+ const { main } = require(path.join(actionsDir, 'parse_mcp_gateway_log.cjs'));await main();- name: Print firewall logsif: always()@@ -1191,9 +1257,11 @@ jobs:uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0with:script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/parse_token_usage.cjs');+ const { main } = require(path.join(actionsDir, 'parse_token_usage.cjs'));await main();- name: Print AWF reflect summaryif: always()@@ -1201,9 +1269,11 @@ jobs:uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0with:script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/awf_reflect_summary.cjs');+ const { main } = require(path.join(actionsDir, 'awf_reflect_summary.cjs'));await main();- name: Write agent output placeholder if missingif: always()@@ -1237,6 +1307,18 @@ jobs:/tmp/gh-aw/repo-memory/default/mq/patternsretention-days: 90+ # Small dedicated copy of the agent output so safe-output processing+ # survives a failed or timed-out upload of the larger agent artifact+ - name: Upload agent output fallback artifact+ if: always()+ continue-on-error: true+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1+ with:+ name: agent-output-fallback+ path: |+ /tmp/gh-aw/agent_output.json+ /tmp/gh-aw/safeoutputs.jsonl+ if-no-files-found: ignore- name: Upload agent artifactsif: always()continue-on-error: true@@ -1296,7 +1378,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@2709137ea6c5b0e19aa621454dc643ea8dc526b1 # v0.85.4+ uses: github/gh-aw-actions/setup@ea4b911d44a5336c74325a122a5fd9110b45ff06 # v0.87.4with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -1305,15 +1387,16 @@ jobs:env:GH_AW_SETUP_WORKFLOW_NAME: "CI Failure Doctor — Merge Queue"GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor-mq.lock.yml@${{ github.ref }}- GH_AW_INFO_VERSION: "1.0.78"- GH_AW_INFO_AWF_VERSION: "v0.27.44"+ GH_AW_INFO_VERSION: "1.0.80"+ GH_AW_INFO_AWF_VERSION: "v0.28.4"GH_AW_INFO_ENGINE_ID: "copilot"- name: Download agent output artifactid: download-agent-outputcontinue-on-error: trueuses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1with:- name: agent+ pattern: "{agent,agent-output-fallback}"+ merge-multiple: truepath: /tmp/gh-aw/- name: Setup agent output environment variableid: setup-agent-output-env@@ -1321,7 +1404,16 @@ jobs:run: |mkdir -p /tmp/gh-aw/find "/tmp/gh-aw/" -type f -print- echo "GH_AW_AGENT_OUTPUT=/tmp/gh-aw/agent_output.json" >> "$GITHUB_OUTPUT"+ if [ -f "/tmp/gh-aw/agent_output.json" ]; then+ echo "GH_AW_AGENT_OUTPUT=/tmp/gh-aw/agent_output.json" >> "$GITHUB_OUTPUT"+ fi+ - name: Download detection artifact+ id: download-detection-artifact+ continue-on-error: true+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1+ with:+ name: detection+ path: /tmp/gh-aw/threat-detection/- name: Download Safe Outputs Items Manifestid: download-safe-outputs-manifestif: always()@@ -1369,9 +1461,11 @@ jobs:with:github-token: ${{ github.token }}script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context);- const { main } = require('${{ runner.temp }}/gh-aw/actions/write_daily_aic_usage_cache.cjs');+ const { main } = require(path.join(actionsDir, 'write_daily_aic_usage_cache.cjs'));await main();- name: Save daily AIC usage cacheid: save-daily-aic-cache@@ -1409,9 +1503,11 @@ jobs:with:github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/handle_noop_message.cjs');+ const { main } = require(path.join(actionsDir, 'handle_noop_message.cjs'));await main();- name: Log detection runid: detection_runs@@ -1426,9 +1522,11 @@ jobs:with:github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/handle_detection_runs.cjs');+ const { main } = require(path.join(actionsDir, 'handle_detection_runs.cjs'));await main();- name: Record missing toolid: missing_tool@@ -1441,9 +1539,11 @@ jobs:with:github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/missing_tool.cjs');+ const { main } = require(path.join(actionsDir, 'missing_tool.cjs'));await main();- name: Record incompleteid: report_incomplete@@ -1456,9 +1556,11 @@ jobs:with:github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/report_incomplete_handler.cjs');+ const { main } = require(path.join(actionsDir, 'report_incomplete_handler.cjs'));await main();- name: Handle agent failureid: handle_agent_failure@@ -1490,6 +1592,7 @@ jobs:GH_AW_MAX_CACHE_MISSES_EXCEEDED: ${{ needs.agent.outputs.max_cache_misses_exceeded }}GH_AW_MISSING_MODEL_PRICING_ERROR: ${{ needs.agent.outputs.missing_model_pricing_error }}GH_AW_MISSING_MODEL_PRICING_MODEL_NAME: ${{ needs.agent.outputs.missing_model_pricing_model_name }}+ GH_AW_SHELL_EXPANSION_GUARD_REJECTED: ${{ needs.agent.outputs.shell_expansion_guard_rejected }}GH_AW_ENGINE_API_HOSTS: "api.enterprise.githubcopilot.com,api.githubcopilot.com,api.business.githubcopilot.com,api.individual.githubcopilot.com"GH_AW_LOCKDOWN_CHECK_FAILED: ${{ needs.activation.outputs.lockdown_check_failed }}GH_AW_OAUTH_TOKEN_CHECK_FAILED: ${{ needs.activation.outputs.oauth_token_check_failed }}@@ -1509,9 +1612,11 @@ jobs:with:github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/handle_agent_failure.cjs');+ const { main } = require(path.join(actionsDir, 'handle_agent_failure.cjs'));await main();- name: Report failed jobsid: report_failed_jobs@@ -1526,9 +1631,11 @@ jobs:with:github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/report_failed_jobs.cjs');+ const { main } = require(path.join(actionsDir, 'report_failed_jobs.cjs'));await main();detection:@@ -1549,7 +1656,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@2709137ea6c5b0e19aa621454dc643ea8dc526b1 # v0.85.4+ uses: github/gh-aw-actions/setup@ea4b911d44a5336c74325a122a5fd9110b45ff06 # v0.87.4with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -1558,15 +1665,22 @@ jobs:env:GH_AW_SETUP_WORKFLOW_NAME: "CI Failure Doctor — Merge Queue"GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor-mq.lock.yml@${{ github.ref }}- GH_AW_INFO_VERSION: "1.0.78"- GH_AW_INFO_AWF_VERSION: "v0.27.44"+ GH_AW_INFO_VERSION: "1.0.80"+ GH_AW_INFO_AWF_VERSION: "v0.28.4"GH_AW_INFO_ENGINE_ID: "copilot"+ - name: Download activation artifact+ continue-on-error: true+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1+ with:+ name: activation+ path: /tmp/gh-aw- name: Download agent output artifactid: download-agent-outputcontinue-on-error: trueuses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1with:- name: agent+ pattern: "{agent,agent-output-fallback}"+ merge-multiple: truepath: /tmp/gh-aw/- name: Setup agent output environment variableid: setup-agent-output-env@@ -1574,7 +1688,9 @@ jobs:run: |mkdir -p /tmp/gh-aw/find "/tmp/gh-aw/" -type f -print- echo "GH_AW_AGENT_OUTPUT=/tmp/gh-aw/agent_output.json" >> "$GITHUB_OUTPUT"+ if [ -f "/tmp/gh-aw/agent_output.json" ]; then+ echo "GH_AW_AGENT_OUTPUT=/tmp/gh-aw/agent_output.json" >> "$GITHUB_OUTPUT"+ fi- name: Checkout repository for patch contextif: needs.agent.outputs.has_patch == 'true'uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1@@ -1586,7 +1702,7 @@ jobs:rm -rf /tmp/gh-aw/sandbox/firewall/logsrm -rf /tmp/gh-aw/sandbox/firewall/audit- name: Download container images- run: bash "${RUNNER_TEMP}/gh-aw/actions/download_docker_images.sh" ghcr.io/github/gh-aw-firewall/agent:0.27.44@sha256:0d727725c737b58c7bdf51f640cffb928385ec46517e0917c7f1a02f1bada8b4 ghcr.io/github/gh-aw-firewall/api-proxy:0.27.44@sha256:b50fbadba138f6e9aba94aca09711335c489bb3b15861220cb66f6092e042dc7 ghcr.io/github/gh-aw-firewall/squid:0.27.44@sha256:83e48bbe12c634be8c228a576832fe45f66c529ac3659db92bddbcf2eeb6d627+ run: bash "${RUNNER_TEMP}/gh-aw/actions/download_docker_images.sh" ghcr.io/github/gh-aw-firewall/agent:0.28.4@sha256:8f18587981eff7e6291784200a88a7191d23bfd8f5723db848c640d6b4e88e46 ghcr.io/github/gh-aw-firewall/api-proxy:0.28.4@sha256:64e668297d1b9d83ee102626e104c054ac2cf5cfd7225bf6e144f86962229882 ghcr.io/github/gh-aw-firewall/squid:0.28.4@sha256:35953d0beac18f642aa0bc98bb726a85288539b1fc630c16e94da33300058258- name: Check if detection neededid: detection_guardif: always()@@ -1610,25 +1726,7 @@ jobs:- name: Prepare threat detection filesif: always() && steps.detection_guard.outputs.run_detection == 'true'run: |- mkdir -p /tmp/gh-aw/threat-detection/aw-prompts- rm -f /tmp/gh-aw/agent_usage.json- cp /tmp/gh-aw/aw-prompts/prompt.txt /tmp/gh-aw/threat-detection/aw-prompts/prompt.txt 2>/dev/null || true- if [ ! -s /tmp/gh-aw/threat-detection/aw-prompts/prompt.txt ]; then- echo "::warning::ERR_VALIDATION: Missing or empty detection context prompt at /tmp/gh-aw/threat-detection/aw-prompts/prompt.txt. Ensure the agent artifact includes /tmp/gh-aw/aw-prompts/prompt.txt. Detection will continue with fallback workflow context."- fi- cp /tmp/gh-aw/agent_output.json /tmp/gh-aw/threat-detection/agent_output.json 2>/dev/null || true- for f in /tmp/gh-aw/aw-*.patch; do- if [ -f "$f" ]; then- cp "$f" /tmp/gh-aw/threat-detection/ 2>/dev/null || true- fi- done- for f in /tmp/gh-aw/aw-*.bundle; do- if [ -f "$f" ]; then- cp "$f" /tmp/gh-aw/threat-detection/ 2>/dev/null || true- fi- done- echo "Prepared threat detection files:"- ls -la /tmp/gh-aw/threat-detection/ 2>/dev/null || true+ bash "${RUNNER_TEMP}/gh-aw/actions/prepare_threat_detection_files.sh"- name: Setup threat detectionif: always() && steps.detection_guard.outputs.run_detection == 'true'uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0@@ -1637,85 +1735,51 @@ jobs:WORKFLOW_DESCRIPTION: "This workflow is an automated CI failure investigator for the GitHub Actions Merge Queue.\nIt triggers when monitored merge-queue workflows fail, performs deep analysis of the failure,\nand sends a second escalation alert to Microsoft Teams when the same failure pattern\nhas 3 or more occurrences within the last 12 hours."HAS_PATCH: ${{ needs.agent.outputs.has_patch }}GH_AW_DETECTION_CONTINUE_ON_ERROR: "true"+ GH_AW_DETECTION_SKIP_PROMPT_SUMMARY: "true"with:script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/setup_threat_detection.cjs');+ const { main } = require(path.join(actionsDir, 'setup_threat_detection.cjs'));await main();- name: Ensure threat-detection directory and logif: always() && steps.detection_guard.outputs.run_detection == 'true'run: |mkdir -p /tmp/gh-aw/threat-detectiontouch /tmp/gh-aw/threat-detection/detection.log- rm -f /tmp/gh-aw/threat-detection/step-summary.md- touch /tmp/gh-aw/threat-detection/step-summary.md- - name: Setup Node.js- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0- with:- node-version: '24'- package-manager-cache: false+ - name: Install AWF binary+ run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.28.4 --rootless- name: Install GitHub Copilot CLIrun: bash "${RUNNER_TEMP}/gh-aw/actions/install_copilot_cli.sh"env:GH_HOST: github.com- GH_AW_COMPILED_VERSION: v0.85.4- - name: Install AWF binary- run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.27.44- - name: Execute GitHub Copilot CLI+ GH_AW_COMPILED_VERSION: v0.87.4+ - name: Install threat-detect binaryif: always() && steps.detection_guard.outputs.run_detection == 'true'continue-on-error: true+ run: |+ bash "${RUNNER_TEMP}/gh-aw/actions/install_threat_detect_binary.sh" v0.4.11+ - name: Execute threat detection with AWFid: detection_agentic_execution- # Copilot CLI tool arguments (sorted):+ if: always() && steps.detection_guard.outputs.run_detection == 'true'+ continue-on-error: truetimeout-minutes: 20- run: |- set -o pipefail- printf '%s' "$(date +%s%3N)" > /tmp/gh-aw/agent_cli_start_ms.txt- trap 'gh_aw_exit_code=$?; mkdir -p /tmp/gh-aw >/dev/null 2>&1 || true; printf "%s" "$gh_aw_exit_code" > /tmp/gh-aw/agent_execution_exit_code.txt || true; rm -f "$HOME/.copilot/settings.json"' EXIT- mkdir -p "$HOME/.copilot"- printf '%s' '{"builtInAgents":{"rubberDuck":false}}' > "$HOME/.copilot/settings.json"- export XDG_CONFIG_HOME="$HOME"- touch /tmp/gh-aw/agent-step-summary.md- GH_AW_NODE_BIN=$(command -v node 2>/dev/null || true)- export GH_AW_NODE_BIN- export COPILOT_API_KEY="$COPILOT_DUMMY_BYOK"- (umask 177 && touch /tmp/gh-aw/threat-detection/detection.log)- GH_AW_MAX_AI_CREDITS="${GH_AW_MAX_AI_CREDITS:-400}"- printf '%s\n' "{\"\$schema\":\"https://github.com/github/gh-aw-firewall/releases/download/v0.27.44/awf-config.schema.json\",\"network\":{\"allowDomains\":[\"api.business.githubcopilot.com\",\"api.enterprise.githubcopilot.com\",\"api.github.com\",\"api.githubcopilot.com\",\"api.individual.githubcopilot.com\",\"github.com\",\"host.docker.internal\",\"registry.npmjs.org\",\"telemetry.enterprise.githubcopilot.com\"]},\"apiProxy\":{\"enabled\":true,\"enableTokenSteering\":true,\"maxRuns\":500,\"maxAiCredits\":${GH_AW_MAX_AI_CREDITS},\"maxCacheMisses\":5,\"models\":{\"agent\":[\"sonnet-6x\",\"gpt-5.4\",\"gpt-5.5\",\"gpt-5.6\",\"gpt-5.3\",\"gemini-pro\",\"any\"],\"antigravity\":[\"copilot/antigravity*\",\"google/antigravity*\",\"gemini/antigravity*\"],\"any\":[\"copilot/*\",\"anthropic/*\",\"openai/*\",\"google/*\",\"gemini/*\"],\"auto\":[\"copilot/auto\",\"large\"],\"claude\":[\"agent\"],\"codex\":[\"agent\"],\"coding\":[\"copilot/gpt-5*codex*\",\"openai/gpt-5*codex*\",\"gpt-5-codex\",\"kimi\"],\"computer-use\":[\"copilot/*computer-use*\",\"google/*computer-use*\",\"gemini/*computer-use*\",\"openai/*computer-use*\"],\"copilot\":[\"agent\"],\"deep-research\":[\"copilot/deep-research*\",\"copilot/o3-deep-research*\",\"copilot/o4-mini-deep-research*\",\"google/deep-research*\",\"gemini/deep-research*\",\"openai/o3-deep-research*\",\"openai/o4-mini-deep-research*\"],\"detection\":[\"small\"],\"evals\":[\"small\"],\"fable\":[\"copilot/*fable*\",\"anthropic/*fable*\"],\"gemini\":[\"agent\"],\"gemini-3-flash\":[\"copilot/gemini-3*flash*\",\"google/gemini-3*flash*\",\"gemini/gemini-3*flash*\"],\"gemini-3-pro\":[\"copilot/gemini-3*pro*\",\"google/gemini-3*pro*\",\"google/nano-banana*\",\"gemini/gemini-3*pro*\"],\"gemini-3.1-flash\":[\"copilot/gemini-3.1*flash*\",\"google/gemini-3.1*flash*\",\"gemini/gemini-3.1*flash*\"],\"gemini-3.1-pro\":[\"copilot/gemini-3.1*pro*\",\"google/gemini-3.1*pro*\",\"gemini/gemini-3.1*pro*\"],\"gemini-3.5-flash\":[\"copilot/gemini-3.5*flash*\",\"google/gemini-3.5*flash*\",\"gemini/gemini-3.5*flash*\"],\"gemini-3.6-flash\":[\"copilot/gemini-3.6*flash*\",\"google/gemini-3.6*flash*\",\"gemini/gemini-3.6*flash*\"],\"gemini-flash\":[\"copilot/gemini-*flash*\",\"google/gemini-*flash*\",\"gemini/gemini-*flash*\"],\"gemini-flash-lite\":[\"copilot/gemini-*flash*lite*\",\"google/gemini-*flash*lite*\",\"gemini/gemini-*flash*lite*\"],\"gemini-omni\":[\"copilot/gemini-omni*\",\"google/gemini-omni*\",\"gemini/gemini-omni*\"],\"gemini-pro\":[\"copilot/gemini-*pro*\",\"google/gemini-*pro*\",\"gemini/gemini-*pro*\"],\"gemma\":[\"copilot/gemma*\",\"google/gemma*\",\"gemini/gemma*\"],\"gpt-5\":[\"copilot/gpt-5*\",\"openai/gpt-5*\"],\"gpt-5-codex\":[\"copilot/gpt-5*codex*\",\"openai/gpt-5*codex*\"],\"gpt-5-mini\":[\"copilot/gpt-5*mini*\",\"openai/gpt-5*mini*\"],\"gpt-5-nano\":[\"copilot/gpt-5*nano*\",\"openai/gpt-5*nano*\"],\"gpt-5-pro\":[\"copilot/gpt-5*pro*\",\"openai/gpt-5*pro*\"],\"gpt-5.1\":[\"copilot/gpt-5.1*\",\"openai/gpt-5.1*\"],\"gpt-5.2\":[\"copilot/gpt-5.2*\",\"openai/gpt-5.2*\"],\"gpt-5.3\":[\"copilot/gpt-5.3*\",\"openai/gpt-5.3*\"],\"gpt-5.4\":[\"copilot/gpt-5.4*\",\"openai/gpt-5.4*\"],\"gpt-5.5\":[\"copilot/gpt-5.5*\",\"openai/gpt-5.5*\"],\"gpt-5.6\":[\"copilot/gpt-5.6*\",\"openai/gpt-5.6*\"],\"grok\":[\"copilot/*grok*\",\"openai/*grok*\"],\"haiku\":[\"copilot/*haiku*\",\"anthropic/*haiku*\"],\"image-generation\":[\"copilot/gpt-image*\",\"openai/gpt-image*\",\"openai/chatgpt-image*\",\"copilot/gemini-*image*\",\"google/gemini-*image*\",\"gemini/gemini-*image*\",\"google/imagen*\"],\"kimi\":[\"copilot/kimi*\",\"openai/kimi*\"],\"kiwi\":[\"copilot/kiwi*\",\"openai/kiwi*\"],\"large\":[\"sonnet\",\"gpt-5-pro\",\"gpt-5\",\"gemini-pro\"],\"lyria\":[\"google/lyria*\",\"gemini/lyria*\",\"copilot/lyria*\"],\"mai-code\":[\"copilot/MAI-Code*\",\"copilot/mai-code*\",\"openai/MAI-Code*\"],\"mai-code-1-flash-picker\":[\"copilot/MAI-Code-1-Flash-picker*\",\"copilot/mai-code-1-flash-picker*\",\"openai/MAI-Code-1-Flash-picker*\"],\"mini\":[\"haiku\",\"gpt-5-mini\",\"gpt-5-nano\",\"gemini-flash-lite\"],\"nano-banana\":[\"copilot/nano-banana*\",\"google/nano-banana*\",\"gemini/nano-banana*\"],\"opus\":[\"copilot/*opus*\",\"anthropic/*opus*\"],\"opusplan\":[\"opus?effort=high\"],\"raptor-mini\":[\"copilot/raptor*\",\"openai/raptor*\"],\"reasoning\":[\"copilot/o1*\",\"copilot/o3*\",\"copilot/o4*\",\"openai/o1*\",\"openai/o3*\",\"openai/o4*\"],\"robotics\":[\"copilot/*robotics*\",\"google/*robotics*\",\"gemini/*robotics*\"],\"small\":[\"mini\"],\"small-agent\":[\"haiku\",\"gpt-5-mini\",\"gemini-flash\"],\"sonnet\":[\"copilot/*sonnet*\",\"anthropic/*sonnet*\"],\"sonnet-6x\":[\"copilot/*sonnet-4.5*\",\"copilot/*sonnet-4.6*\",\"copilot/*sonnet-5*\",\"copilot/*sonnet-4-5-*\",\"anthropic/*sonnet-4-5-*\",\"copilot/*sonnet-4-6*\",\"anthropic/*sonnet-4-6*\",\"anthropic/*sonnet-5*\"],\"summarization\":[\"haiku\",\"gpt-5-mini\",\"gemini-flash-lite\",\"mini\"],\"veo\":[\"google/veo*\",\"gemini/veo*\"],\"vision\":[\"copilot/gemini-*image*\",\"google/gemini-*image*\",\"gemini/gemini-*image*\",\"copilot/gemini-*flash*\",\"google/gemini-*flash*\",\"gemini/gemini-*flash*\"]}},\"container\":{\"imageTag\":\"0.27.44,squid=sha256:83e48bbe12c634be8c228a576832fe45f66c529ac3659db92bddbcf2eeb6d627,agent=sha256:0d727725c737b58c7bdf51f640cffb928385ec46517e0917c7f1a02f1bada8b4,api-proxy=sha256:b50fbadba138f6e9aba94aca09711335c489bb3b15861220cb66f6092e042dc7,cli-proxy=sha256:c064d15974f7c933ec7d3f7b4038f4fd203547b3154bdc821afd379144887eff\"},\"logging\":{\"proxyLogsDir\":\"/tmp/gh-aw/sandbox/firewall/logs\",\"auditDir\":\"/tmp/gh-aw/sandbox/firewall/audit\"}}" > "${RUNNER_TEMP}/gh-aw/awf-config.json"- cp "${RUNNER_TEMP}/gh-aw/awf-config.json" /tmp/gh-aw/awf-config.json- export GH_AW_MODELS_JSON_PATH="/tmp/gh-aw/models.json"- GH_AW_DOCKER_HOST=""- if [[ "${DOCKER_HOST:-}" =~ ^tcp:// ]]; then- GH_AW_DOCKER_HOST="${DOCKER_HOST}"- fi- if [[ "${DOCKER_HOST:-}" =~ ^tcp:// ]]; then- _GH_AW_CHROOT_JSON=$(jq -c --arg src "${RUNNER_TEMP}/gh-aw" --arg user "$(id -un)" --argjson uid "$(id -u)" --argjson gid "$(id -g)" --arg home "${RUNNER_TEMP}/gh-aw/home" '.chroot={"binariesSourcePath":$src,"identity":{"user":$user,"uid":$uid,"gid":$gid,"home":$home}}' "${RUNNER_TEMP}/gh-aw/awf-config.json") || { echo "chroot config patch failed" >&2; exit 1; }- printf '%s\n' "$_GH_AW_CHROOT_JSON" > "${RUNNER_TEMP}/gh-aw/awf-config.json"- printf '%s\n' "$_GH_AW_CHROOT_JSON" > "${RUNNER_TEMP}/gh-aw/awf-config.json"- fi- GH_AW_TOOL_CACHE_MOUNT=""- GH_AW_TOOL_CACHE="${RUNNER_TOOL_CACHE:?RUNNER_TOOL_CACHE must be set}"- if [ -d "$GH_AW_TOOL_CACHE" ]; then- if [[ "$GH_AW_TOOL_CACHE" != /opt/* ]]; then- GH_AW_TOOL_CACHE_MOUNT="$GH_AW_TOOL_CACHE:$GH_AW_TOOL_CACHE:ro"- fi- fi- # shellcheck disable=SC1003,SC2016,SC2086- awf --config "${RUNNER_TEMP}/gh-aw/awf-config.json" --container-workdir "${GITHUB_WORKSPACE}" --mount "${RUNNER_TEMP}/gh-aw:${RUNNER_TEMP}/gh-aw:ro" --mount "${RUNNER_TEMP}/gh-aw:/host${RUNNER_TEMP}/gh-aw:ro" ${GH_AW_TOOL_CACHE_MOUNT:+--mount "$GH_AW_TOOL_CACHE_MOUNT"} ${GH_AW_DOCKER_HOST:+--docker-host "$GH_AW_DOCKER_HOST"} --env-all --exclude-env ACTIONS_ID_TOKEN_REQUEST_TOKEN --exclude-env ACTIONS_ID_TOKEN_REQUEST_URL --exclude-env COPILOT_GITHUB_TOKEN --log-level info --skip-pull \- -- /bin/bash -c 'set +o histexpand; : "${RUNNER_TOOL_CACHE:?RUNNER_TOOL_CACHE must be set}"; GH_AW_TOOL_CACHE="$RUNNER_TOOL_CACHE"; export PATH="$(find "$GH_AW_TOOL_CACHE" -maxdepth 5 -type d -name bin 2>/dev/null | tr '\''\n'\'' '\'':'\'')$PATH"; [ -n "$GOROOT" ] && export PATH="$GOROOT/bin:$PATH" || true; [ -n "$ERLANG_HOME" ] && export PATH="$ERLANG_HOME/bin:$PATH" || true && GH_AW_NODE_EXEC="${GH_AW_NODE_BIN:-}"; if [ -z "$GH_AW_NODE_EXEC" ] || [ ! -x "$GH_AW_NODE_EXEC" ]; then GH_AW_NODE_EXEC="$(command -v node 2>/dev/null || true)"; fi; if [ -z "$GH_AW_NODE_EXEC" ]; then echo "node runtime missing on this runner — check runtimes.node in workflow YAML" >&2; exit 127; fi; GH_AW_NPM_GLOBAL_ROOT="$(npm root -g 2>/dev/null || true)"; if [ -n "$GH_AW_NPM_GLOBAL_ROOT" ]; then export NODE_PATH="${GH_AW_NPM_GLOBAL_ROOT}${NODE_PATH:+:${NODE_PATH}}"; fi; "$GH_AW_NODE_EXEC" ${RUNNER_TEMP}/gh-aw/actions/copilot_harness.cjs /usr/local/bin/copilot --add-dir /tmp/gh-aw/ --log-level all --log-dir /tmp/gh-aw/sandbox/agent/logs/ --disable-builtin-mcps --no-ask-user --allow-all-tools --add-dir "${GITHUB_WORKSPACE}" --prompt-file /tmp/gh-aw/aw-prompts/prompt.txt' 2>&1 | tee -a /tmp/gh-aw/threat-detection/detection.logenv:AWF_REFLECT_ENABLED: 1COPILOT_AGENT_RUNNER_TYPE: STANDALONECOPILOT_DUMMY_BYOK: dummy-byok-key-for-offline-modeCOPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}COPILOT_MODEL: claude-sonnet-4.6+ GH_AW_HARNESS_MAX_RETRIES: 0GH_AW_LLM_PROVIDER: githubGH_AW_MAX_AI_CREDITS: ${{ vars.GH_AW_DEFAULT_DETECTION_MAX_AI_CREDITS || '400' }}GH_AW_MAX_TURNS: ${{ vars.GH_AW_DEFAULT_MAX_TURNS || '' }}GH_AW_PHASE: detectionGH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txtGH_AW_TIMEOUT_MINUTES: 20- GH_AW_VERSION: v0.85.4+ GH_AW_VERSION: v0.87.4GITHUB_API_URL: ${{ github.api_url }}GITHUB_AW: trueGITHUB_COPILOT_INTEGRATION_ID: agentic-workflows@@ -1730,58 +1794,103 @@ jobs:GIT_COMMITTER_NAME: github-actions[bot]RUNNER_TEMP: ${{ runner.temp }}TRACEPARENT: ${{ env.GITHUB_AW_OTEL_TRACE_ID != '' && env.GITHUB_AW_OTEL_PARENT_SPAN_ID != '' && format('00-{0}-{1}-01', env.GITHUB_AW_OTEL_TRACE_ID, env.GITHUB_AW_OTEL_PARENT_SPAN_ID) || '' }}- - name: Parse threat detection token usage for step summary- id: parse_detection_token_usage- if: always()+ WORKFLOW_NAME: "CI Failure Doctor — Merge Queue"+ WORKFLOW_DESCRIPTION: "This workflow is an automated CI failure investigator for the GitHub Actions Merge Queue.\nIt triggers when monitored merge-queue workflows fail, performs deep analysis of the failure,\nand sends a second escalation alert to Microsoft Teams when the same failure pattern\nhas 3 or more occurrences within the last 12 hours."+ HAS_PATCH: ${{ needs.agent.outputs.has_patch }}+ GH_AW_DETECTION_CONTINUE_ON_ERROR: "true"+ run: |+ set -o pipefail+ printf '%s' "$(date +%s%3N)" > /tmp/gh-aw/agent_cli_start_ms.txt+ GH_AW_COPILOT_SRC="$(command -v copilot 2>/dev/null || true)"+ if [ -z "$GH_AW_COPILOT_SRC" ] || [ ! -x "$GH_AW_COPILOT_SRC" ]; then+ echo "GitHub Copilot CLI executable not found on PATH after installation" >&2+ exit 127+ fi+ GH_AW_COPILOT_BIN="${RUNNER_TEMP}/gh-aw/bin/copilot"+ mkdir -p "${RUNNER_TEMP}/gh-aw/bin"+ if [ "$GH_AW_COPILOT_SRC" != "$GH_AW_COPILOT_BIN" ]; then+ cp "$GH_AW_COPILOT_SRC" "$GH_AW_COPILOT_BIN"+ fi+ chmod 755 "$GH_AW_COPILOT_BIN"++ (umask 177 && touch /tmp/gh-aw/threat-detection/detection.log)+ GH_AW_MAX_AI_CREDITS="${{ vars.GH_AW_DEFAULT_DETECTION_MAX_AI_CREDITS || '400' }}"+ printf '%s\n' "{\"\$schema\":\"https://github.com/github/gh-aw-firewall/releases/download/v0.28.4/awf-config.schema.json\",\"network\":{\"allowDomains\":[\"api.business.githubcopilot.com\",\"api.enterprise.githubcopilot.com\",\"api.github.com\",\"api.githubcopilot.com\",\"api.individual.githubcopilot.com\",\"github.com\",\"host.docker.internal\",\"raw.githubusercontent.com\",\"telemetry.enterprise.githubcopilot.com\"]},\"apiProxy\":{\"enabled\":true,\"enableTokenSteering\":true,\"maxRuns\":500,\"maxAiCredits\":${GH_AW_MAX_AI_CREDITS},\"maxCacheMisses\":5,\"models\":{\"agent\":[\"sonnet-6x\",\"gpt-5.4\",\"gpt-5.5\",\"gpt-5.6\",\"gpt-5.3\",\"gemini-pro\",\"any\"],\"antigravity\":[\"copilot/antigravity*\",\"google/antigravity*\",\"gemini/antigravity*\"],\"any\":[\"copilot/*\",\"anthropic/*\",\"openai/*\",\"google/*\",\"gemini/*\"],\"auto\":[\"copilot/auto\",\"large\"],\"claude\":[\"agent\"],\"codex\":[\"agent\"],\"coding\":[\"copilot/gpt-5*codex*\",\"openai/gpt-5*codex*\",\"gpt-5-codex\",\"kimi\"],\"computer-use\":[\"copilot/*computer-use*\",\"google/*computer-use*\",\"gemini/*computer-use*\",\"openai/*computer-use*\"],\"copilot\":[\"agent\"],\"deep-research\":[\"copilot/deep-research*\",\"copilot/o3-deep-research*\",\"copilot/o4-mini-deep-research*\",\"google/deep-research*\",\"gemini/deep-research*\",\"openai/o3-deep-research*\",\"openai/o4-mini-deep-research*\"],\"detection\":[\"small\"],\"evals\":[\"small\"],\"fable\":[\"copilot/*fable*\",\"anthropic/*fable*\"],\"gemini\":[\"agent\"],\"gemini-3-flash\":[\"copilot/gemini-3*flash*\",\"google/gemini-3*flash*\",\"gemini/gemini-3*flash*\"],\"gemini-3-pro\":[\"copilot/gemini-3*pro*\",\"google/gemini-3*pro*\",\"google/nano-banana*\",\"gemini/gemini-3*pro*\"],\"gemini-3.1-flash\":[\"copilot/gemini-3.1*flash*\",\"google/gemini-3.1*flash*\",\"gemini/gemini-3.1*flash*\"],\"gemini-3.1-pro\":[\"copilot/gemini-3.1*pro*\",\"google/gemini-3.1*pro*\",\"gemini/gemini-3.1*pro*\"],\"gemini-3.5-flash\":[\"copilot/gemini-3.5*flash*\",\"google/gemini-3.5*flash*\",\"gemini/gemini-3.5*flash*\"],\"gemini-3.6-flash\":[\"copilot/gemini-3.6*flash*\",\"google/gemini-3.6*flash*\",\"gemini/gemini-3.6*flash*\"],\"gemini-3.7-flash\":[\"copilot/gemini-3.7*flash*\",\"google/gemini-3.7*flash*\",\"gemini/gemini-3.7*flash*\"],\"gemini-flash\":[\"copilot/gemini-*flash*\",\"google/gemini-*flash*\",\"gemini/gemini-*flash*\"],\"gemini-flash-lite\":[\"copilot/gemini-*flash*lite*\",\"google/gemini-*flash*lite*\",\"gemini/gemini-*flash*lite*\"],\"gemini-omni\":[\"copilot/gemini-omni*\",\"google/gemini-omni*\",\"gemini/gemini-omni*\"],\"gemini-pro\":[\"copilot/gemini-*pro*\",\"google/gemini-*pro*\",\"gemini/gemini-*pro*\"],\"gemma\":[\"copilot/gemma*\",\"google/gemma*\",\"gemini/gemma*\"],\"gpt-5\":[\"copilot/gpt-5*\",\"openai/gpt-5*\"],\"gpt-5-codex\":[\"copilot/gpt-5*codex*\",\"openai/gpt-5*codex*\"],\"gpt-5-mini\":[\"copilot/gpt-5*mini*\",\"openai/gpt-5*mini*\"],\"gpt-5-nano\":[\"copilot/gpt-5*nano*\",\"openai/gpt-5*nano*\"],\"gpt-5-pro\":[\"copilot/gpt-5*pro*\",\"openai/gpt-5*pro*\"],\"gpt-5.1\":[\"copilot/gpt-5.1*\",\"openai/gpt-5.1*\"],\"gpt-5.2\":[\"copilot/gpt-5.2*\",\"openai/gpt-5.2*\"],\"gpt-5.3\":[\"copilot/gpt-5.3*\",\"openai/gpt-5.3*\"],\"gpt-5.4\":[\"copilot/gpt-5.4*\",\"openai/gpt-5.4*\"],\"gpt-5.5\":[\"copilot/gpt-5.5*\",\"openai/gpt-5.5*\"],\"gpt-5.6\":[\"copilot/gpt-5.6*\",\"openai/gpt-5.6*\"],\"grok\":[\"copilot/*grok*\",\"openai/*grok*\"],\"haiku\":[\"copilot/*haiku*\",\"anthropic/*haiku*\"],\"image-generation\":[\"copilot/gpt-image*\",\"openai/gpt-image*\",\"openai/chatgpt-image*\",\"copilot/gemini-*image*\",\"google/gemini-*image*\",\"gemini/gemini-*image*\",\"google/imagen*\"],\"kimi\":[\"copilot/kimi*\",\"openai/kimi*\"],\"kiwi\":[\"copilot/kiwi*\",\"openai/kiwi*\"],\"large\":[\"sonnet\",\"gpt-5-pro\",\"gpt-5\",\"gemini-pro\"],\"lyria\":[\"google/lyria*\",\"gemini/lyria*\",\"copilot/lyria*\"],\"mai-code\":[\"copilot/MAI-Code*\",\"copilot/mai-code*\",\"openai/MAI-Code*\"],\"mai-code-1-flash-picker\":[\"copilot/MAI-Code-1-Flash-picker*\",\"copilot/mai-code-1-flash-picker*\",\"openai/MAI-Code-1-Flash-picker*\"],\"mini\":[\"haiku\",\"gpt-5-mini\",\"gpt-5-nano\",\"gemini-flash-lite\"],\"nano-banana\":[\"copilot/nano-banana*\",\"google/nano-banana*\",\"gemini/nano-banana*\"],\"opus\":[\"copilot/*opus*\",\"anthropic/*opus*\"],\"opusplan\":[\"opus?effort=high\"],\"raptor-mini\":[\"copilot/raptor*\",\"openai/raptor*\"],\"reasoning\":[\"copilot/o1*\",\"copilot/o3*\",\"copilot/o4*\",\"openai/o1*\",\"openai/o3*\",\"openai/o4*\"],\"robotics\":[\"copilot/*robotics*\",\"google/*robotics*\",\"gemini/*robotics*\"],\"small\":[\"mini\"],\"small-agent\":[\"haiku\",\"gpt-5-mini\",\"gemini-flash\"],\"sonnet\":[\"copilot/*sonnet*\",\"anthropic/*sonnet*\"],\"sonnet-6x\":[\"copilot/*sonnet-4.5*\",\"copilot/*sonnet-4.6*\",\"copilot/*sonnet-5*\",\"copilot/*sonnet-4-5-*\",\"anthropic/*sonnet-4-5-*\",\"copilot/*sonnet-4-6*\",\"anthropic/*sonnet-4-6*\",\"anthropic/*sonnet-5*\"],\"summarization\":[\"haiku\",\"gpt-5-mini\",\"gemini-flash-lite\",\"mini\"],\"veo\":[\"google/veo*\",\"gemini/veo*\"],\"vision\":[\"copilot/gemini-*image*\",\"google/gemini-*image*\",\"gemini/gemini-*image*\",\"copilot/gemini-*flash*\",\"google/gemini-*flash*\",\"gemini/gemini-*flash*\"]}},\"container\":{\"imageTag\":\"0.28.4,squid=sha256:35953d0beac18f642aa0bc98bb726a85288539b1fc630c16e94da33300058258,agent=sha256:8f18587981eff7e6291784200a88a7191d23bfd8f5723db848c640d6b4e88e46,api-proxy=sha256:64e668297d1b9d83ee102626e104c054ac2cf5cfd7225bf6e144f86962229882,cli-proxy=sha256:7ad9113203642c5b12303b97e221fc6b5dd0fb0655c09a2eba9d5c6fa3201a3b\"},\"logging\":{\"proxyLogsDir\":\"/tmp/gh-aw/sandbox/firewall/logs\",\"auditDir\":\"/tmp/gh-aw/sandbox/firewall/audit\"}}" > "${RUNNER_TEMP}/gh-aw/awf-config.json"+ cp "${RUNNER_TEMP}/gh-aw/awf-config.json" /tmp/gh-aw/awf-config.json+ export GH_AW_MODELS_JSON_PATH="/tmp/gh-aw/models.json"+ GH_AW_DOCKER_HOST=""+ if [[ "${DOCKER_HOST:-}" =~ ^tcp:// ]]; then+ GH_AW_DOCKER_HOST="${DOCKER_HOST}"+ fi+ if [[ "${DOCKER_HOST:-}" =~ ^tcp:// ]]; then+ _GH_AW_CHROOT_JSON=$(jq -c --arg src "${RUNNER_TEMP}/gh-aw" --arg user "$(id -un)" --argjson uid "$(id -u)" --argjson gid "$(id -g)" --arg home "${RUNNER_TEMP}/gh-aw/home" '.chroot={"binariesSourcePath":$src,"identity":{"user":$user,"uid":$uid,"gid":$gid,"home":$home}}' "${RUNNER_TEMP}/gh-aw/awf-config.json") || { echo "chroot config patch failed" >&2; exit 1; }+ printf '%s\n' "$_GH_AW_CHROOT_JSON" > "${RUNNER_TEMP}/gh-aw/awf-config.json"+ printf '%s\n' "$_GH_AW_CHROOT_JSON" > "${RUNNER_TEMP}/gh-aw/awf-config.json"+ fi+ GH_AW_TOOL_CACHE_MOUNT=""+ GH_AW_TOOL_CACHE="${RUNNER_TOOL_CACHE:?RUNNER_TOOL_CACHE must be set}"+ if [ -d "$GH_AW_TOOL_CACHE" ]; then+ if [[ "$GH_AW_TOOL_CACHE" != /opt/* ]]; then+ GH_AW_TOOL_CACHE_MOUNT="$GH_AW_TOOL_CACHE:$GH_AW_TOOL_CACHE:ro"+ fi+ fi+ # shellcheck disable=SC1003,SC2016,SC2086+ awf --config "${RUNNER_TEMP}/gh-aw/awf-config.json" --container-workdir "${GITHUB_WORKSPACE}" --mount "${RUNNER_TEMP}/gh-aw:${RUNNER_TEMP}/gh-aw:ro" --mount "${RUNNER_TEMP}/gh-aw:/host${RUNNER_TEMP}/gh-aw:ro" ${GH_AW_TOOL_CACHE_MOUNT:+--mount "$GH_AW_TOOL_CACHE_MOUNT"} ${GH_AW_DOCKER_HOST:+--docker-host "$GH_AW_DOCKER_HOST"} --env-all --exclude-env ACTIONS_ID_TOKEN_REQUEST_TOKEN --exclude-env ACTIONS_ID_TOKEN_REQUEST_URL --exclude-env COPILOT_GITHUB_TOKEN --mount /tmp/gh-aw:/tmp/gh-aw:rw --mount /tmp/gh-aw/threat-detection:/tmp/gh-aw/threat-detection:rw --log-level info --skip-pull \+ -- /bin/bash -c 'set +o histexpand; export PATH="${RUNNER_TEMP}/gh-aw/bin:$PATH" && : "${RUNNER_TOOL_CACHE:?RUNNER_TOOL_CACHE must be set}"; GH_AW_TOOL_CACHE="$RUNNER_TOOL_CACHE"; export PATH="$(find "$GH_AW_TOOL_CACHE" -maxdepth 5 -type d -name bin 2>/dev/null | tr '\''\n'\'' '\'':'\'')$PATH"; [ -n "$GOROOT" ] && export PATH="$GOROOT/bin:$PATH" || true; [ -n "$ERLANG_HOME" ] && export PATH="$ERLANG_HOME/bin:$PATH" || true && threat-detect --engine copilot --output /tmp/gh-aw/threat-detection/detection_result.json /tmp/gh-aw/threat-detection' 2>&1 | tee -a /tmp/gh-aw/threat-detection/detection.log+ - name: Render detection log+ if: always() && steps.detection_guard.outputs.run_detection == 'true'continue-on-error: trueuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0- env:- GH_AW_TOKEN_USAGE_SUMMARY_TITLE: Threat Detection Token Usagewith:script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/parse_token_usage.cjs');+ const { main } = require(path.join(actionsDir, 'render_detection_log.cjs'));await main();- - name: Upload threat detection log+ - name: Copy detection firewall logs+ if: always() && steps.detection_guard.outputs.run_detection == 'true'+ continue-on-error: true+ run: |+ mkdir -p /tmp/gh-aw/threat-detection/sandbox/firewall+ [ -d /tmp/gh-aw/sandbox/firewall/logs ] && mkdir -p /tmp/gh-aw/threat-detection/sandbox/firewall/logs && cp -r /tmp/gh-aw/sandbox/firewall/logs/. /tmp/gh-aw/threat-detection/sandbox/firewall/logs/ || true+ [ -d /tmp/gh-aw/sandbox/firewall/audit ] && mkdir -p /tmp/gh-aw/threat-detection/sandbox/firewall/audit && cp -r /tmp/gh-aw/sandbox/firewall/audit/. /tmp/gh-aw/threat-detection/sandbox/firewall/audit/ || true+ - name: Upload threat detection artifactif: always() && steps.detection_guard.outputs.run_detection == 'true'uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1with:name: detection- path: /tmp/gh-aw/threat-detection/detection.log+ path: |+ /tmp/gh-aw/threat-detection/detection_result.json+ /tmp/gh-aw/threat-detection/sandbox/firewall/logs/+ /tmp/gh-aw/threat-detection/sandbox/firewall/audit/if-no-files-found: ignore- - name: Parse and conclude threat detection- id: detection_conclusion+ - name: Parse threat detection token usage for step summary+ id: parse_detection_token_usageif: always()continue-on-error: trueuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0+ env:+ GH_AW_TOKEN_USAGE_SUMMARY_TITLE: Threat Detection Token Usage+ with:+ script: |+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));+ setupGlobals(core, github, context, exec, io, getOctokit);+ const { main } = require(path.join(actionsDir, 'parse_token_usage.cjs'));+ await main();+ - name: Conclude threat detection+ id: detection_conclusion+ if: always()+ continue-on-error: trueenv:RUN_DETECTION: ${{ steps.detection_guard.outputs.run_detection }}DETECTION_AGENTIC_EXECUTION_OUTCOME: ${{ steps.detection_agentic_execution.outcome }}GH_AW_DETECTION_CONTINUE_ON_ERROR: "true"- with:- script: |- try {- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');- setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/parse_threat_detection_results.cjs');- await main();- } catch (loadErr) {- const continueOnError = process.env.GH_AW_DETECTION_CONTINUE_ON_ERROR !== 'false';- const detectionExecutionFailed = process.env.DETECTION_AGENTIC_EXECUTION_OUTCOME === 'failure';- const msg = 'ERR_SYSTEM: \u274C Unexpected error loading threat detection module: ' + (loadErr && loadErr.message ? loadErr.message : String(loadErr));- core.error(msg);- core.setOutput('reason', 'parse_error');- if (continueOnError && !detectionExecutionFailed) {- core.warning('\u26A0\uFE0F ' + msg);- core.setOutput('conclusion', 'warning');- core.setOutput('success', 'false');- } else {- core.setOutput('conclusion', 'failure');- core.setOutput('success', 'false');- core.setFailed(msg);- }- }+ run: |+ bash "${RUNNER_TEMP}/gh-aw/actions/conclude_threat_detection.sh" /tmp/gh-aw/threat-detection/detection_result.jsonnotify_teams:needs:@@ -1796,17 +1905,18 @@ jobs:continue-on-error: trueuses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1with:- name: agent+ pattern: "{agent,agent-output-fallback}"+ merge-multiple: truepath: ${{ runner.temp }}/gh-aw/safe-jobs/- name: Checkout agentic-workflow scripts- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # 9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1env:GH_AW_AGENT_OUTPUT: ${{ runner.temp }}/gh-aw/safe-jobs/agent_output.jsonwith:persist-credentials: falsesparse-checkout: .github/scripts/agentic-workflows- name: Set up Python- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # a309ff8b426b58ec0e2a45f0f869d46889d02405+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0env:GH_AW_AGENT_OUTPUT: ${{ runner.temp }}/gh-aw/safe-jobs/agent_output.jsonwith:@@ -1844,17 +1954,18 @@ jobs:continue-on-error: trueuses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1with:- name: agent+ pattern: "{agent,agent-output-fallback}"+ merge-multiple: truepath: ${{ runner.temp }}/gh-aw/safe-jobs/- name: Checkout agentic-workflow scripts- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # 9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1env:GH_AW_AGENT_OUTPUT: ${{ runner.temp }}/gh-aw/safe-jobs/agent_output.jsonwith:persist-credentials: falsesparse-checkout: .github/scripts/agentic-workflows- name: Set up Python- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # a309ff8b426b58ec0e2a45f0f869d46889d02405+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0env:GH_AW_AGENT_OUTPUT: ${{ runner.temp }}/gh-aw/safe-jobs/agent_output.jsonwith:@@ -1882,15 +1993,15 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@2709137ea6c5b0e19aa621454dc643ea8dc526b1 # v0.85.4+ uses: github/gh-aw-actions/setup@ea4b911d44a5336c74325a122a5fd9110b45ff06 # v0.87.4with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}env:GH_AW_SETUP_WORKFLOW_NAME: "CI Failure Doctor — Merge Queue"GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor-mq.lock.yml@${{ github.ref }}- GH_AW_INFO_VERSION: "1.0.78"- GH_AW_INFO_AWF_VERSION: "v0.27.44"+ GH_AW_INFO_VERSION: "1.0.80"+ GH_AW_INFO_AWF_VERSION: "v0.28.4"GH_AW_INFO_ENGINE_ID: "copilot"- name: Check team membership for workflowid: check_membership@@ -1900,9 +2011,11 @@ jobs:with:github-token: ${{ secrets.GITHUB_TOKEN }}script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/check_membership.cjs');+ const { main } = require(path.join(actionsDir, 'check_membership.cjs'));await main();push_repo_memory:@@ -1928,7 +2041,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@2709137ea6c5b0e19aa621454dc643ea8dc526b1 # v0.85.4+ uses: github/gh-aw-actions/setup@ea4b911d44a5336c74325a122a5fd9110b45ff06 # v0.87.4with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -1937,8 +2050,8 @@ jobs:env:GH_AW_SETUP_WORKFLOW_NAME: "CI Failure Doctor — Merge Queue"GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor-mq.lock.yml@${{ github.ref }}- GH_AW_INFO_VERSION: "1.0.78"- GH_AW_INFO_AWF_VERSION: "v0.27.44"+ GH_AW_INFO_VERSION: "1.0.80"+ GH_AW_INFO_AWF_VERSION: "v0.28.4"GH_AW_INFO_ENGINE_ID: "copilot"- name: Checkout repositoryuses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1@@ -1975,9 +2088,11 @@ jobs:ALLOWED_EXTENSIONS: '[".md",".json",".jsonl"]'with:script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/push_repo_memory.cjs');+ const { main } = require(path.join(actionsDir, 'push_repo_memory.cjs'));await main();remediate_transient_failure:@@ -1996,17 +2111,18 @@ jobs:continue-on-error: trueuses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1with:- name: agent+ pattern: "{agent,agent-output-fallback}"+ merge-multiple: truepath: ${{ runner.temp }}/gh-aw/safe-jobs/- name: Checkout agentic-workflow scripts- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # 9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1env:GH_AW_AGENT_OUTPUT: ${{ runner.temp }}/gh-aw/safe-jobs/agent_output.jsonwith:persist-credentials: falsesparse-checkout: .github/scripts/agentic-workflows- name: Set up Python- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # a309ff8b426b58ec0e2a45f0f869d46889d02405+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0env:GH_AW_AGENT_OUTPUT: ${{ runner.temp }}/gh-aw/safe-jobs/agent_output.jsonwith:@@ -2068,15 +2184,20 @@ jobs:comment_url: ${{ steps.process_safe_outputs.outputs.comment_url }}create_discussion_error_count: ${{ steps.process_safe_outputs.outputs.create_discussion_error_count }}create_discussion_errors: ${{ steps.process_safe_outputs.outputs.create_discussion_errors }}+ process_safe_outputs_items_applied: ${{ steps.process_safe_outputs.outputs.items_applied }}+ process_safe_outputs_items_cancelled: ${{ steps.process_safe_outputs.outputs.items_cancelled }}+ process_safe_outputs_items_deferred: ${{ steps.process_safe_outputs.outputs.items_deferred }}process_safe_outputs_items_failed: ${{ steps.process_safe_outputs.outputs.items_failed }}+ process_safe_outputs_items_skipped: ${{ steps.process_safe_outputs.outputs.items_skipped }}process_safe_outputs_items_succeeded: ${{ steps.process_safe_outputs.outputs.items_succeeded }}+ process_safe_outputs_items_warnings: ${{ steps.process_safe_outputs.outputs.items_warnings }}process_safe_outputs_processed_count: ${{ steps.process_safe_outputs.outputs.processed_count }}process_safe_outputs_status: ${{ steps.process_safe_outputs.outputs.status }}process_safe_outputs_temporary_id_map: ${{ steps.process_safe_outputs.outputs.temporary_id_map }}steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@2709137ea6c5b0e19aa621454dc643ea8dc526b1 # v0.85.4+ uses: github/gh-aw-actions/setup@ea4b911d44a5336c74325a122a5fd9110b45ff06 # v0.87.4with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -2085,15 +2206,16 @@ jobs:env:GH_AW_SETUP_WORKFLOW_NAME: "CI Failure Doctor — Merge Queue"GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor-mq.lock.yml@${{ github.ref }}- GH_AW_INFO_VERSION: "1.0.78"- GH_AW_INFO_AWF_VERSION: "v0.27.44"+ GH_AW_INFO_VERSION: "1.0.80"+ GH_AW_INFO_AWF_VERSION: "v0.28.4"GH_AW_INFO_ENGINE_ID: "copilot"- name: Download agent output artifactid: download-agent-outputcontinue-on-error: trueuses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1with:- name: agent+ pattern: "{agent,agent-output-fallback}"+ merge-multiple: truepath: /tmp/gh-aw/- name: Setup agent output environment variableid: setup-agent-output-env@@ -2101,7 +2223,9 @@ jobs:run: |mkdir -p /tmp/gh-aw/find "/tmp/gh-aw/" -type f -print- echo "GH_AW_AGENT_OUTPUT=/tmp/gh-aw/agent_output.json" >> "$GITHUB_OUTPUT"+ if [ -f "/tmp/gh-aw/agent_output.json" ]; then+ echo "GH_AW_AGENT_OUTPUT=/tmp/gh-aw/agent_output.json" >> "$GITHUB_OUTPUT"+ fi- name: Configure GH_HOST for enterprise compatibilityid: ghes-host-configshell: bash@@ -2117,7 +2241,7 @@ jobs:env:GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }}GH_AW_COMMENT_ID: ${{ needs.activation.outputs.comment_id }}- GH_AW_ALLOWED_DOMAINS: "api.business.githubcopilot.com,api.enterprise.githubcopilot.com,api.github.com,api.githubcopilot.com,api.individual.githubcopilot.com,api.snapcraft.io,archive.ubuntu.com,azure.archive.ubuntu.com,crl.geotrust.com,crl.globalsign.com,crl.identrust.com,crl.sectigo.com,crl.thawte.com,crl.usertrust.com,crl.verisign.com,crl3.digicert.com,crl4.digicert.com,crls.ssl.com,github.com,host.docker.internal,json-schema.org,json.schemastore.org,keyserver.ubuntu.com,ocsp.digicert.com,ocsp.geotrust.com,ocsp.globalsign.com,ocsp.identrust.com,ocsp.sectigo.com,ocsp.ssl.com,ocsp.thawte.com,ocsp.usertrust.com,ocsp.verisign.com,packagecloud.io,packages.cloud.google.com,packages.microsoft.com,ppa.launchpad.net,raw.githubusercontent.com,registry.npmjs.org,s.symcb.com,s.symcd.com,security.ubuntu.com,telemetry.enterprise.githubcopilot.com,ts-crl.ws.symantec.com,ts-ocsp.ws.symantec.com,www.googleapis.com"+ GH_AW_ALLOWED_DOMAINS: "api.business.githubcopilot.com,api.enterprise.githubcopilot.com,api.github.com,api.githubcopilot.com,api.individual.githubcopilot.com,api.snapcraft.io,archive.ubuntu.com,azure.archive.ubuntu.com,crl.geotrust.com,crl.globalsign.com,crl.identrust.com,crl.sectigo.com,crl.thawte.com,crl.usertrust.com,crl.verisign.com,crl3.digicert.com,crl4.digicert.com,crls.ssl.com,github.com,host.docker.internal,json-schema.org,json.schemastore.org,keyserver.ubuntu.com,ocsp.digicert.com,ocsp.geotrust.com,ocsp.globalsign.com,ocsp.identrust.com,ocsp.sectigo.com,ocsp.ssl.com,ocsp.thawte.com,ocsp.usertrust.com,ocsp.verisign.com,packagecloud.io,packages.cloud.google.com,packages.microsoft.com,ppa.launchpad.net,raw.githubusercontent.com,s.symcb.com,s.symcd.com,security.ubuntu.com,telemetry.enterprise.githubcopilot.com,ts-crl.ws.symantec.com,ts-ocsp.ws.symantec.com,www.googleapis.com"GITHUB_SERVER_URL: ${{ github.server_url }}GITHUB_API_URL: ${{ github.api_url }}GH_AW_SAFE_OUTPUT_JOBS: "{\"notify_teams\":\"\",\"notify_teams_recurring\":\"\",\"remediate_transient_failure\":\"\"}"@@ -2125,9 +2249,11 @@ jobs:with:github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/process_safe_outputs.cjs');+ const { main } = require(path.join(actionsDir, 'process_safe_outputs.cjs'));await main();- name: Upload Safe Outputs Itemsif: always()diff --git a/.github/workflows/ci-doctor.lock.yml b/.github/workflows/ci-doctor.lock.ymlindex 2b5f445f31d..8e3926e810e 100644--- a/.github/workflows/ci-doctor.lock.yml+++ b/.github/workflows/ci-doctor.lock.yml@@ -1,6 +1,6 @@-# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"f5c472697e086d84786a7f9158f04eb08fecab68f36a85814bf083f8f755fa2d","body_hash":"771cef4e62ce41f2c011349a6bf4f2c3f5f2ce7f7786414e180ab94f3e5c6d2e","compiler_version":"v0.85.4","strict":true,"agent_id":"copilot","agent_model":"claude-sonnet-4.6","engine_versions":{"copilot":"1.0.78"}}-# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/cache/restore","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/cache/save","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/download-artifact","sha":"3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c","version":"v8.0.1"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"820762786026740c76f36085b0efc47a31fe5020","version":"v7.0.0"},{"repo":"actions/setup-python","sha":"a309ff8b426b58ec0e2a45f0f869d46889d02405","version":"a309ff8b426b58ec0e2a45f0f869d46889d02405"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"},{"repo":"github/gh-aw-actions/setup","sha":"2709137ea6c5b0e19aa621454dc643ea8dc526b1","version":"v0.85.4"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.27.44","digest":"sha256:0d727725c737b58c7bdf51f640cffb928385ec46517e0917c7f1a02f1bada8b4","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.27.44@sha256:0d727725c737b58c7bdf51f640cffb928385ec46517e0917c7f1a02f1bada8b4"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.44","digest":"sha256:b50fbadba138f6e9aba94aca09711335c489bb3b15861220cb66f6092e042dc7","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.44@sha256:b50fbadba138f6e9aba94aca09711335c489bb3b15861220cb66f6092e042dc7"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.27.44","digest":"sha256:83e48bbe12c634be8c228a576832fe45f66c529ac3659db92bddbcf2eeb6d627","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.27.44@sha256:83e48bbe12c634be8c228a576832fe45f66c529ac3659db92bddbcf2eeb6d627"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.4.8","digest":"sha256:38bbea36cdb46a3c9d04d1db05e672966f5239b431a2022eb35881688e5721d8","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.4.8@sha256:38bbea36cdb46a3c9d04d1db05e672966f5239b431a2022eb35881688e5721d8"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:0d9f1fb5fd6610c0ac1f5194a38e45a8a1e81f8a390d5142d8e4e6f26a4b3196","pinned_image":"ghcr.io/github/gh-aw-node@sha256:0d9f1fb5fd6610c0ac1f5194a38e45a8a1e81f8a390d5142d8e4e6f26a4b3196"},{"image":"ghcr.io/github/github-mcp-server:v1.8.0","digest":"sha256:d5a18c04b92714c309eb46a2305087e91a4dbd80420f6e462656699f95093520","pinned_image":"ghcr.io/github/github-mcp-server:v1.8.0@sha256:d5a18c04b92714c309eb46a2305087e91a4dbd80420f6e462656699f95093520"}]}-# This file was automatically generated by gh-aw (v0.85.4). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md+# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"cf5c7c1f8353d5daa3817053cff632aa4fbfa795ba3d9a1ee505bc6cc787017f","body_hash":"771cef4e62ce41f2c011349a6bf4f2c3f5f2ce7f7786414e180ab94f3e5c6d2e","compiler_version":"v0.87.4","strict":true,"agent_id":"copilot","agent_model":"claude-sonnet-4.6","engine_versions":{"copilot":"1.0.80"}}+# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/cache/restore","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/cache/save","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/download-artifact","sha":"3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c","version":"v8.0.1"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-python","sha":"5fda3b95a4ea91299a34e894583c3862153e4b97","version":"v7.0.0"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"},{"repo":"github/gh-aw-actions/setup","sha":"ea4b911d44a5336c74325a122a5fd9110b45ff06","version":"v0.87.4"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.28.4","digest":"sha256:8f18587981eff7e6291784200a88a7191d23bfd8f5723db848c640d6b4e88e46","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.28.4@sha256:8f18587981eff7e6291784200a88a7191d23bfd8f5723db848c640d6b4e88e46"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.28.4","digest":"sha256:64e668297d1b9d83ee102626e104c054ac2cf5cfd7225bf6e144f86962229882","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.28.4@sha256:64e668297d1b9d83ee102626e104c054ac2cf5cfd7225bf6e144f86962229882"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.28.4","digest":"sha256:35953d0beac18f642aa0bc98bb726a85288539b1fc630c16e94da33300058258","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.28.4@sha256:35953d0beac18f642aa0bc98bb726a85288539b1fc630c16e94da33300058258"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.4.10","digest":"sha256:08bb5fa417aed94b40a14e2b7b3ae457531a5f22b143a32fe58317139d9b8f42","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.4.10@sha256:08bb5fa417aed94b40a14e2b7b3ae457531a5f22b143a32fe58317139d9b8f42"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e","pinned_image":"ghcr.io/github/gh-aw-node@sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e"},{"image":"ghcr.io/github/github-mcp-server:v1.10.0","digest":"sha256:097512ddf58af80a620c177ae9cad93448f9a2a55c70ee8fde5cec6714522a8c","pinned_image":"ghcr.io/github/github-mcp-server:v1.10.0@sha256:097512ddf58af80a620c177ae9cad93448f9a2a55c70ee8fde5cec6714522a8c"}],"mcp_servers":[{"name":"github","tools":["actions_get","actions_list","get_commit","get_file_contents","get_job_logs","get_latest_release","get_me","get_pull_request","get_pull_request_comments","get_pull_request_diff","get_pull_request_files","get_pull_request_review_comments","get_pull_request_reviews","get_pull_request_status","get_release_by_tag","get_tag","issue_read","list_branches","list_commits","list_issue_types","list_issues","list_pull_requests","list_releases","list_starred_repositories","list_tags","pull_request_read","search_code","search_issues","search_pull_requests","search_repositories"]},{"name":"safeoutputs","tools":["add_comment","missing_data","missing_tool","noop"]}]}+# This file was automatically generated by gh-aw (v0.87.4). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md## ___ _ _# / _ \ | | (_)@@ -47,18 +47,17 @@# - actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1# - actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0# - actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 (source v9)-# - actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0-# - actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # a309ff8b426b58ec0e2a45f0f869d46889d02405+# - actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0# - actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1-# - github/gh-aw-actions/setup@2709137ea6c5b0e19aa621454dc643ea8dc526b1 # v0.85.4+# - github/gh-aw-actions/setup@ea4b911d44a5336c74325a122a5fd9110b45ff06 # v0.87.4## Container images used:-# - ghcr.io/github/gh-aw-firewall/agent:0.27.44@sha256:0d727725c737b58c7bdf51f640cffb928385ec46517e0917c7f1a02f1bada8b4-# - ghcr.io/github/gh-aw-firewall/api-proxy:0.27.44@sha256:b50fbadba138f6e9aba94aca09711335c489bb3b15861220cb66f6092e042dc7-# - ghcr.io/github/gh-aw-firewall/squid:0.27.44@sha256:83e48bbe12c634be8c228a576832fe45f66c529ac3659db92bddbcf2eeb6d627-# - ghcr.io/github/gh-aw-mcpg:v0.4.8@sha256:38bbea36cdb46a3c9d04d1db05e672966f5239b431a2022eb35881688e5721d8-# - ghcr.io/github/gh-aw-node@sha256:0d9f1fb5fd6610c0ac1f5194a38e45a8a1e81f8a390d5142d8e4e6f26a4b3196-# - ghcr.io/github/github-mcp-server:v1.8.0@sha256:d5a18c04b92714c309eb46a2305087e91a4dbd80420f6e462656699f95093520+# - ghcr.io/github/gh-aw-firewall/agent:0.28.4@sha256:8f18587981eff7e6291784200a88a7191d23bfd8f5723db848c640d6b4e88e46+# - ghcr.io/github/gh-aw-firewall/api-proxy:0.28.4@sha256:64e668297d1b9d83ee102626e104c054ac2cf5cfd7225bf6e144f86962229882+# - ghcr.io/github/gh-aw-firewall/squid:0.28.4@sha256:35953d0beac18f642aa0bc98bb726a85288539b1fc630c16e94da33300058258+# - ghcr.io/github/gh-aw-mcpg:v0.4.10@sha256:08bb5fa417aed94b40a14e2b7b3ae457531a5f22b143a32fe58317139d9b8f42+# - ghcr.io/github/gh-aw-node@sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e+# - ghcr.io/github/github-mcp-server:v1.10.0@sha256:097512ddf58af80a620c177ae9cad93448f9a2a55c70ee8fde5cec6714522a8cname: "CI Failure Doctor"on:@@ -111,7 +110,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@2709137ea6c5b0e19aa621454dc643ea8dc526b1 # v0.85.4+ uses: github/gh-aw-actions/setup@ea4b911d44a5336c74325a122a5fd9110b45ff06 # v0.87.4with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -121,8 +120,8 @@ jobs:env:GH_AW_SETUP_WORKFLOW_NAME: "CI Failure Doctor"GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor.lock.yml@${{ github.ref }}- GH_AW_INFO_VERSION: "1.0.78"- GH_AW_INFO_AWF_VERSION: "v0.27.44"+ GH_AW_INFO_VERSION: "1.0.80"+ GH_AW_INFO_AWF_VERSION: "v0.28.4"GH_AW_INFO_ENGINE_ID: "copilot"- name: Generate agentic run infoid: generate_aw_info@@ -130,25 +129,28 @@ jobs:GH_AW_INFO_ENGINE_ID: "copilot"GH_AW_INFO_ENGINE_NAME: "GitHub Copilot CLI"GH_AW_INFO_MODEL: "claude-sonnet-4.6"- GH_AW_INFO_VERSION: "1.0.78"- GH_AW_INFO_AGENT_VERSION: "1.0.78"- GH_AW_INFO_CLI_VERSION: "v0.85.4"+ GH_AW_INFO_VERSION: "1.0.80"+ GH_AW_INFO_AGENT_VERSION: "1.0.80"+ GH_AW_INFO_CLI_VERSION: "v0.87.4"GH_AW_INFO_WORKFLOW_NAME: "CI Failure Doctor"GH_AW_INFO_EXPERIMENTAL: "false"GH_AW_INFO_SUPPORTS_TOOLS_ALLOWLIST: "true"GH_AW_INFO_STAGED: "false"GH_AW_INFO_ALLOWED_DOMAINS: '["defaults"]'GH_AW_INFO_FIREWALL_ENABLED: "true"- GH_AW_INFO_AWF_VERSION: "v0.27.44"+ GH_AW_INFO_AWF_VERSION: "v0.28.4"GH_AW_INFO_AWMG_VERSION: ""GH_AW_INFO_FIREWALL_TYPE: "squid"+ GH_AW_INFO_AGENT_RUNTIME: ""GH_AW_COMPILED_STRICT: "true"uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0with:script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/generate_aw_info.cjs');+ const { main } = require(path.join(actionsDir, 'generate_aw_info.cjs'));await main(core, context);- name: Restore daily AIC usage cacheid: restore-daily-aic-cache@@ -170,9 +172,11 @@ jobs:with:github-token: ${{ secrets.GITHUB_TOKEN }}script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/restore_aic_usage_cache_fallback.cjs');+ const { main } = require(path.join(actionsDir, 'restore_aic_usage_cache_fallback.cjs'));await main();- name: Check daily workflow token guardrailid: daily-effective-workflow-guardrail@@ -190,9 +194,11 @@ jobs:with:github-token: ${{ secrets.GITHUB_TOKEN }}script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/check_daily_aic_workflow_guardrail.cjs');+ const { main } = require(path.join(actionsDir, 'check_daily_aic_workflow_guardrail.cjs'));await main();- name: Add eyes reaction for immediate feedbackid: react@@ -203,9 +209,11 @@ jobs:with:github-token: ${{ secrets.GITHUB_TOKEN }}script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/add_reaction.cjs');+ const { main } = require(path.join(actionsDir, 'add_reaction.cjs'));await main();- name: Validate COPILOT_GITHUB_TOKEN secretid: validate-secret@@ -236,8 +244,8 @@ jobs:env:GH_AW_AGENT_FOLDERS: ".agents .github"GH_AW_AGENT_FILES: "AGENTS.md"- # poutine:ignore untrusted_checkout_exec- run: bash "${RUNNER_TEMP}/gh-aw/actions/save_base_github_folders.sh"+ run: |+ bash "${RUNNER_TEMP}/gh-aw/actions/save_base_github_folders.sh"- name: Check workflow lock fileid: check-lock-fileuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0@@ -246,30 +254,36 @@ jobs:GH_AW_CONTEXT_WORKFLOW_REF: "${{ github.workflow_ref }}"with:script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/check_workflow_timestamp_api.cjs');+ const { main } = require(path.join(actionsDir, 'check_workflow_timestamp_api.cjs'));await main();- name: Check compile-agentic versionuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:- GH_AW_COMPILED_VERSION: "v0.85.4"+ GH_AW_COMPILED_VERSION: "v0.87.4"with:script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/check_version_updates.cjs');+ const { main } = require(path.join(actionsDir, 'check_version_updates.cjs'));await main();- name: Compute current body textid: sanitizeduses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:- GH_AW_ALLOWED_DOMAINS: "api.business.githubcopilot.com,api.enterprise.githubcopilot.com,api.github.com,api.githubcopilot.com,api.individual.githubcopilot.com,api.snapcraft.io,archive.ubuntu.com,azure.archive.ubuntu.com,crl.geotrust.com,crl.globalsign.com,crl.identrust.com,crl.sectigo.com,crl.thawte.com,crl.usertrust.com,crl.verisign.com,crl3.digicert.com,crl4.digicert.com,crls.ssl.com,github.com,host.docker.internal,json-schema.org,json.schemastore.org,keyserver.ubuntu.com,ocsp.digicert.com,ocsp.geotrust.com,ocsp.globalsign.com,ocsp.identrust.com,ocsp.sectigo.com,ocsp.ssl.com,ocsp.thawte.com,ocsp.usertrust.com,ocsp.verisign.com,packagecloud.io,packages.cloud.google.com,packages.microsoft.com,ppa.launchpad.net,raw.githubusercontent.com,registry.npmjs.org,s.symcb.com,s.symcd.com,security.ubuntu.com,telemetry.enterprise.githubcopilot.com,ts-crl.ws.symantec.com,ts-ocsp.ws.symantec.com,www.googleapis.com"+ GH_AW_ALLOWED_DOMAINS: "api.business.githubcopilot.com,api.enterprise.githubcopilot.com,api.github.com,api.githubcopilot.com,api.individual.githubcopilot.com,api.snapcraft.io,archive.ubuntu.com,azure.archive.ubuntu.com,crl.geotrust.com,crl.globalsign.com,crl.identrust.com,crl.sectigo.com,crl.thawte.com,crl.usertrust.com,crl.verisign.com,crl3.digicert.com,crl4.digicert.com,crls.ssl.com,github.com,host.docker.internal,json-schema.org,json.schemastore.org,keyserver.ubuntu.com,ocsp.digicert.com,ocsp.geotrust.com,ocsp.globalsign.com,ocsp.identrust.com,ocsp.sectigo.com,ocsp.ssl.com,ocsp.thawte.com,ocsp.usertrust.com,ocsp.verisign.com,packagecloud.io,packages.cloud.google.com,packages.microsoft.com,ppa.launchpad.net,raw.githubusercontent.com,s.symcb.com,s.symcd.com,security.ubuntu.com,telemetry.enterprise.githubcopilot.com,ts-crl.ws.symantec.com,ts-ocsp.ws.symantec.com,www.googleapis.com"with:script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/compute_text.cjs');+ const { main } = require(path.join(actionsDir, 'compute_text.cjs'));await main();- name: Add comment with workflow run linkid: add-comment@@ -280,17 +294,22 @@ jobs:GH_AW_SAFE_OUTPUT_MESSAGES: "{\"footer\":\"\\u003e Generated by [{workflow_name}]({run_url})\"}"with:script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/add_workflow_run_comment.cjs');+ const { main } = require(path.join(actionsDir, 'add_workflow_run_comment.cjs'));await main();- name: Log runtime featuresif: ${{ contains(toJSON(vars), '"GH_AW_RUNTIME_FEATURES":') }}run: bash "${RUNNER_TEMP}/gh-aw/actions/log_runtime_features_summary.sh"- name: Create prompt with built-in context+ uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:- GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt+ GH_AW_ACTIONS_DIR: ${{ runner.temp }}/gh-aw/actions+ GH_AW_PROMPT: ${{ runner.temp }}/gh-aw/aw-prompts/prompt.txtGH_AW_SAFE_OUTPUTS: ${{ runner.temp }}/gh-aw/safeoutputs/outputs.jsonl+ GH_AW_PROMPT_CONFIG: "{\"items\":[{\"content_env\":\"GH_AW_PROMPT_CONTENT_0000\"},{\"file\":\"xpia.md\"},{\"file\":\"temp_folder_prompt.md\"},{\"file\":\"markdown.md\"},{\"file\":\"repo_memory_prompt.md\"},{\"file\":\"safe_outputs_prompt.md\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0001\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0002\"},{\"file\":\"mcp_cli_tools_with_safeoutputs_prompt.md\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0003\"},{\"file\":\"github_mcp_tools_with_safeoutputs_prompt.md\"},{\"file\":\"pr_context_prompt.md\",\"condition_env\":\"GH_AW_INCLUDE_PR_CONTEXT\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0004\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0005\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0006\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0007\"}]}"GH_AW_EXPR_1A3A194A: ${{ github.event.discussion.number || (fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_type == 'discussion' && fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_number) }}GH_AW_EXPR_463A214A: ${{ github.event.pull_request.number || (fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_type == 'pull_request' && fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_number) }}GH_AW_EXPR_802A9F6A: ${{ github.event.issue.number || (fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_type == 'issue' && fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_number) }}@@ -300,72 +319,27 @@ jobs:GH_AW_GITHUB_REPOSITORY: ${{ github.repository }}GH_AW_GITHUB_RUN_ID: ${{ github.run_id }}GH_AW_GITHUB_WORKSPACE: ${{ github.workspace }}- GH_AW_IS_PR_COMMENT: ${{ github.event.issue.pull_request && 'true' || '' }}+ GH_AW_INCLUDE_PR_CONTEXT: ${{ (github.event_name == 'issue_comment' && github.event.issue.pull_request != null) || github.event_name == 'pull_request_review_comment' || github.event_name == 'pull_request_review' }}GH_AW_STEPS_SANITIZED_OUTPUTS_TEXT: ${{ steps.sanitized.outputs.text }}GH_AW_WIKI_NOTE: ${{ '' }}- # poutine:ignore untrusted_checkout_exec- run: |- bash "${RUNNER_TEMP}/gh-aw/actions/create_prompt_first.sh"- {- cat << 'GH_AW_PROMPT_43d9e550ac842c4b_EOF'- <system>- GH_AW_PROMPT_43d9e550ac842c4b_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"- cat "${RUNNER_TEMP}/gh-aw/prompts/repo_memory_prompt.md"- cat "${RUNNER_TEMP}/gh-aw/prompts/safe_outputs_prompt.md"- cat << 'GH_AW_PROMPT_43d9e550ac842c4b_EOF'- <safe-output-tools>- Tools: add_comment, missing_tool, missing_data, noop- </safe-output-tools>- GH_AW_PROMPT_43d9e550ac842c4b_EOF- cat "${RUNNER_TEMP}/gh-aw/prompts/mcp_cli_tools_prompt.md"- cat << 'GH_AW_PROMPT_43d9e550ac842c4b_EOF'- <github-context>- The following GitHub context information is available for this workflow:- {{#if github.actor}}- - **actor**: __GH_AW_GITHUB_ACTOR__- {{/if}}- {{#if github.repository}}- - **repository**: __GH_AW_GITHUB_REPOSITORY__- {{/if}}- {{#if github.workspace}}- - **workspace**: __GH_AW_GITHUB_WORKSPACE__- {{/if}}- {{#if github.event.issue.number || (github.aw.context.item_type == 'issue' && github.aw.context.item_number)}}- - **issue-number**: #__GH_AW_EXPR_802A9F6A__- {{/if}}- {{#if github.event.discussion.number || (github.aw.context.item_type == 'discussion' && github.aw.context.item_number)}}- - **discussion-number**: #__GH_AW_EXPR_1A3A194A__- {{/if}}- {{#if github.event.pull_request.number || (github.aw.context.item_type == 'pull_request' && github.aw.context.item_number)}}- - **pull-request-number**: #__GH_AW_EXPR_463A214A__- {{/if}}- {{#if github.event.comment.id || github.aw.context.comment_id}}- - **comment-id**: __GH_AW_EXPR_FF1D34CE__- {{/if}}- {{#if github.run_id}}- - **workflow-run-id**: __GH_AW_GITHUB_RUN_ID__- {{/if}}- </github-context>-- GH_AW_PROMPT_43d9e550ac842c4b_EOF- cat "${RUNNER_TEMP}/gh-aw/prompts/github_mcp_tools_with_safeoutputs_prompt.md"- if [ "$GITHUB_EVENT_NAME" = "issue_comment" ] && [ -n "$GH_AW_IS_PR_COMMENT" ] || [ "$GITHUB_EVENT_NAME" = "pull_request_review_comment" ] || [ "$GITHUB_EVENT_NAME" = "pull_request_review" ]; then- cat "${RUNNER_TEMP}/gh-aw/prompts/pr_context_prompt.md"- fi- cat << 'GH_AW_PROMPT_43d9e550ac842c4b_EOF'- </system>- {{#runtime-import .github/workflows/shared/agentic-workflows/download-failure-logs.md}}- {{#runtime-import .github/workflows/shared/agentic-workflows/collect-pr-info.md}}- {{#runtime-import .github/workflows/ci-doctor.md}}- GH_AW_PROMPT_43d9e550ac842c4b_EOF- } > "$GH_AW_PROMPT"+ GH_AW_PROMPT_CONTENT_0000: "<system>\n"+ GH_AW_PROMPT_CONTENT_0001: "<safe-output-tools>\nTools: add_comment, missing_tool, missing_data, noop\n"+ GH_AW_PROMPT_CONTENT_0002: "</safe-output-tools>\n"+ GH_AW_PROMPT_CONTENT_0003: "<github-context>\nThe following GitHub context information is available for this workflow:\n{{#if github.actor}}\n- **actor**: __GH_AW_GITHUB_ACTOR__\n{{/if}}\n{{#if github.repository}}\n- **repository**: __GH_AW_GITHUB_REPOSITORY__\n{{/if}}\n{{#if github.workspace}}\n- **workspace**: __GH_AW_GITHUB_WORKSPACE__\n{{/if}}\n{{#if github.event.issue.number || (github.aw.context.item_type == 'issue' && github.aw.context.item_number)}}\n- **issue-number**: #__GH_AW_EXPR_802A9F6A__\n{{/if}}\n{{#if github.event.discussion.number || (github.aw.context.item_type == 'discussion' && github.aw.context.item_number)}}\n- **discussion-number**: #__GH_AW_EXPR_1A3A194A__\n{{/if}}\n{{#if github.event.pull_request.number || (github.aw.context.item_type == 'pull_request' && github.aw.context.item_number)}}\n- **pull-request-number**: #__GH_AW_EXPR_463A214A__\n{{/if}}\n{{#if github.event.comment.id || github.aw.context.comment_id}}\n- **comment-id**: __GH_AW_EXPR_FF1D34CE__\n{{/if}}\n{{#if github.run_id}}\n- **workflow-run-id**: __GH_AW_GITHUB_RUN_ID__\n{{/if}}\n</github-context>\n\n"+ GH_AW_PROMPT_CONTENT_0004: "</system>\n"+ GH_AW_PROMPT_CONTENT_0005: "{{#runtime-import .github/workflows/shared/agentic-workflows/download-failure-logs.md}}\n"+ GH_AW_PROMPT_CONTENT_0006: "{{#runtime-import .github/workflows/shared/agentic-workflows/collect-pr-info.md}}\n"+ GH_AW_PROMPT_CONTENT_0007: "{{#runtime-import .github/workflows/ci-doctor.md}}\n"+ with:+ script: |+ const { setupGlobals } = require(process.env.GH_AW_ACTIONS_DIR + '/setup_globals.cjs');+ setupGlobals(core, github, context, exec, io, getOctokit);+ const { main } = require(process.env.GH_AW_ACTIONS_DIR + '/create_prompt.cjs');+ await main(core);- name: Interpolate variables and render templatesuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:- GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt+ GH_AW_PROMPT: ${{ runner.temp }}/gh-aw/aw-prompts/prompt.txtGH_AW_ENGINE_ID: "copilot"GH_AW_GITHUB_ACTOR: ${{ github.actor }}GH_AW_GITHUB_EVENT_ISSUE_NUMBER: ${{ github.event.issue.number }}@@ -373,14 +347,16 @@ jobs:GH_AW_STEPS_SANITIZED_OUTPUTS_TEXT: ${{ steps.sanitized.outputs.text }}with:script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/interpolate_prompt.cjs');+ const { main } = require(path.join(actionsDir, 'interpolate_prompt.cjs'));await main();- name: Substitute placeholdersuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:- GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt+ GH_AW_PROMPT: ${{ runner.temp }}/gh-aw/aw-prompts/prompt.txtGH_AW_EXPR_1A3A194A: ${{ github.event.discussion.number || (fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_type == 'discussion' && fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_number) }}GH_AW_EXPR_463A214A: ${{ github.event.pull_request.number || (fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_type == 'pull_request' && fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_number) }}GH_AW_EXPR_802A9F6A: ${{ github.event.issue.number || (fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_type == 'issue' && fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_number) }}@@ -390,7 +366,7 @@ jobs:GH_AW_GITHUB_REPOSITORY: ${{ github.repository }}GH_AW_GITHUB_RUN_ID: ${{ github.run_id }}GH_AW_GITHUB_WORKSPACE: ${{ github.workspace }}- GH_AW_IS_PR_COMMENT: ${{ github.event.issue.pull_request && 'true' || '' }}+ GH_AW_INCLUDE_PR_CONTEXT: ${{ (github.event_name == 'issue_comment' && github.event.issue.pull_request != null) || github.event_name == 'pull_request_review_comment' || github.event_name == 'pull_request_review' }}GH_AW_MCP_CLI_SERVERS_LIST: "- `github` — run `github --help` to see available tools\n- `safeoutputs` — run `safeoutputs --help` to see available tools"GH_AW_MEMORY_BRANCH_NAME: 'memory/ci-doctor-mq'GH_AW_MEMORY_CONSTRAINTS: "\n\n**Constraints:**\n- **Max File Size**: 102400 bytes (0.10 MB) per file\n- **Max File Count**: 100 files per commit\n- **Max Patch Size**: 10240 bytes (10 KB) total per push (max: 1024 KB)\n"@@ -403,10 +379,12 @@ jobs:GH_AW_WIKI_NOTE: ''with:script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const substitutePlaceholders = require('${{ runner.temp }}/gh-aw/actions/substitute_placeholders.cjs');+ const substitutePlaceholders = require(path.join(actionsDir, 'substitute_placeholders.cjs'));// Call the substitution functionreturn await substitutePlaceholders({@@ -421,7 +399,7 @@ jobs:GH_AW_GITHUB_REPOSITORY: process.env.GH_AW_GITHUB_REPOSITORY,GH_AW_GITHUB_RUN_ID: process.env.GH_AW_GITHUB_RUN_ID,GH_AW_GITHUB_WORKSPACE: process.env.GH_AW_GITHUB_WORKSPACE,- GH_AW_IS_PR_COMMENT: process.env.GH_AW_IS_PR_COMMENT,+ GH_AW_INCLUDE_PR_CONTEXT: process.env.GH_AW_INCLUDE_PR_CONTEXT,GH_AW_MCP_CLI_SERVERS_LIST: process.env.GH_AW_MCP_CLI_SERVERS_LIST,GH_AW_MEMORY_BRANCH_NAME: process.env.GH_AW_MEMORY_BRANCH_NAME,GH_AW_MEMORY_CONSTRAINTS: process.env.GH_AW_MEMORY_CONSTRAINTS,@@ -436,14 +414,18 @@ jobs:});- name: Validate prompt placeholdersenv:- GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt- # poutine:ignore untrusted_checkout_exec- run: bash "${RUNNER_TEMP}/gh-aw/actions/validate_prompt_placeholders.sh"+ GH_AW_PROMPT: ${{ runner.temp }}/gh-aw/aw-prompts/prompt.txt+ run: |+ bash "${RUNNER_TEMP}/gh-aw/actions/validate_prompt_placeholders.sh"- name: Print promptenv:- GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt- # poutine:ignore untrusted_checkout_exec- run: bash "${RUNNER_TEMP}/gh-aw/actions/print_prompt_summary.sh"+ GH_AW_PROMPT: ${{ runner.temp }}/gh-aw/aw-prompts/prompt.txt+ run: |+ bash "${RUNNER_TEMP}/gh-aw/actions/print_prompt_summary.sh"+ - name: Stage prompt files for artifact upload+ run: |+ mkdir -p /tmp/gh-aw/aw-prompts+ cp -a "${RUNNER_TEMP}/gh-aw/aw-prompts/." /tmp/gh-aw/aw-prompts/- name: Upload activation artifactif: success()uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1@@ -498,11 +480,12 @@ jobs:setup-parent-span-id: ${{ steps.setup.outputs.parent-span-id || steps.setup.outputs.span-id }}setup-span-id: ${{ steps.setup.outputs.span-id }}setup-trace-id: ${{ steps.setup.outputs.trace-id }}+ shell_expansion_guard_rejected: ${{ steps.detect-agent-errors.outputs.shell_expansion_guard_rejected || 'false' }}unknown_model_ai_credits: ${{ steps.parse-mcp-gateway.outputs.unknown_model_ai_credits || 'false' }}steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@2709137ea6c5b0e19aa621454dc643ea8dc526b1 # v0.85.4+ uses: github/gh-aw-actions/setup@ea4b911d44a5336c74325a122a5fd9110b45ff06 # v0.87.4with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -511,8 +494,8 @@ jobs:env:GH_AW_SETUP_WORKFLOW_NAME: "CI Failure Doctor"GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor.lock.yml@${{ github.ref }}- GH_AW_INFO_VERSION: "1.0.78"- GH_AW_INFO_AWF_VERSION: "v0.27.44"+ GH_AW_INFO_VERSION: "1.0.80"+ GH_AW_INFO_AWF_VERSION: "v0.28.4"GH_AW_INFO_ENGINE_ID: "copilot"- name: Set runtime pathsid: set-runtime-paths@@ -548,7 +531,7 @@ jobs:CREATE_ORPHAN: truerun: bash "${RUNNER_TEMP}/gh-aw/actions/clone_repo_memory_branch.sh"- name: Set up Python- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # a309ff8b426b58ec0e2a45f0f869d46889d02405+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0with:python-version: "3.13"- name: Install PyGithub@@ -563,7 +546,7 @@ jobs:export PYTHONPATH=.github/scripts/agentic-workflows/:${PYTHONPATH}python .github/scripts/agentic-workflows/download_failure_logs.py- name: Set up Python- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # a309ff8b426b58ec0e2a45f0f869d46889d02405+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0with:python-version: "3.13"- name: Install PyGithub@@ -594,17 +577,19 @@ jobs:with:github-token: ${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN || secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/checkout_pr_branch.cjs');+ const { main } = require(path.join(actionsDir, 'checkout_pr_branch.cjs'));await main();- name: Install GitHub Copilot CLIrun: bash "${RUNNER_TEMP}/gh-aw/actions/install_copilot_cli.sh"env:GH_HOST: github.com- GH_AW_COMPILED_VERSION: v0.85.4+ GH_AW_COMPILED_VERSION: v0.87.4- name: Install AWF binary- run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.27.44 --rootless+ run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.28.4 --rootless- name: Determine automatic lockdown mode for GitHub MCP Serverid: determine-automatic-lockdownuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 (source v9)@@ -613,7 +598,9 @@ jobs:GH_AW_GITHUB_MCP_SERVER_TOKEN: ${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN }}with:script: |- const determineAutomaticLockdown = require('${{ runner.temp }}/gh-aw/actions/determine_automatic_lockdown.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const determineAutomaticLockdown = require(path.join(actionsDir, 'determine_automatic_lockdown.cjs'));await determineAutomaticLockdown(github, context, core);- name: Restore agent config folders from base branchif: steps.checkout-pr.outcome == 'success'@@ -631,15 +618,26 @@ jobs:GH_AW_SKILL_DIR: ".github/skills"run: bash "${RUNNER_TEMP}/gh-aw/actions/restore_inline_skills.sh"- name: Download container images- run: bash "${RUNNER_TEMP}/gh-aw/actions/download_docker_images.sh" ghcr.io/github/gh-aw-firewall/agent:0.27.44@sha256:0d727725c737b58c7bdf51f640cffb928385ec46517e0917c7f1a02f1bada8b4 ghcr.io/github/gh-aw-firewall/api-proxy:0.27.44@sha256:b50fbadba138f6e9aba94aca09711335c489bb3b15861220cb66f6092e042dc7 ghcr.io/github/gh-aw-firewall/squid:0.27.44@sha256:83e48bbe12c634be8c228a576832fe45f66c529ac3659db92bddbcf2eeb6d627 ghcr.io/github/gh-aw-mcpg:v0.4.8@sha256:38bbea36cdb46a3c9d04d1db05e672966f5239b431a2022eb35881688e5721d8 ghcr.io/github/gh-aw-node@sha256:0d9f1fb5fd6610c0ac1f5194a38e45a8a1e81f8a390d5142d8e4e6f26a4b3196 ghcr.io/github/github-mcp-server:v1.8.0@sha256:d5a18c04b92714c309eb46a2305087e91a4dbd80420f6e462656699f95093520- - name: Generate Safe Outputs Config+ run: bash "${RUNNER_TEMP}/gh-aw/actions/download_docker_images.sh" ghcr.io/github/gh-aw-firewall/agent:0.28.4@sha256:8f18587981eff7e6291784200a88a7191d23bfd8f5723db848c640d6b4e88e46 ghcr.io/github/gh-aw-firewall/api-proxy:0.28.4@sha256:64e668297d1b9d83ee102626e104c054ac2cf5cfd7225bf6e144f86962229882 ghcr.io/github/gh-aw-firewall/squid:0.28.4@sha256:35953d0beac18f642aa0bc98bb726a85288539b1fc630c16e94da33300058258 ghcr.io/github/gh-aw-mcpg:v0.4.10@sha256:08bb5fa417aed94b40a14e2b7b3ae457531a5f22b143a32fe58317139d9b8f42 ghcr.io/github/gh-aw-node@sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e ghcr.io/github/github-mcp-server:v1.10.0@sha256:097512ddf58af80a620c177ae9cad93448f9a2a55c70ee8fde5cec6714522a8c+ - name: Prepare Safe Outputs Directoriesrun: |mkdir -p "${RUNNER_TEMP}/gh-aw/safeoutputs"mkdir -p /tmp/gh-aw/safeoutputsmkdir -p /tmp/gh-aw/mcp-logs/safeoutputs- cat > "${RUNNER_TEMP}/gh-aw/safeoutputs/config.json" << 'GH_AW_SAFE_OUTPUTS_CONFIG_3fc66f1d800ddb9f_EOF'- {"add_comment":{"max":1},"create_report_incomplete_issue":{},"missing_data":{},"missing_tool":{},"noop":{"max":1,"report-as-issue":"false"},"push_repo_memory":{"memories":[{"dir":"/tmp/gh-aw/repo-memory/default","id":"default","max_file_count":100,"max_file_size":102400,"max_patch_size":10240}]},"report_incomplete":{}}- GH_AW_SAFE_OUTPUTS_CONFIG_3fc66f1d800ddb9f_EOF+ - name: Generate Safe Outputs Config+ uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0+ env:+ GH_AW_FILE_ROOT: "${{ runner.temp }}/gh-aw"+ GH_AW_FILE_CONFIG: "{\"files\":[{\"path\":\"safeoutputs/config.json\",\"content_env\":\"GH_AW_SAFE_OUTPUTS_CONFIG\"}]}"+ GH_AW_SAFE_OUTPUTS_CONFIG: "{\"add_comment\":{\"max\":1},\"create_report_incomplete_issue\":{},\"missing_data\":{},\"missing_tool\":{},\"noop\":{\"max\":1,\"report-as-issue\":\"false\"},\"push_repo_memory\":{\"memories\":[{\"dir\":\"/tmp/gh-aw/repo-memory/default\",\"id\":\"default\",\"max_file_count\":100,\"max_file_size\":102400,\"max_patch_size\":10240}]},\"report_incomplete\":{}}"+ with:+ script: |+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));+ setupGlobals(core, github, context, exec, io, getOctokit);+ const { main } = require(path.join(actionsDir, 'create_files.cjs'));+ await main();- name: Generate Safe Outputs Toolsenv:GH_AW_TOOLS_META_JSON: |@@ -661,9 +659,18 @@ jobs:"sanitize": true,"maxLength": 65000},+ "comment_id": {+ "optionalPositiveInteger": true+ },"item_number": {"issueOrPRNumber": true},+ "pr": {+ "issueOrPRNumber": true+ },+ "pr_number": {+ "issueOrPRNumber": true+ },"reply_to_id": {"type": "string","maxLength": 256@@ -671,6 +678,16 @@ jobs:"repo": {"type": "string","maxLength": 256+ },+ "target": {+ "type": "string",+ "enum": [+ "status"+ ]+ },+ "temporary_id": {+ "type": "string",+ "pattern": "^#?aw_[A-Za-z0-9_]{3,12}$"}}},@@ -731,6 +748,16 @@ jobs:}}},+ "push_repo_memory": {+ "defaultMax": 1,+ "fields": {+ "memory_id": {+ "type": "string",+ "sanitize": true,+ "maxLength": 128+ }+ }+ },"report_incomplete": {"defaultMax": 5,"fields": {@@ -751,9 +778,11 @@ jobs:uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0with:script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/generate_safe_outputs_tools.cjs');+ const { main } = require(path.join(actionsDir, 'generate_safe_outputs_tools.cjs'));await main();- name: Start MCP Gatewayid: start-mcp-gateway@@ -770,6 +799,11 @@ jobs:run: |set -eo pipefailmkdir -p "${RUNNER_TEMP}/gh-aw/mcp-config"+ if [ -n "${GITHUB_EVENT_PATH:-}" ] && [ -r "${GITHUB_EVENT_PATH}" ]; then+ GH_AW_SAFEOUTPUTS_EVENT_PATH="${RUNNER_TEMP}/gh-aw/safeoutputs/github_event.json"+ cp "${GITHUB_EVENT_PATH}" "${GH_AW_SAFEOUTPUTS_EVENT_PATH}"+ export GITHUB_EVENT_PATH="${GH_AW_SAFEOUTPUTS_EVENT_PATH}"+ fi# Export gateway environment variables for MCP config and gateway scriptexport MCP_GATEWAY_PORT="8080"@@ -781,22 +815,23 @@ jobs:export MCP_GATEWAY_PAYLOAD_DIR="/tmp/gh-aw/mcp-payloads"mkdir -p "${MCP_GATEWAY_PAYLOAD_DIR}"export MCP_GATEWAY_PAYLOAD_SIZE_THRESHOLD="524288"+ export MCP_GATEWAY_ALLOWED_MOUNT_ROOTS="${GITHUB_WORKSPACE}:rw,${RUNNER_TEMP}/gh-aw:ro,${RUNNER_TEMP}/gh-aw/safeoutputs:rw,/opt:ro,/tmp:rw,/usr/bin/gh:ro"export DEBUG="*"export GH_AW_ENGINE="copilot"MCP_GATEWAY_UID=$(id -u 2>/dev/null || echo '0')MCP_GATEWAY_GID=$(id -g 2>/dev/null || echo '0')source "${RUNNER_TEMP}/gh-aw/actions/resolve_docker_socket_gid.sh"- export MCP_GATEWAY_DOCKER_COMMAND='docker run -i --rm --network bridge -p 127.0.0.1:'"${MCP_GATEWAY_PORT}"':'"${MCP_GATEWAY_PORT}"' --name awmg-mcpg --add-host host.docker.internal:host-gateway --user '"${MCP_GATEWAY_UID}"':'"${MCP_GATEWAY_GID}"' --group-add '"${DOCKER_SOCK_GID}"' -v '"${DOCKER_SOCK_PATH}"':/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 DOCKER_HOST=unix:///var/run/docker.sock -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_POLICY_ALLOW_CREATE_PULL_REQUEST -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 GH_AW_SINK_VISIBILITY -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 RUNNER_TEMP -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 -v '"${RUNNER_TEMP}"'/gh-aw/safeoutputs:'"${RUNNER_TEMP}"'/gh-aw/safeoutputs:rw ghcr.io/github/gh-aw-mcpg:v0.4.8'+ export MCP_GATEWAY_DOCKER_COMMAND='docker run -i --rm --network bridge -p 127.0.0.1:'"${MCP_GATEWAY_PORT}"':'"${MCP_GATEWAY_PORT}"' --name awmg-mcpg --add-host host.docker.internal:host-gateway --user '"${MCP_GATEWAY_UID}"':'"${MCP_GATEWAY_GID}"' --group-add '"${DOCKER_SOCK_GID}"' -v '"${DOCKER_SOCK_PATH}"':/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 DOCKER_HOST=unix:///var/run/docker.sock -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_POLICY_ALLOW_CREATE_PULL_REQUEST -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 GH_AW_SINK_VISIBILITY -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 RUNNER_TEMP -e MCP_GATEWAY_ALLOWED_MOUNT_ROOTS -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 -v '"${RUNNER_TEMP}"'/gh-aw/safeoutputs:'"${RUNNER_TEMP}"'/gh-aw/safeoutputs:rw ghcr.io/github/gh-aw-mcpg:v0.4.10'mkdir -p "$HOME/.copilot"GH_AW_NODE=$(which node 2>/dev/null || command -v node 2>/dev/null || echo node)- cat << GH_AW_MCP_CONFIG_81cc4c61546f2054_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"+ cat << GH_AW_MCP_CONFIG_f62bc53970772047_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"{"mcpServers": {"github": {"type": "stdio",- "container": "ghcr.io/github/github-mcp-server:v1.8.0",+ "container": "ghcr.io/github/github-mcp-server:v1.10.0","env": {"GITHUB_FEATURES": "fields_param","GITHUB_HOST": "${GITHUB_SERVER_URL}",@@ -829,6 +864,8 @@ jobs:"GH_AW_SAFE_OUTPUTS_CONFIG_PATH": "\${GH_AW_SAFE_OUTPUTS_CONFIG_PATH}","GH_AW_SAFE_OUTPUTS_TOOLS_PATH": "\${GH_AW_SAFE_OUTPUTS_TOOLS_PATH}","GH_AW_POLICY_ALLOW_CREATE_PULL_REQUEST": "\${GH_AW_POLICY_ALLOW_CREATE_PULL_REQUEST}",+ "GITHUB_EVENT_NAME": "\${GITHUB_EVENT_NAME}",+ "GITHUB_EVENT_PATH": "\${GITHUB_EVENT_PATH}","GITHUB_REPOSITORY": "\${GITHUB_REPOSITORY}","GITHUB_SHA": "\${GITHUB_SHA}","GITHUB_TOKEN": "\${GITHUB_TOKEN}",@@ -853,7 +890,7 @@ jobs:"startupTimeout": 120}}- GH_AW_MCP_CONFIG_81cc4c61546f2054_EOF+ GH_AW_MCP_CONFIG_f62bc53970772047_EOF- name: Mount MCP servers as CLIsid: mount-mcp-cliscontinue-on-error: true@@ -864,9 +901,11 @@ jobs:uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0with:script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io);- const { main } = require('${{ runner.temp }}/gh-aw/actions/mount_mcp_as_cli.cjs');+ const { main } = require(path.join(actionsDir, 'mount_mcp_as_cli.cjs'));await main();- name: Clean credentialscontinue-on-error: true@@ -882,18 +921,30 @@ jobs:run: |set -o pipefailprintf '%s' "$(date +%s%3N)" > /tmp/gh-aw/agent_cli_start_ms.txt- trap 'gh_aw_exit_code=$?; mkdir -p /tmp/gh-aw >/dev/null 2>&1 || true; printf "%s" "$gh_aw_exit_code" > /tmp/gh-aw/agent_execution_exit_code.txt || true; rm -f "$HOME/.copilot/settings.json"' EXIT+ trap 'gh_aw_exit_code=$?; mkdir -p /tmp/gh-aw >/dev/null 2>&1 || true; printf "%s" "$gh_aw_exit_code" > /tmp/gh-aw/agent_execution_exit_code.txt || true; rm -f "$HOME/.copilot/settings.json"; if [ "$gh_aw_exit_code" -ne 0 ]; then echo "::error::Agent execution exited with code $gh_aw_exit_code"; fi' EXITmkdir -p "$HOME/.copilot"printf '%s' '{"builtInAgents":{"rubberDuck":false}}' > "$HOME/.copilot/settings.json"export XDG_CONFIG_HOME="$HOME"export GH_AW_MCP_CONFIG="$HOME/.copilot/mcp-config.json"+ GH_AW_COPILOT_SRC="$(command -v copilot 2>/dev/null || true)"+ if [ -z "$GH_AW_COPILOT_SRC" ] || [ ! -x "$GH_AW_COPILOT_SRC" ]; then+ echo "GitHub Copilot CLI executable not found on PATH after installation" >&2+ exit 127+ fi+ GH_AW_COPILOT_BIN="${RUNNER_TEMP}/gh-aw/bin/copilot"+ mkdir -p "${RUNNER_TEMP}/gh-aw/bin"+ if [ "$GH_AW_COPILOT_SRC" != "$GH_AW_COPILOT_BIN" ]; then+ cp "$GH_AW_COPILOT_SRC" "$GH_AW_COPILOT_BIN"+ fi+ chmod 755 "$GH_AW_COPILOT_BIN"+touch /tmp/gh-aw/agent-step-summary.mdGH_AW_NODE_BIN=$(command -v node 2>/dev/null || true)export GH_AW_NODE_BINexport COPILOT_API_KEY="$COPILOT_DUMMY_BYOK"(umask 177 && touch /tmp/gh-aw/agent-stdio.log)GH_AW_MAX_AI_CREDITS="${GH_AW_MAX_AI_CREDITS:-1000}"- printf '%s\n' "{\"\$schema\":\"https://github.com/github/gh-aw-firewall/releases/download/v0.27.44/awf-config.schema.json\",\"network\":{\"allowDomains\":[\"api.business.githubcopilot.com\",\"api.enterprise.githubcopilot.com\",\"api.github.com\",\"api.githubcopilot.com\",\"api.individual.githubcopilot.com\",\"api.snapcraft.io\",\"archive.ubuntu.com\",\"azure.archive.ubuntu.com\",\"crl.geotrust.com\",\"crl.globalsign.com\",\"crl.identrust.com\",\"crl.sectigo.com\",\"crl.thawte.com\",\"crl.usertrust.com\",\"crl.verisign.com\",\"crl3.digicert.com\",\"crl4.digicert.com\",\"crls.ssl.com\",\"github.com\",\"host.docker.internal\",\"json-schema.org\",\"json.schemastore.org\",\"keyserver.ubuntu.com\",\"ocsp.digicert.com\",\"ocsp.geotrust.com\",\"ocsp.globalsign.com\",\"ocsp.identrust.com\",\"ocsp.sectigo.com\",\"ocsp.ssl.com\",\"ocsp.thawte.com\",\"ocsp.usertrust.com\",\"ocsp.verisign.com\",\"packagecloud.io\",\"packages.cloud.google.com\",\"packages.microsoft.com\",\"ppa.launchpad.net\",\"raw.githubusercontent.com\",\"registry.npmjs.org\",\"s.symcb.com\",\"s.symcd.com\",\"security.ubuntu.com\",\"telemetry.enterprise.githubcopilot.com\",\"ts-crl.ws.symantec.com\",\"ts-ocsp.ws.symantec.com\",\"www.googleapis.com\"],\"isolation\":true,\"topologyAttach\":[\"awmg-mcpg\"]},\"apiProxy\":{\"enabled\":true,\"enableTokenSteering\":true,\"maxRuns\":500,\"maxAiCredits\":${GH_AW_MAX_AI_CREDITS},\"maxCacheMisses\":5,\"models\":{\"agent\":[\"sonnet-6x\",\"gpt-5.4\",\"gpt-5.5\",\"gpt-5.6\",\"gpt-5.3\",\"gemini-pro\",\"any\"],\"antigravity\":[\"copilot/antigravity*\",\"google/antigravity*\",\"gemini/antigravity*\"],\"any\":[\"copilot/*\",\"anthropic/*\",\"openai/*\",\"google/*\",\"gemini/*\"],\"auto\":[\"copilot/auto\",\"large\"],\"claude\":[\"agent\"],\"codex\":[\"agent\"],\"coding\":[\"copilot/gpt-5*codex*\",\"openai/gpt-5*codex*\",\"gpt-5-codex\",\"kimi\"],\"computer-use\":[\"copilot/*computer-use*\",\"google/*computer-use*\",\"gemini/*computer-use*\",\"openai/*computer-use*\"],\"copilot\":[\"agent\"],\"deep-research\":[\"copilot/deep-research*\",\"copilot/o3-deep-research*\",\"copilot/o4-mini-deep-research*\",\"google/deep-research*\",\"gemini/deep-research*\",\"openai/o3-deep-research*\",\"openai/o4-mini-deep-research*\"],\"detection\":[\"small\"],\"evals\":[\"small\"],\"fable\":[\"copilot/*fable*\",\"anthropic/*fable*\"],\"gemini\":[\"agent\"],\"gemini-3-flash\":[\"copilot/gemini-3*flash*\",\"google/gemini-3*flash*\",\"gemini/gemini-3*flash*\"],\"gemini-3-pro\":[\"copilot/gemini-3*pro*\",\"google/gemini-3*pro*\",\"google/nano-banana*\",\"gemini/gemini-3*pro*\"],\"gemini-3.1-flash\":[\"copilot/gemini-3.1*flash*\",\"google/gemini-3.1*flash*\",\"gemini/gemini-3.1*flash*\"],\"gemini-3.1-pro\":[\"copilot/gemini-3.1*pro*\",\"google/gemini-3.1*pro*\",\"gemini/gemini-3.1*pro*\"],\"gemini-3.5-flash\":[\"copilot/gemini-3.5*flash*\",\"google/gemini-3.5*flash*\",\"gemini/gemini-3.5*flash*\"],\"gemini-3.6-flash\":[\"copilot/gemini-3.6*flash*\",\"google/gemini-3.6*flash*\",\"gemini/gemini-3.6*flash*\"],\"gemini-flash\":[\"copilot/gemini-*flash*\",\"google/gemini-*flash*\",\"gemini/gemini-*flash*\"],\"gemini-flash-lite\":[\"copilot/gemini-*flash*lite*\",\"google/gemini-*flash*lite*\",\"gemini/gemini-*flash*lite*\"],\"gemini-omni\":[\"copilot/gemini-omni*\",\"google/gemini-omni*\",\"gemini/gemini-omni*\"],\"gemini-pro\":[\"copilot/gemini-*pro*\",\"google/gemini-*pro*\",\"gemini/gemini-*pro*\"],\"gemma\":[\"copilot/gemma*\",\"google/gemma*\",\"gemini/gemma*\"],\"gpt-5\":[\"copilot/gpt-5*\",\"openai/gpt-5*\"],\"gpt-5-codex\":[\"copilot/gpt-5*codex*\",\"openai/gpt-5*codex*\"],\"gpt-5-mini\":[\"copilot/gpt-5*mini*\",\"openai/gpt-5*mini*\"],\"gpt-5-nano\":[\"copilot/gpt-5*nano*\",\"openai/gpt-5*nano*\"],\"gpt-5-pro\":[\"copilot/gpt-5*pro*\",\"openai/gpt-5*pro*\"],\"gpt-5.1\":[\"copilot/gpt-5.1*\",\"openai/gpt-5.1*\"],\"gpt-5.2\":[\"copilot/gpt-5.2*\",\"openai/gpt-5.2*\"],\"gpt-5.3\":[\"copilot/gpt-5.3*\",\"openai/gpt-5.3*\"],\"gpt-5.4\":[\"copilot/gpt-5.4*\",\"openai/gpt-5.4*\"],\"gpt-5.5\":[\"copilot/gpt-5.5*\",\"openai/gpt-5.5*\"],\"gpt-5.6\":[\"copilot/gpt-5.6*\",\"openai/gpt-5.6*\"],\"grok\":[\"copilot/*grok*\",\"openai/*grok*\"],\"haiku\":[\"copilot/*haiku*\",\"anthropic/*haiku*\"],\"image-generation\":[\"copilot/gpt-image*\",\"openai/gpt-image*\",\"openai/chatgpt-image*\",\"copilot/gemini-*image*\",\"google/gemini-*image*\",\"gemini/gemini-*image*\",\"google/imagen*\"],\"kimi\":[\"copilot/kimi*\",\"openai/kimi*\"],\"kiwi\":[\"copilot/kiwi*\",\"openai/kiwi*\"],\"large\":[\"sonnet\",\"gpt-5-pro\",\"gpt-5\",\"gemini-pro\"],\"lyria\":[\"google/lyria*\",\"gemini/lyria*\",\"copilot/lyria*\"],\"mai-code\":[\"copilot/MAI-Code*\",\"copilot/mai-code*\",\"openai/MAI-Code*\"],\"mai-code-1-flash-picker\":[\"copilot/MAI-Code-1-Flash-picker*\",\"copilot/mai-code-1-flash-picker*\",\"openai/MAI-Code-1-Flash-picker*\"],\"mini\":[\"haiku\",\"gpt-5-mini\",\"gpt-5-nano\",\"gemini-flash-lite\"],\"nano-banana\":[\"copilot/nano-banana*\",\"google/nano-banana*\",\"gemini/nano-banana*\"],\"opus\":[\"copilot/*opus*\",\"anthropic/*opus*\"],\"opusplan\":[\"opus?effort=high\"],\"raptor-mini\":[\"copilot/raptor*\",\"openai/raptor*\"],\"reasoning\":[\"copilot/o1*\",\"copilot/o3*\",\"copilot/o4*\",\"openai/o1*\",\"openai/o3*\",\"openai/o4*\"],\"robotics\":[\"copilot/*robotics*\",\"google/*robotics*\",\"gemini/*robotics*\"],\"small\":[\"mini\"],\"small-agent\":[\"haiku\",\"gpt-5-mini\",\"gemini-flash\"],\"sonnet\":[\"copilot/*sonnet*\",\"anthropic/*sonnet*\"],\"sonnet-6x\":[\"copilot/*sonnet-4.5*\",\"copilot/*sonnet-4.6*\",\"copilot/*sonnet-5*\",\"copilot/*sonnet-4-5-*\",\"anthropic/*sonnet-4-5-*\",\"copilot/*sonnet-4-6*\",\"anthropic/*sonnet-4-6*\",\"anthropic/*sonnet-5*\"],\"summarization\":[\"haiku\",\"gpt-5-mini\",\"gemini-flash-lite\",\"mini\"],\"veo\":[\"google/veo*\",\"gemini/veo*\"],\"vision\":[\"copilot/gemini-*image*\",\"google/gemini-*image*\",\"gemini/gemini-*image*\",\"copilot/gemini-*flash*\",\"google/gemini-*flash*\",\"gemini/gemini-*flash*\"]}},\"container\":{\"imageTag\":\"0.27.44,squid=sha256:83e48bbe12c634be8c228a576832fe45f66c529ac3659db92bddbcf2eeb6d627,agent=sha256:0d727725c737b58c7bdf51f640cffb928385ec46517e0917c7f1a02f1bada8b4,api-proxy=sha256:b50fbadba138f6e9aba94aca09711335c489bb3b15861220cb66f6092e042dc7,cli-proxy=sha256:c064d15974f7c933ec7d3f7b4038f4fd203547b3154bdc821afd379144887eff\"},\"logging\":{\"proxyLogsDir\":\"/tmp/gh-aw/sandbox/firewall/logs\",\"auditDir\":\"/tmp/gh-aw/sandbox/firewall/audit\"}}" > "${RUNNER_TEMP}/gh-aw/awf-config.json"+ printf '%s\n' "{\"\$schema\":\"https://github.com/github/gh-aw-firewall/releases/download/v0.28.4/awf-config.schema.json\",\"network\":{\"allowDomains\":[\"api.business.githubcopilot.com\",\"api.enterprise.githubcopilot.com\",\"api.github.com\",\"api.githubcopilot.com\",\"api.individual.githubcopilot.com\",\"api.snapcraft.io\",\"archive.ubuntu.com\",\"azure.archive.ubuntu.com\",\"crl.geotrust.com\",\"crl.globalsign.com\",\"crl.identrust.com\",\"crl.sectigo.com\",\"crl.thawte.com\",\"crl.usertrust.com\",\"crl.verisign.com\",\"crl3.digicert.com\",\"crl4.digicert.com\",\"crls.ssl.com\",\"github.com\",\"host.docker.internal\",\"json-schema.org\",\"json.schemastore.org\",\"keyserver.ubuntu.com\",\"ocsp.digicert.com\",\"ocsp.geotrust.com\",\"ocsp.globalsign.com\",\"ocsp.identrust.com\",\"ocsp.sectigo.com\",\"ocsp.ssl.com\",\"ocsp.thawte.com\",\"ocsp.usertrust.com\",\"ocsp.verisign.com\",\"packagecloud.io\",\"packages.cloud.google.com\",\"packages.microsoft.com\",\"ppa.launchpad.net\",\"raw.githubusercontent.com\",\"s.symcb.com\",\"s.symcd.com\",\"security.ubuntu.com\",\"telemetry.enterprise.githubcopilot.com\",\"ts-crl.ws.symantec.com\",\"ts-ocsp.ws.symantec.com\",\"www.googleapis.com\"],\"isolation\":true,\"topologyAttach\":[\"awmg-mcpg\"]},\"apiProxy\":{\"enabled\":true,\"enableTokenSteering\":true,\"maxRuns\":500,\"maxAiCredits\":${GH_AW_MAX_AI_CREDITS},\"maxCacheMisses\":5,\"models\":{\"agent\":[\"sonnet-6x\",\"gpt-5.4\",\"gpt-5.5\",\"gpt-5.6\",\"gpt-5.3\",\"gemini-pro\",\"any\"],\"antigravity\":[\"copilot/antigravity*\",\"google/antigravity*\",\"gemini/antigravity*\"],\"any\":[\"copilot/*\",\"anthropic/*\",\"openai/*\",\"google/*\",\"gemini/*\"],\"auto\":[\"copilot/auto\",\"large\"],\"claude\":[\"agent\"],\"codex\":[\"agent\"],\"coding\":[\"copilot/gpt-5*codex*\",\"openai/gpt-5*codex*\",\"gpt-5-codex\",\"kimi\"],\"computer-use\":[\"copilot/*computer-use*\",\"google/*computer-use*\",\"gemini/*computer-use*\",\"openai/*computer-use*\"],\"copilot\":[\"agent\"],\"deep-research\":[\"copilot/deep-research*\",\"copilot/o3-deep-research*\",\"copilot/o4-mini-deep-research*\",\"google/deep-research*\",\"gemini/deep-research*\",\"openai/o3-deep-research*\",\"openai/o4-mini-deep-research*\"],\"detection\":[\"small\"],\"evals\":[\"small\"],\"fable\":[\"copilot/*fable*\",\"anthropic/*fable*\"],\"gemini\":[\"agent\"],\"gemini-3-flash\":[\"copilot/gemini-3*flash*\",\"google/gemini-3*flash*\",\"gemini/gemini-3*flash*\"],\"gemini-3-pro\":[\"copilot/gemini-3*pro*\",\"google/gemini-3*pro*\",\"google/nano-banana*\",\"gemini/gemini-3*pro*\"],\"gemini-3.1-flash\":[\"copilot/gemini-3.1*flash*\",\"google/gemini-3.1*flash*\",\"gemini/gemini-3.1*flash*\"],\"gemini-3.1-pro\":[\"copilot/gemini-3.1*pro*\",\"google/gemini-3.1*pro*\",\"gemini/gemini-3.1*pro*\"],\"gemini-3.5-flash\":[\"copilot/gemini-3.5*flash*\",\"google/gemini-3.5*flash*\",\"gemini/gemini-3.5*flash*\"],\"gemini-3.6-flash\":[\"copilot/gemini-3.6*flash*\",\"google/gemini-3.6*flash*\",\"gemini/gemini-3.6*flash*\"],\"gemini-3.7-flash\":[\"copilot/gemini-3.7*flash*\",\"google/gemini-3.7*flash*\",\"gemini/gemini-3.7*flash*\"],\"gemini-flash\":[\"copilot/gemini-*flash*\",\"google/gemini-*flash*\",\"gemini/gemini-*flash*\"],\"gemini-flash-lite\":[\"copilot/gemini-*flash*lite*\",\"google/gemini-*flash*lite*\",\"gemini/gemini-*flash*lite*\"],\"gemini-omni\":[\"copilot/gemini-omni*\",\"google/gemini-omni*\",\"gemini/gemini-omni*\"],\"gemini-pro\":[\"copilot/gemini-*pro*\",\"google/gemini-*pro*\",\"gemini/gemini-*pro*\"],\"gemma\":[\"copilot/gemma*\",\"google/gemma*\",\"gemini/gemma*\"],\"gpt-5\":[\"copilot/gpt-5*\",\"openai/gpt-5*\"],\"gpt-5-codex\":[\"copilot/gpt-5*codex*\",\"openai/gpt-5*codex*\"],\"gpt-5-mini\":[\"copilot/gpt-5*mini*\",\"openai/gpt-5*mini*\"],\"gpt-5-nano\":[\"copilot/gpt-5*nano*\",\"openai/gpt-5*nano*\"],\"gpt-5-pro\":[\"copilot/gpt-5*pro*\",\"openai/gpt-5*pro*\"],\"gpt-5.1\":[\"copilot/gpt-5.1*\",\"openai/gpt-5.1*\"],\"gpt-5.2\":[\"copilot/gpt-5.2*\",\"openai/gpt-5.2*\"],\"gpt-5.3\":[\"copilot/gpt-5.3*\",\"openai/gpt-5.3*\"],\"gpt-5.4\":[\"copilot/gpt-5.4*\",\"openai/gpt-5.4*\"],\"gpt-5.5\":[\"copilot/gpt-5.5*\",\"openai/gpt-5.5*\"],\"gpt-5.6\":[\"copilot/gpt-5.6*\",\"openai/gpt-5.6*\"],\"grok\":[\"copilot/*grok*\",\"openai/*grok*\"],\"haiku\":[\"copilot/*haiku*\",\"anthropic/*haiku*\"],\"image-generation\":[\"copilot/gpt-image*\",\"openai/gpt-image*\",\"openai/chatgpt-image*\",\"copilot/gemini-*image*\",\"google/gemini-*image*\",\"gemini/gemini-*image*\",\"google/imagen*\"],\"kimi\":[\"copilot/kimi*\",\"openai/kimi*\"],\"kiwi\":[\"copilot/kiwi*\",\"openai/kiwi*\"],\"large\":[\"sonnet\",\"gpt-5-pro\",\"gpt-5\",\"gemini-pro\"],\"lyria\":[\"google/lyria*\",\"gemini/lyria*\",\"copilot/lyria*\"],\"mai-code\":[\"copilot/MAI-Code*\",\"copilot/mai-code*\",\"openai/MAI-Code*\"],\"mai-code-1-flash-picker\":[\"copilot/MAI-Code-1-Flash-picker*\",\"copilot/mai-code-1-flash-picker*\",\"openai/MAI-Code-1-Flash-picker*\"],\"mini\":[\"haiku\",\"gpt-5-mini\",\"gpt-5-nano\",\"gemini-flash-lite\"],\"nano-banana\":[\"copilot/nano-banana*\",\"google/nano-banana*\",\"gemini/nano-banana*\"],\"opus\":[\"copilot/*opus*\",\"anthropic/*opus*\"],\"opusplan\":[\"opus?effort=high\"],\"raptor-mini\":[\"copilot/raptor*\",\"openai/raptor*\"],\"reasoning\":[\"copilot/o1*\",\"copilot/o3*\",\"copilot/o4*\",\"openai/o1*\",\"openai/o3*\",\"openai/o4*\"],\"robotics\":[\"copilot/*robotics*\",\"google/*robotics*\",\"gemini/*robotics*\"],\"small\":[\"mini\"],\"small-agent\":[\"haiku\",\"gpt-5-mini\",\"gemini-flash\"],\"sonnet\":[\"copilot/*sonnet*\",\"anthropic/*sonnet*\"],\"sonnet-6x\":[\"copilot/*sonnet-4.5*\",\"copilot/*sonnet-4.6*\",\"copilot/*sonnet-5*\",\"copilot/*sonnet-4-5-*\",\"anthropic/*sonnet-4-5-*\",\"copilot/*sonnet-4-6*\",\"anthropic/*sonnet-4-6*\",\"anthropic/*sonnet-5*\"],\"summarization\":[\"haiku\",\"gpt-5-mini\",\"gemini-flash-lite\",\"mini\"],\"veo\":[\"google/veo*\",\"gemini/veo*\"],\"vision\":[\"copilot/gemini-*image*\",\"google/gemini-*image*\",\"gemini/gemini-*image*\",\"copilot/gemini-*flash*\",\"google/gemini-*flash*\",\"gemini/gemini-*flash*\"]}},\"container\":{\"imageTag\":\"0.28.4,squid=sha256:35953d0beac18f642aa0bc98bb726a85288539b1fc630c16e94da33300058258,agent=sha256:8f18587981eff7e6291784200a88a7191d23bfd8f5723db848c640d6b4e88e46,api-proxy=sha256:64e668297d1b9d83ee102626e104c054ac2cf5cfd7225bf6e144f86962229882,cli-proxy=sha256:7ad9113203642c5b12303b97e221fc6b5dd0fb0655c09a2eba9d5c6fa3201a3b\"},\"logging\":{\"proxyLogsDir\":\"/tmp/gh-aw/sandbox/firewall/logs\",\"auditDir\":\"/tmp/gh-aw/sandbox/firewall/audit\"}}" > "${RUNNER_TEMP}/gh-aw/awf-config.json"cp "${RUNNER_TEMP}/gh-aw/awf-config.json" /tmp/gh-aw/awf-config.jsonexport GH_AW_MODELS_JSON_PATH="/tmp/gh-aw/models.json"GH_AW_DOCKER_HOST=""@@ -911,8 +962,8 @@ jobs:fifi# shellcheck disable=SC1003,SC2016,SC2086- awf --config "${RUNNER_TEMP}/gh-aw/awf-config.json" --container-workdir "${GITHUB_WORKSPACE}" --mount "${RUNNER_TEMP}/gh-aw:${RUNNER_TEMP}/gh-aw:ro" --mount "${RUNNER_TEMP}/gh-aw:/host${RUNNER_TEMP}/gh-aw:ro" ${GH_AW_TOOL_CACHE_MOUNT:+--mount "$GH_AW_TOOL_CACHE_MOUNT"} ${GH_AW_DOCKER_HOST:+--docker-host "$GH_AW_DOCKER_HOST"} --env-all --exclude-env ACTIONS_ID_TOKEN_REQUEST_TOKEN --exclude-env ACTIONS_ID_TOKEN_REQUEST_URL --exclude-env COPILOT_GITHUB_TOKEN --exclude-env GITHUB_MCP_SERVER_TOKEN --exclude-env MCP_GATEWAY_API_KEY --log-level info --skip-pull \- -- /bin/bash -c 'set +o histexpand; export PATH="${RUNNER_TEMP}/gh-aw/mcp-cli/bin:$PATH" && : "${RUNNER_TOOL_CACHE:?RUNNER_TOOL_CACHE must be set}"; GH_AW_TOOL_CACHE="$RUNNER_TOOL_CACHE"; export PATH="$(find "$GH_AW_TOOL_CACHE" -maxdepth 5 -type d -name bin 2>/dev/null | tr '\''\n'\'' '\'':'\'')$PATH"; [ -n "$GOROOT" ] && export PATH="$GOROOT/bin:$PATH" || true; [ -n "$ERLANG_HOME" ] && export PATH="$ERLANG_HOME/bin:$PATH" || true && GH_AW_NODE_EXEC="${GH_AW_NODE_BIN:-}"; if [ -z "$GH_AW_NODE_EXEC" ] || [ ! -x "$GH_AW_NODE_EXEC" ]; then GH_AW_NODE_EXEC="$(command -v node 2>/dev/null || true)"; fi; if [ -z "$GH_AW_NODE_EXEC" ]; then echo "node runtime missing on this runner — check runtimes.node in workflow YAML" >&2; exit 127; fi; GH_AW_NPM_GLOBAL_ROOT="$(npm root -g 2>/dev/null || true)"; if [ -n "$GH_AW_NPM_GLOBAL_ROOT" ]; then export NODE_PATH="${GH_AW_NPM_GLOBAL_ROOT}${NODE_PATH:+:${NODE_PATH}}"; fi; "$GH_AW_NODE_EXEC" ${RUNNER_TEMP}/gh-aw/actions/copilot_harness.cjs /usr/local/bin/copilot --add-dir /tmp/gh-aw/ --log-level all --log-dir /tmp/gh-aw/sandbox/agent/logs/ --disable-builtin-mcps --no-ask-user --allow-all-tools --allow-all-paths --add-dir "${GITHUB_WORKSPACE}" --prompt-file /tmp/gh-aw/aw-prompts/prompt.txt' 2>&1 | tee -a /tmp/gh-aw/agent-stdio.log+ awf --config "${RUNNER_TEMP}/gh-aw/awf-config.json" --container-workdir "${GITHUB_WORKSPACE}" --mount "${RUNNER_TEMP}/gh-aw:${RUNNER_TEMP}/gh-aw:ro" --mount "${RUNNER_TEMP}/gh-aw:/host${RUNNER_TEMP}/gh-aw:ro" ${GH_AW_TOOL_CACHE_MOUNT:+--mount "$GH_AW_TOOL_CACHE_MOUNT"} ${GH_AW_DOCKER_HOST:+--docker-host "$GH_AW_DOCKER_HOST"} --env-all --exclude-env ACTIONS_ID_TOKEN_REQUEST_TOKEN --exclude-env ACTIONS_ID_TOKEN_REQUEST_URL --exclude-env COPILOT_GITHUB_TOKEN --exclude-env GITHUB_MCP_SERVER_TOKEN --exclude-env MCP_GATEWAY_API_KEY --mount /tmp/gh-aw:/tmp/gh-aw:rw --log-level info --skip-pull \+ -- /bin/bash -c 'set +o histexpand; export PATH="${RUNNER_TEMP}/gh-aw/mcp-cli/bin:$PATH" && : "${RUNNER_TOOL_CACHE:?RUNNER_TOOL_CACHE must be set}"; GH_AW_TOOL_CACHE="$RUNNER_TOOL_CACHE"; export PATH="$(find "$GH_AW_TOOL_CACHE" -maxdepth 5 -type d -name bin 2>/dev/null | tr '\''\n'\'' '\'':'\'')$PATH"; [ -n "$GOROOT" ] && export PATH="$GOROOT/bin:$PATH" || true; [ -n "$ERLANG_HOME" ] && export PATH="$ERLANG_HOME/bin:$PATH" || true && GH_AW_NODE_EXEC="${GH_AW_NODE_BIN:-}"; if [ -z "$GH_AW_NODE_EXEC" ] || [ ! -x "$GH_AW_NODE_EXEC" ]; then GH_AW_NODE_EXEC="$(command -v node 2>/dev/null || true)"; fi; if [ -z "$GH_AW_NODE_EXEC" ]; then echo "node runtime missing on this runner — check runtimes.node in workflow YAML" >&2; exit 127; fi; GH_AW_NPM_GLOBAL_ROOT="$(npm root -g 2>/dev/null || true)"; if [ -n "$GH_AW_NPM_GLOBAL_ROOT" ]; then export NODE_PATH="${GH_AW_NPM_GLOBAL_ROOT}${NODE_PATH:+:${NODE_PATH}}"; fi; "$GH_AW_NODE_EXEC" "${RUNNER_TEMP}/gh-aw/actions/copilot_harness.cjs" "${RUNNER_TEMP}/gh-aw/bin/copilot" --add-dir /tmp/gh-aw/ --log-level all --log-dir /tmp/gh-aw/sandbox/agent/logs/ --disable-builtin-mcps --no-ask-user --allow-all-tools --allow-all-paths --add-dir "${GITHUB_WORKSPACE}" --prompt-file /tmp/gh-aw/aw-prompts/prompt.txt' 2>&1 | tee -a /tmp/gh-aw/agent-stdio.logenv:AWF_REFLECT_ENABLED: 1COPILOT_AGENT_RUNNER_TYPE: STANDALONE@@ -926,7 +977,7 @@ jobs:GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txtGH_AW_SAFE_OUTPUTS: ${{ steps.set-runtime-paths.outputs.GH_AW_SAFE_OUTPUTS }}GH_AW_TIMEOUT_MINUTES: 20- GH_AW_VERSION: v0.85.4+ GH_AW_VERSION: v0.87.4GITHUB_API_URL: ${{ github.api_url }}GITHUB_AW: trueGITHUB_COPILOT_INTEGRATION_ID: agentic-workflows@@ -946,7 +997,18 @@ jobs:if: always()id: detect-agent-errorscontinue-on-error: true- run: node "${RUNNER_TEMP}/gh-aw/actions/detect_agent_errors.cjs"+ env:+ GH_AW_AGENTIC_EXECUTION_OUTCOME: ${{ steps.agentic_execution.outcome }}+ GH_AW_ENGINE_STEP_TIMEOUT_MINUTES: 20+ uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0+ with:+ script: |+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));+ setupGlobals(core, github, context, exec, io, getOctokit);+ const { main } = require(path.join(actionsDir, 'detect_agent_errors.cjs'));+ await main();- name: Configure Git credentialsenv:GITHUB_REPOSITORY: ${{ github.repository }}@@ -971,9 +1033,11 @@ jobs:uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0with:script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/redact_secrets.cjs');+ const { main } = require(path.join(actionsDir, 'redact_secrets.cjs'));await main();env:GH_AW_SECRET_NAMES: 'COPILOT_GITHUB_TOKEN,GH_AW_GITHUB_MCP_SERVER_TOKEN,GH_AW_GITHUB_TOKEN,GITHUB_TOKEN'@@ -997,15 +1061,17 @@ jobs:uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:GH_AW_SAFE_OUTPUTS: ${{ steps.set-runtime-paths.outputs.GH_AW_SAFE_OUTPUTS }}- GH_AW_ALLOWED_DOMAINS: "api.business.githubcopilot.com,api.enterprise.githubcopilot.com,api.github.com,api.githubcopilot.com,api.individual.githubcopilot.com,api.snapcraft.io,archive.ubuntu.com,azure.archive.ubuntu.com,crl.geotrust.com,crl.globalsign.com,crl.identrust.com,crl.sectigo.com,crl.thawte.com,crl.usertrust.com,crl.verisign.com,crl3.digicert.com,crl4.digicert.com,crls.ssl.com,github.com,host.docker.internal,json-schema.org,json.schemastore.org,keyserver.ubuntu.com,ocsp.digicert.com,ocsp.geotrust.com,ocsp.globalsign.com,ocsp.identrust.com,ocsp.sectigo.com,ocsp.ssl.com,ocsp.thawte.com,ocsp.usertrust.com,ocsp.verisign.com,packagecloud.io,packages.cloud.google.com,packages.microsoft.com,ppa.launchpad.net,raw.githubusercontent.com,registry.npmjs.org,s.symcb.com,s.symcd.com,security.ubuntu.com,telemetry.enterprise.githubcopilot.com,ts-crl.ws.symantec.com,ts-ocsp.ws.symantec.com,www.googleapis.com"+ GH_AW_ALLOWED_DOMAINS: "api.business.githubcopilot.com,api.enterprise.githubcopilot.com,api.github.com,api.githubcopilot.com,api.individual.githubcopilot.com,api.snapcraft.io,archive.ubuntu.com,azure.archive.ubuntu.com,crl.geotrust.com,crl.globalsign.com,crl.identrust.com,crl.sectigo.com,crl.thawte.com,crl.usertrust.com,crl.verisign.com,crl3.digicert.com,crl4.digicert.com,crls.ssl.com,github.com,host.docker.internal,json-schema.org,json.schemastore.org,keyserver.ubuntu.com,ocsp.digicert.com,ocsp.geotrust.com,ocsp.globalsign.com,ocsp.identrust.com,ocsp.sectigo.com,ocsp.ssl.com,ocsp.thawte.com,ocsp.usertrust.com,ocsp.verisign.com,packagecloud.io,packages.cloud.google.com,packages.microsoft.com,ppa.launchpad.net,raw.githubusercontent.com,s.symcb.com,s.symcd.com,security.ubuntu.com,telemetry.enterprise.githubcopilot.com,ts-crl.ws.symantec.com,ts-ocsp.ws.symantec.com,www.googleapis.com"GITHUB_SERVER_URL: ${{ github.server_url }}GITHUB_API_URL: ${{ github.api_url }}GH_AW_COMMANDS: "[\"ci-doctor\"]"with:script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/collect_ndjson_output.cjs');+ const { main } = require(path.join(actionsDir, 'collect_ndjson_output.cjs'));await main();- name: Parse agent logs for step summaryif: always()@@ -1015,9 +1081,11 @@ jobs:GH_AW_SAFE_OUTPUTS: ${{ steps.set-runtime-paths.outputs.GH_AW_SAFE_OUTPUTS }}with:script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/parse_copilot_log.cjs');+ const { main } = require(path.join(actionsDir, 'parse_copilot_log.cjs'));await main();- name: Parse MCP Gateway logs for step summaryif: always()@@ -1025,9 +1093,11 @@ jobs:uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0with:script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/parse_mcp_gateway_log.cjs');+ const { main } = require(path.join(actionsDir, 'parse_mcp_gateway_log.cjs'));await main();- name: Print firewall logsif: always()@@ -1041,9 +1111,11 @@ jobs:uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0with:script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/parse_token_usage.cjs');+ const { main } = require(path.join(actionsDir, 'parse_token_usage.cjs'));await main();- name: Print AWF reflect summaryif: always()@@ -1051,9 +1123,11 @@ jobs:uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0with:script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/awf_reflect_summary.cjs');+ const { main } = require(path.join(actionsDir, 'awf_reflect_summary.cjs'));await main();- name: Write agent output placeholder if missingif: always()@@ -1076,6 +1150,18 @@ jobs:path: /tmp/gh-aw/repo-memory/defaultretention-days: 1if-no-files-found: ignore+ # Small dedicated copy of the agent output so safe-output processing+ # survives a failed or timed-out upload of the larger agent artifact+ - name: Upload agent output fallback artifact+ if: always()+ continue-on-error: true+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1+ with:+ name: agent-output-fallback+ path: |+ /tmp/gh-aw/agent_output.json+ /tmp/gh-aw/safeoutputs.jsonl+ if-no-files-found: ignore- name: Upload agent artifactsif: always()continue-on-error: true@@ -1132,7 +1218,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@2709137ea6c5b0e19aa621454dc643ea8dc526b1 # v0.85.4+ uses: github/gh-aw-actions/setup@ea4b911d44a5336c74325a122a5fd9110b45ff06 # v0.87.4with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -1141,15 +1227,16 @@ jobs:env:GH_AW_SETUP_WORKFLOW_NAME: "CI Failure Doctor"GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor.lock.yml@${{ github.ref }}- GH_AW_INFO_VERSION: "1.0.78"- GH_AW_INFO_AWF_VERSION: "v0.27.44"+ GH_AW_INFO_VERSION: "1.0.80"+ GH_AW_INFO_AWF_VERSION: "v0.28.4"GH_AW_INFO_ENGINE_ID: "copilot"- name: Download agent output artifactid: download-agent-outputcontinue-on-error: trueuses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1with:- name: agent+ pattern: "{agent,agent-output-fallback}"+ merge-multiple: truepath: /tmp/gh-aw/- name: Setup agent output environment variableid: setup-agent-output-env@@ -1157,7 +1244,16 @@ jobs:run: |mkdir -p /tmp/gh-aw/find "/tmp/gh-aw/" -type f -print- echo "GH_AW_AGENT_OUTPUT=/tmp/gh-aw/agent_output.json" >> "$GITHUB_OUTPUT"+ if [ -f "/tmp/gh-aw/agent_output.json" ]; then+ echo "GH_AW_AGENT_OUTPUT=/tmp/gh-aw/agent_output.json" >> "$GITHUB_OUTPUT"+ fi+ - name: Download detection artifact+ id: download-detection-artifact+ continue-on-error: true+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1+ with:+ name: detection+ path: /tmp/gh-aw/threat-detection/- name: Download Safe Outputs Items Manifestid: download-safe-outputs-manifestif: always()@@ -1205,9 +1301,11 @@ jobs:with:github-token: ${{ github.token }}script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context);- const { main } = require('${{ runner.temp }}/gh-aw/actions/write_daily_aic_usage_cache.cjs');+ const { main } = require(path.join(actionsDir, 'write_daily_aic_usage_cache.cjs'));await main();- name: Save daily AIC usage cacheid: save-daily-aic-cache@@ -1245,9 +1343,11 @@ jobs:with:github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/handle_noop_message.cjs');+ const { main } = require(path.join(actionsDir, 'handle_noop_message.cjs'));await main();- name: Log detection runid: detection_runs@@ -1262,9 +1362,11 @@ jobs:with:github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/handle_detection_runs.cjs');+ const { main } = require(path.join(actionsDir, 'handle_detection_runs.cjs'));await main();- name: Record missing toolid: missing_tool@@ -1277,9 +1379,11 @@ jobs:with:github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/missing_tool.cjs');+ const { main } = require(path.join(actionsDir, 'missing_tool.cjs'));await main();- name: Record incompleteid: report_incomplete@@ -1292,9 +1396,11 @@ jobs:with:github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/report_incomplete_handler.cjs');+ const { main } = require(path.join(actionsDir, 'report_incomplete_handler.cjs'));await main();- name: Handle agent failureid: handle_agent_failure@@ -1326,6 +1432,7 @@ jobs:GH_AW_MAX_CACHE_MISSES_EXCEEDED: ${{ needs.agent.outputs.max_cache_misses_exceeded }}GH_AW_MISSING_MODEL_PRICING_ERROR: ${{ needs.agent.outputs.missing_model_pricing_error }}GH_AW_MISSING_MODEL_PRICING_MODEL_NAME: ${{ needs.agent.outputs.missing_model_pricing_model_name }}+ GH_AW_SHELL_EXPANSION_GUARD_REJECTED: ${{ needs.agent.outputs.shell_expansion_guard_rejected }}GH_AW_ENGINE_API_HOSTS: "api.enterprise.githubcopilot.com,api.githubcopilot.com,api.business.githubcopilot.com,api.individual.githubcopilot.com"GH_AW_LOCKDOWN_CHECK_FAILED: ${{ needs.activation.outputs.lockdown_check_failed }}GH_AW_OAUTH_TOKEN_CHECK_FAILED: ${{ needs.activation.outputs.oauth_token_check_failed }}@@ -1346,9 +1453,11 @@ jobs:with:github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/handle_agent_failure.cjs');+ const { main } = require(path.join(actionsDir, 'handle_agent_failure.cjs'));await main();- name: Report failed jobsid: report_failed_jobs@@ -1363,9 +1472,11 @@ jobs:with:github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/report_failed_jobs.cjs');+ const { main } = require(path.join(actionsDir, 'report_failed_jobs.cjs'));await main();- name: Update reaction comment with completion statusid: conclusion@@ -1384,9 +1495,11 @@ jobs:with:github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/notify_comment_error.cjs');+ const { main } = require(path.join(actionsDir, 'notify_comment_error.cjs'));await main();detection:@@ -1407,7 +1520,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@2709137ea6c5b0e19aa621454dc643ea8dc526b1 # v0.85.4+ uses: github/gh-aw-actions/setup@ea4b911d44a5336c74325a122a5fd9110b45ff06 # v0.87.4with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -1416,15 +1529,22 @@ jobs:env:GH_AW_SETUP_WORKFLOW_NAME: "CI Failure Doctor"GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor.lock.yml@${{ github.ref }}- GH_AW_INFO_VERSION: "1.0.78"- GH_AW_INFO_AWF_VERSION: "v0.27.44"+ GH_AW_INFO_VERSION: "1.0.80"+ GH_AW_INFO_AWF_VERSION: "v0.28.4"GH_AW_INFO_ENGINE_ID: "copilot"+ - name: Download activation artifact+ continue-on-error: true+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1+ with:+ name: activation+ path: /tmp/gh-aw- name: Download agent output artifactid: download-agent-outputcontinue-on-error: trueuses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1with:- name: agent+ pattern: "{agent,agent-output-fallback}"+ merge-multiple: truepath: /tmp/gh-aw/- name: Setup agent output environment variableid: setup-agent-output-env@@ -1432,7 +1552,9 @@ jobs:run: |mkdir -p /tmp/gh-aw/find "/tmp/gh-aw/" -type f -print- echo "GH_AW_AGENT_OUTPUT=/tmp/gh-aw/agent_output.json" >> "$GITHUB_OUTPUT"+ if [ -f "/tmp/gh-aw/agent_output.json" ]; then+ echo "GH_AW_AGENT_OUTPUT=/tmp/gh-aw/agent_output.json" >> "$GITHUB_OUTPUT"+ fi- name: Checkout repository for patch contextif: needs.agent.outputs.has_patch == 'true'uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1@@ -1444,7 +1566,7 @@ jobs:rm -rf /tmp/gh-aw/sandbox/firewall/logsrm -rf /tmp/gh-aw/sandbox/firewall/audit- name: Download container images- run: bash "${RUNNER_TEMP}/gh-aw/actions/download_docker_images.sh" ghcr.io/github/gh-aw-firewall/agent:0.27.44@sha256:0d727725c737b58c7bdf51f640cffb928385ec46517e0917c7f1a02f1bada8b4 ghcr.io/github/gh-aw-firewall/api-proxy:0.27.44@sha256:b50fbadba138f6e9aba94aca09711335c489bb3b15861220cb66f6092e042dc7 ghcr.io/github/gh-aw-firewall/squid:0.27.44@sha256:83e48bbe12c634be8c228a576832fe45f66c529ac3659db92bddbcf2eeb6d627+ run: bash "${RUNNER_TEMP}/gh-aw/actions/download_docker_images.sh" ghcr.io/github/gh-aw-firewall/agent:0.28.4@sha256:8f18587981eff7e6291784200a88a7191d23bfd8f5723db848c640d6b4e88e46 ghcr.io/github/gh-aw-firewall/api-proxy:0.28.4@sha256:64e668297d1b9d83ee102626e104c054ac2cf5cfd7225bf6e144f86962229882 ghcr.io/github/gh-aw-firewall/squid:0.28.4@sha256:35953d0beac18f642aa0bc98bb726a85288539b1fc630c16e94da33300058258- name: Check if detection neededid: detection_guardif: always()@@ -1468,25 +1590,7 @@ jobs:- name: Prepare threat detection filesif: always() && steps.detection_guard.outputs.run_detection == 'true'run: |- mkdir -p /tmp/gh-aw/threat-detection/aw-prompts- rm -f /tmp/gh-aw/agent_usage.json- cp /tmp/gh-aw/aw-prompts/prompt.txt /tmp/gh-aw/threat-detection/aw-prompts/prompt.txt 2>/dev/null || true- if [ ! -s /tmp/gh-aw/threat-detection/aw-prompts/prompt.txt ]; then- echo "::warning::ERR_VALIDATION: Missing or empty detection context prompt at /tmp/gh-aw/threat-detection/aw-prompts/prompt.txt. Ensure the agent artifact includes /tmp/gh-aw/aw-prompts/prompt.txt. Detection will continue with fallback workflow context."- fi- cp /tmp/gh-aw/agent_output.json /tmp/gh-aw/threat-detection/agent_output.json 2>/dev/null || true- for f in /tmp/gh-aw/aw-*.patch; do- if [ -f "$f" ]; then- cp "$f" /tmp/gh-aw/threat-detection/ 2>/dev/null || true- fi- done- for f in /tmp/gh-aw/aw-*.bundle; do- if [ -f "$f" ]; then- cp "$f" /tmp/gh-aw/threat-detection/ 2>/dev/null || true- fi- done- echo "Prepared threat detection files:"- ls -la /tmp/gh-aw/threat-detection/ 2>/dev/null || true+ bash "${RUNNER_TEMP}/gh-aw/actions/prepare_threat_detection_files.sh"- name: Setup threat detectionif: always() && steps.detection_guard.outputs.run_detection == 'true'uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0@@ -1495,85 +1599,51 @@ jobs:WORKFLOW_DESCRIPTION: "On-demand CI failure investigator for pull requests. Triggered by the `/ci-doctor`\nslash command posted in a pull request comment. Analyzes every failed CI pipeline on\nthe pull request, identifies root causes and patterns, and posts a single consolidated\nsummary comment with actionable remedies. Reads the CI Doctor (Merge Queue) knowledge\nbase (read-only) to flag known recurring failures."HAS_PATCH: ${{ needs.agent.outputs.has_patch }}GH_AW_DETECTION_CONTINUE_ON_ERROR: "true"+ GH_AW_DETECTION_SKIP_PROMPT_SUMMARY: "true"with:script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/setup_threat_detection.cjs');+ const { main } = require(path.join(actionsDir, 'setup_threat_detection.cjs'));await main();- name: Ensure threat-detection directory and logif: always() && steps.detection_guard.outputs.run_detection == 'true'run: |mkdir -p /tmp/gh-aw/threat-detectiontouch /tmp/gh-aw/threat-detection/detection.log- rm -f /tmp/gh-aw/threat-detection/step-summary.md- touch /tmp/gh-aw/threat-detection/step-summary.md- - name: Setup Node.js- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0- with:- node-version: '24'- package-manager-cache: false+ - name: Install AWF binary+ run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.28.4 --rootless- name: Install GitHub Copilot CLIrun: bash "${RUNNER_TEMP}/gh-aw/actions/install_copilot_cli.sh"env:GH_HOST: github.com- GH_AW_COMPILED_VERSION: v0.85.4- - name: Install AWF binary- run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.27.44- - name: Execute GitHub Copilot CLI+ GH_AW_COMPILED_VERSION: v0.87.4+ - name: Install threat-detect binaryif: always() && steps.detection_guard.outputs.run_detection == 'true'continue-on-error: true+ run: |+ bash "${RUNNER_TEMP}/gh-aw/actions/install_threat_detect_binary.sh" v0.4.11+ - name: Execute threat detection with AWFid: detection_agentic_execution- # Copilot CLI tool arguments (sorted):+ if: always() && steps.detection_guard.outputs.run_detection == 'true'+ continue-on-error: truetimeout-minutes: 20- run: |- set -o pipefail- printf '%s' "$(date +%s%3N)" > /tmp/gh-aw/agent_cli_start_ms.txt- trap 'gh_aw_exit_code=$?; mkdir -p /tmp/gh-aw >/dev/null 2>&1 || true; printf "%s" "$gh_aw_exit_code" > /tmp/gh-aw/agent_execution_exit_code.txt || true; rm -f "$HOME/.copilot/settings.json"' EXIT- mkdir -p "$HOME/.copilot"- printf '%s' '{"builtInAgents":{"rubberDuck":false}}' > "$HOME/.copilot/settings.json"- export XDG_CONFIG_HOME="$HOME"- touch /tmp/gh-aw/agent-step-summary.md- GH_AW_NODE_BIN=$(command -v node 2>/dev/null || true)- export GH_AW_NODE_BIN- export COPILOT_API_KEY="$COPILOT_DUMMY_BYOK"- (umask 177 && touch /tmp/gh-aw/threat-detection/detection.log)- GH_AW_MAX_AI_CREDITS="${GH_AW_MAX_AI_CREDITS:-400}"- printf '%s\n' "{\"\$schema\":\"https://github.com/github/gh-aw-firewall/releases/download/v0.27.44/awf-config.schema.json\",\"network\":{\"allowDomains\":[\"api.business.githubcopilot.com\",\"api.enterprise.githubcopilot.com\",\"api.github.com\",\"api.githubcopilot.com\",\"api.individual.githubcopilot.com\",\"github.com\",\"host.docker.internal\",\"registry.npmjs.org\",\"telemetry.enterprise.githubcopilot.com\"]},\"apiProxy\":{\"enabled\":true,\"enableTokenSteering\":true,\"maxRuns\":500,\"maxAiCredits\":${GH_AW_MAX_AI_CREDITS},\"maxCacheMisses\":5,\"models\":{\"agent\":[\"sonnet-6x\",\"gpt-5.4\",\"gpt-5.5\",\"gpt-5.6\",\"gpt-5.3\",\"gemini-pro\",\"any\"],\"antigravity\":[\"copilot/antigravity*\",\"google/antigravity*\",\"gemini/antigravity*\"],\"any\":[\"copilot/*\",\"anthropic/*\",\"openai/*\",\"google/*\",\"gemini/*\"],\"auto\":[\"copilot/auto\",\"large\"],\"claude\":[\"agent\"],\"codex\":[\"agent\"],\"coding\":[\"copilot/gpt-5*codex*\",\"openai/gpt-5*codex*\",\"gpt-5-codex\",\"kimi\"],\"computer-use\":[\"copilot/*computer-use*\",\"google/*computer-use*\",\"gemini/*computer-use*\",\"openai/*computer-use*\"],\"copilot\":[\"agent\"],\"deep-research\":[\"copilot/deep-research*\",\"copilot/o3-deep-research*\",\"copilot/o4-mini-deep-research*\",\"google/deep-research*\",\"gemini/deep-research*\",\"openai/o3-deep-research*\",\"openai/o4-mini-deep-research*\"],\"detection\":[\"small\"],\"evals\":[\"small\"],\"fable\":[\"copilot/*fable*\",\"anthropic/*fable*\"],\"gemini\":[\"agent\"],\"gemini-3-flash\":[\"copilot/gemini-3*flash*\",\"google/gemini-3*flash*\",\"gemini/gemini-3*flash*\"],\"gemini-3-pro\":[\"copilot/gemini-3*pro*\",\"google/gemini-3*pro*\",\"google/nano-banana*\",\"gemini/gemini-3*pro*\"],\"gemini-3.1-flash\":[\"copilot/gemini-3.1*flash*\",\"google/gemini-3.1*flash*\",\"gemini/gemini-3.1*flash*\"],\"gemini-3.1-pro\":[\"copilot/gemini-3.1*pro*\",\"google/gemini-3.1*pro*\",\"gemini/gemini-3.1*pro*\"],\"gemini-3.5-flash\":[\"copilot/gemini-3.5*flash*\",\"google/gemini-3.5*flash*\",\"gemini/gemini-3.5*flash*\"],\"gemini-3.6-flash\":[\"copilot/gemini-3.6*flash*\",\"google/gemini-3.6*flash*\",\"gemini/gemini-3.6*flash*\"],\"gemini-flash\":[\"copilot/gemini-*flash*\",\"google/gemini-*flash*\",\"gemini/gemini-*flash*\"],\"gemini-flash-lite\":[\"copilot/gemini-*flash*lite*\",\"google/gemini-*flash*lite*\",\"gemini/gemini-*flash*lite*\"],\"gemini-omni\":[\"copilot/gemini-omni*\",\"google/gemini-omni*\",\"gemini/gemini-omni*\"],\"gemini-pro\":[\"copilot/gemini-*pro*\",\"google/gemini-*pro*\",\"gemini/gemini-*pro*\"],\"gemma\":[\"copilot/gemma*\",\"google/gemma*\",\"gemini/gemma*\"],\"gpt-5\":[\"copilot/gpt-5*\",\"openai/gpt-5*\"],\"gpt-5-codex\":[\"copilot/gpt-5*codex*\",\"openai/gpt-5*codex*\"],\"gpt-5-mini\":[\"copilot/gpt-5*mini*\",\"openai/gpt-5*mini*\"],\"gpt-5-nano\":[\"copilot/gpt-5*nano*\",\"openai/gpt-5*nano*\"],\"gpt-5-pro\":[\"copilot/gpt-5*pro*\",\"openai/gpt-5*pro*\"],\"gpt-5.1\":[\"copilot/gpt-5.1*\",\"openai/gpt-5.1*\"],\"gpt-5.2\":[\"copilot/gpt-5.2*\",\"openai/gpt-5.2*\"],\"gpt-5.3\":[\"copilot/gpt-5.3*\",\"openai/gpt-5.3*\"],\"gpt-5.4\":[\"copilot/gpt-5.4*\",\"openai/gpt-5.4*\"],\"gpt-5.5\":[\"copilot/gpt-5.5*\",\"openai/gpt-5.5*\"],\"gpt-5.6\":[\"copilot/gpt-5.6*\",\"openai/gpt-5.6*\"],\"grok\":[\"copilot/*grok*\",\"openai/*grok*\"],\"haiku\":[\"copilot/*haiku*\",\"anthropic/*haiku*\"],\"image-generation\":[\"copilot/gpt-image*\",\"openai/gpt-image*\",\"openai/chatgpt-image*\",\"copilot/gemini-*image*\",\"google/gemini-*image*\",\"gemini/gemini-*image*\",\"google/imagen*\"],\"kimi\":[\"copilot/kimi*\",\"openai/kimi*\"],\"kiwi\":[\"copilot/kiwi*\",\"openai/kiwi*\"],\"large\":[\"sonnet\",\"gpt-5-pro\",\"gpt-5\",\"gemini-pro\"],\"lyria\":[\"google/lyria*\",\"gemini/lyria*\",\"copilot/lyria*\"],\"mai-code\":[\"copilot/MAI-Code*\",\"copilot/mai-code*\",\"openai/MAI-Code*\"],\"mai-code-1-flash-picker\":[\"copilot/MAI-Code-1-Flash-picker*\",\"copilot/mai-code-1-flash-picker*\",\"openai/MAI-Code-1-Flash-picker*\"],\"mini\":[\"haiku\",\"gpt-5-mini\",\"gpt-5-nano\",\"gemini-flash-lite\"],\"nano-banana\":[\"copilot/nano-banana*\",\"google/nano-banana*\",\"gemini/nano-banana*\"],\"opus\":[\"copilot/*opus*\",\"anthropic/*opus*\"],\"opusplan\":[\"opus?effort=high\"],\"raptor-mini\":[\"copilot/raptor*\",\"openai/raptor*\"],\"reasoning\":[\"copilot/o1*\",\"copilot/o3*\",\"copilot/o4*\",\"openai/o1*\",\"openai/o3*\",\"openai/o4*\"],\"robotics\":[\"copilot/*robotics*\",\"google/*robotics*\",\"gemini/*robotics*\"],\"small\":[\"mini\"],\"small-agent\":[\"haiku\",\"gpt-5-mini\",\"gemini-flash\"],\"sonnet\":[\"copilot/*sonnet*\",\"anthropic/*sonnet*\"],\"sonnet-6x\":[\"copilot/*sonnet-4.5*\",\"copilot/*sonnet-4.6*\",\"copilot/*sonnet-5*\",\"copilot/*sonnet-4-5-*\",\"anthropic/*sonnet-4-5-*\",\"copilot/*sonnet-4-6*\",\"anthropic/*sonnet-4-6*\",\"anthropic/*sonnet-5*\"],\"summarization\":[\"haiku\",\"gpt-5-mini\",\"gemini-flash-lite\",\"mini\"],\"veo\":[\"google/veo*\",\"gemini/veo*\"],\"vision\":[\"copilot/gemini-*image*\",\"google/gemini-*image*\",\"gemini/gemini-*image*\",\"copilot/gemini-*flash*\",\"google/gemini-*flash*\",\"gemini/gemini-*flash*\"]}},\"container\":{\"imageTag\":\"0.27.44,squid=sha256:83e48bbe12c634be8c228a576832fe45f66c529ac3659db92bddbcf2eeb6d627,agent=sha256:0d727725c737b58c7bdf51f640cffb928385ec46517e0917c7f1a02f1bada8b4,api-proxy=sha256:b50fbadba138f6e9aba94aca09711335c489bb3b15861220cb66f6092e042dc7,cli-proxy=sha256:c064d15974f7c933ec7d3f7b4038f4fd203547b3154bdc821afd379144887eff\"},\"logging\":{\"proxyLogsDir\":\"/tmp/gh-aw/sandbox/firewall/logs\",\"auditDir\":\"/tmp/gh-aw/sandbox/firewall/audit\"}}" > "${RUNNER_TEMP}/gh-aw/awf-config.json"- cp "${RUNNER_TEMP}/gh-aw/awf-config.json" /tmp/gh-aw/awf-config.json- export GH_AW_MODELS_JSON_PATH="/tmp/gh-aw/models.json"- GH_AW_DOCKER_HOST=""- if [[ "${DOCKER_HOST:-}" =~ ^tcp:// ]]; then- GH_AW_DOCKER_HOST="${DOCKER_HOST}"- fi- if [[ "${DOCKER_HOST:-}" =~ ^tcp:// ]]; then- _GH_AW_CHROOT_JSON=$(jq -c --arg src "${RUNNER_TEMP}/gh-aw" --arg user "$(id -un)" --argjson uid "$(id -u)" --argjson gid "$(id -g)" --arg home "${RUNNER_TEMP}/gh-aw/home" '.chroot={"binariesSourcePath":$src,"identity":{"user":$user,"uid":$uid,"gid":$gid,"home":$home}}' "${RUNNER_TEMP}/gh-aw/awf-config.json") || { echo "chroot config patch failed" >&2; exit 1; }- printf '%s\n' "$_GH_AW_CHROOT_JSON" > "${RUNNER_TEMP}/gh-aw/awf-config.json"- printf '%s\n' "$_GH_AW_CHROOT_JSON" > "${RUNNER_TEMP}/gh-aw/awf-config.json"- fi- GH_AW_TOOL_CACHE_MOUNT=""- GH_AW_TOOL_CACHE="${RUNNER_TOOL_CACHE:?RUNNER_TOOL_CACHE must be set}"- if [ -d "$GH_AW_TOOL_CACHE" ]; then- if [[ "$GH_AW_TOOL_CACHE" != /opt/* ]]; then- GH_AW_TOOL_CACHE_MOUNT="$GH_AW_TOOL_CACHE:$GH_AW_TOOL_CACHE:ro"- fi- fi- # shellcheck disable=SC1003,SC2016,SC2086- awf --config "${RUNNER_TEMP}/gh-aw/awf-config.json" --container-workdir "${GITHUB_WORKSPACE}" --mount "${RUNNER_TEMP}/gh-aw:${RUNNER_TEMP}/gh-aw:ro" --mount "${RUNNER_TEMP}/gh-aw:/host${RUNNER_TEMP}/gh-aw:ro" ${GH_AW_TOOL_CACHE_MOUNT:+--mount "$GH_AW_TOOL_CACHE_MOUNT"} ${GH_AW_DOCKER_HOST:+--docker-host "$GH_AW_DOCKER_HOST"} --env-all --exclude-env ACTIONS_ID_TOKEN_REQUEST_TOKEN --exclude-env ACTIONS_ID_TOKEN_REQUEST_URL --exclude-env COPILOT_GITHUB_TOKEN --log-level info --skip-pull \- -- /bin/bash -c 'set +o histexpand; : "${RUNNER_TOOL_CACHE:?RUNNER_TOOL_CACHE must be set}"; GH_AW_TOOL_CACHE="$RUNNER_TOOL_CACHE"; export PATH="$(find "$GH_AW_TOOL_CACHE" -maxdepth 5 -type d -name bin 2>/dev/null | tr '\''\n'\'' '\'':'\'')$PATH"; [ -n "$GOROOT" ] && export PATH="$GOROOT/bin:$PATH" || true; [ -n "$ERLANG_HOME" ] && export PATH="$ERLANG_HOME/bin:$PATH" || true && GH_AW_NODE_EXEC="${GH_AW_NODE_BIN:-}"; if [ -z "$GH_AW_NODE_EXEC" ] || [ ! -x "$GH_AW_NODE_EXEC" ]; then GH_AW_NODE_EXEC="$(command -v node 2>/dev/null || true)"; fi; if [ -z "$GH_AW_NODE_EXEC" ]; then echo "node runtime missing on this runner — check runtimes.node in workflow YAML" >&2; exit 127; fi; GH_AW_NPM_GLOBAL_ROOT="$(npm root -g 2>/dev/null || true)"; if [ -n "$GH_AW_NPM_GLOBAL_ROOT" ]; then export NODE_PATH="${GH_AW_NPM_GLOBAL_ROOT}${NODE_PATH:+:${NODE_PATH}}"; fi; "$GH_AW_NODE_EXEC" ${RUNNER_TEMP}/gh-aw/actions/copilot_harness.cjs /usr/local/bin/copilot --add-dir /tmp/gh-aw/ --log-level all --log-dir /tmp/gh-aw/sandbox/agent/logs/ --disable-builtin-mcps --no-ask-user --allow-all-tools --add-dir "${GITHUB_WORKSPACE}" --prompt-file /tmp/gh-aw/aw-prompts/prompt.txt' 2>&1 | tee -a /tmp/gh-aw/threat-detection/detection.logenv:AWF_REFLECT_ENABLED: 1COPILOT_AGENT_RUNNER_TYPE: STANDALONECOPILOT_DUMMY_BYOK: dummy-byok-key-for-offline-modeCOPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}COPILOT_MODEL: claude-sonnet-4.6+ GH_AW_HARNESS_MAX_RETRIES: 0GH_AW_LLM_PROVIDER: githubGH_AW_MAX_AI_CREDITS: ${{ vars.GH_AW_DEFAULT_DETECTION_MAX_AI_CREDITS || '400' }}GH_AW_MAX_TURNS: ${{ vars.GH_AW_DEFAULT_MAX_TURNS || '' }}GH_AW_PHASE: detectionGH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txtGH_AW_TIMEOUT_MINUTES: 20- GH_AW_VERSION: v0.85.4+ GH_AW_VERSION: v0.87.4GITHUB_API_URL: ${{ github.api_url }}GITHUB_AW: trueGITHUB_COPILOT_INTEGRATION_ID: agentic-workflows@@ -1588,58 +1658,103 @@ jobs:GIT_COMMITTER_NAME: github-actions[bot]RUNNER_TEMP: ${{ runner.temp }}TRACEPARENT: ${{ env.GITHUB_AW_OTEL_TRACE_ID != '' && env.GITHUB_AW_OTEL_PARENT_SPAN_ID != '' && format('00-{0}-{1}-01', env.GITHUB_AW_OTEL_TRACE_ID, env.GITHUB_AW_OTEL_PARENT_SPAN_ID) || '' }}- - name: Parse threat detection token usage for step summary- id: parse_detection_token_usage- if: always()+ WORKFLOW_NAME: "CI Failure Doctor"+ WORKFLOW_DESCRIPTION: "On-demand CI failure investigator for pull requests. Triggered by the `/ci-doctor`\nslash command posted in a pull request comment. Analyzes every failed CI pipeline on\nthe pull request, identifies root causes and patterns, and posts a single consolidated\nsummary comment with actionable remedies. Reads the CI Doctor (Merge Queue) knowledge\nbase (read-only) to flag known recurring failures."+ HAS_PATCH: ${{ needs.agent.outputs.has_patch }}+ GH_AW_DETECTION_CONTINUE_ON_ERROR: "true"+ run: |+ set -o pipefail+ printf '%s' "$(date +%s%3N)" > /tmp/gh-aw/agent_cli_start_ms.txt+ GH_AW_COPILOT_SRC="$(command -v copilot 2>/dev/null || true)"+ if [ -z "$GH_AW_COPILOT_SRC" ] || [ ! -x "$GH_AW_COPILOT_SRC" ]; then+ echo "GitHub Copilot CLI executable not found on PATH after installation" >&2+ exit 127+ fi+ GH_AW_COPILOT_BIN="${RUNNER_TEMP}/gh-aw/bin/copilot"+ mkdir -p "${RUNNER_TEMP}/gh-aw/bin"+ if [ "$GH_AW_COPILOT_SRC" != "$GH_AW_COPILOT_BIN" ]; then+ cp "$GH_AW_COPILOT_SRC" "$GH_AW_COPILOT_BIN"+ fi+ chmod 755 "$GH_AW_COPILOT_BIN"++ (umask 177 && touch /tmp/gh-aw/threat-detection/detection.log)+ GH_AW_MAX_AI_CREDITS="${{ vars.GH_AW_DEFAULT_DETECTION_MAX_AI_CREDITS || '400' }}"+ printf '%s\n' "{\"\$schema\":\"https://github.com/github/gh-aw-firewall/releases/download/v0.28.4/awf-config.schema.json\",\"network\":{\"allowDomains\":[\"api.business.githubcopilot.com\",\"api.enterprise.githubcopilot.com\",\"api.github.com\",\"api.githubcopilot.com\",\"api.individual.githubcopilot.com\",\"github.com\",\"host.docker.internal\",\"raw.githubusercontent.com\",\"telemetry.enterprise.githubcopilot.com\"]},\"apiProxy\":{\"enabled\":true,\"enableTokenSteering\":true,\"maxRuns\":500,\"maxAiCredits\":${GH_AW_MAX_AI_CREDITS},\"maxCacheMisses\":5,\"models\":{\"agent\":[\"sonnet-6x\",\"gpt-5.4\",\"gpt-5.5\",\"gpt-5.6\",\"gpt-5.3\",\"gemini-pro\",\"any\"],\"antigravity\":[\"copilot/antigravity*\",\"google/antigravity*\",\"gemini/antigravity*\"],\"any\":[\"copilot/*\",\"anthropic/*\",\"openai/*\",\"google/*\",\"gemini/*\"],\"auto\":[\"copilot/auto\",\"large\"],\"claude\":[\"agent\"],\"codex\":[\"agent\"],\"coding\":[\"copilot/gpt-5*codex*\",\"openai/gpt-5*codex*\",\"gpt-5-codex\",\"kimi\"],\"computer-use\":[\"copilot/*computer-use*\",\"google/*computer-use*\",\"gemini/*computer-use*\",\"openai/*computer-use*\"],\"copilot\":[\"agent\"],\"deep-research\":[\"copilot/deep-research*\",\"copilot/o3-deep-research*\",\"copilot/o4-mini-deep-research*\",\"google/deep-research*\",\"gemini/deep-research*\",\"openai/o3-deep-research*\",\"openai/o4-mini-deep-research*\"],\"detection\":[\"small\"],\"evals\":[\"small\"],\"fable\":[\"copilot/*fable*\",\"anthropic/*fable*\"],\"gemini\":[\"agent\"],\"gemini-3-flash\":[\"copilot/gemini-3*flash*\",\"google/gemini-3*flash*\",\"gemini/gemini-3*flash*\"],\"gemini-3-pro\":[\"copilot/gemini-3*pro*\",\"google/gemini-3*pro*\",\"google/nano-banana*\",\"gemini/gemini-3*pro*\"],\"gemini-3.1-flash\":[\"copilot/gemini-3.1*flash*\",\"google/gemini-3.1*flash*\",\"gemini/gemini-3.1*flash*\"],\"gemini-3.1-pro\":[\"copilot/gemini-3.1*pro*\",\"google/gemini-3.1*pro*\",\"gemini/gemini-3.1*pro*\"],\"gemini-3.5-flash\":[\"copilot/gemini-3.5*flash*\",\"google/gemini-3.5*flash*\",\"gemini/gemini-3.5*flash*\"],\"gemini-3.6-flash\":[\"copilot/gemini-3.6*flash*\",\"google/gemini-3.6*flash*\",\"gemini/gemini-3.6*flash*\"],\"gemini-3.7-flash\":[\"copilot/gemini-3.7*flash*\",\"google/gemini-3.7*flash*\",\"gemini/gemini-3.7*flash*\"],\"gemini-flash\":[\"copilot/gemini-*flash*\",\"google/gemini-*flash*\",\"gemini/gemini-*flash*\"],\"gemini-flash-lite\":[\"copilot/gemini-*flash*lite*\",\"google/gemini-*flash*lite*\",\"gemini/gemini-*flash*lite*\"],\"gemini-omni\":[\"copilot/gemini-omni*\",\"google/gemini-omni*\",\"gemini/gemini-omni*\"],\"gemini-pro\":[\"copilot/gemini-*pro*\",\"google/gemini-*pro*\",\"gemini/gemini-*pro*\"],\"gemma\":[\"copilot/gemma*\",\"google/gemma*\",\"gemini/gemma*\"],\"gpt-5\":[\"copilot/gpt-5*\",\"openai/gpt-5*\"],\"gpt-5-codex\":[\"copilot/gpt-5*codex*\",\"openai/gpt-5*codex*\"],\"gpt-5-mini\":[\"copilot/gpt-5*mini*\",\"openai/gpt-5*mini*\"],\"gpt-5-nano\":[\"copilot/gpt-5*nano*\",\"openai/gpt-5*nano*\"],\"gpt-5-pro\":[\"copilot/gpt-5*pro*\",\"openai/gpt-5*pro*\"],\"gpt-5.1\":[\"copilot/gpt-5.1*\",\"openai/gpt-5.1*\"],\"gpt-5.2\":[\"copilot/gpt-5.2*\",\"openai/gpt-5.2*\"],\"gpt-5.3\":[\"copilot/gpt-5.3*\",\"openai/gpt-5.3*\"],\"gpt-5.4\":[\"copilot/gpt-5.4*\",\"openai/gpt-5.4*\"],\"gpt-5.5\":[\"copilot/gpt-5.5*\",\"openai/gpt-5.5*\"],\"gpt-5.6\":[\"copilot/gpt-5.6*\",\"openai/gpt-5.6*\"],\"grok\":[\"copilot/*grok*\",\"openai/*grok*\"],\"haiku\":[\"copilot/*haiku*\",\"anthropic/*haiku*\"],\"image-generation\":[\"copilot/gpt-image*\",\"openai/gpt-image*\",\"openai/chatgpt-image*\",\"copilot/gemini-*image*\",\"google/gemini-*image*\",\"gemini/gemini-*image*\",\"google/imagen*\"],\"kimi\":[\"copilot/kimi*\",\"openai/kimi*\"],\"kiwi\":[\"copilot/kiwi*\",\"openai/kiwi*\"],\"large\":[\"sonnet\",\"gpt-5-pro\",\"gpt-5\",\"gemini-pro\"],\"lyria\":[\"google/lyria*\",\"gemini/lyria*\",\"copilot/lyria*\"],\"mai-code\":[\"copilot/MAI-Code*\",\"copilot/mai-code*\",\"openai/MAI-Code*\"],\"mai-code-1-flash-picker\":[\"copilot/MAI-Code-1-Flash-picker*\",\"copilot/mai-code-1-flash-picker*\",\"openai/MAI-Code-1-Flash-picker*\"],\"mini\":[\"haiku\",\"gpt-5-mini\",\"gpt-5-nano\",\"gemini-flash-lite\"],\"nano-banana\":[\"copilot/nano-banana*\",\"google/nano-banana*\",\"gemini/nano-banana*\"],\"opus\":[\"copilot/*opus*\",\"anthropic/*opus*\"],\"opusplan\":[\"opus?effort=high\"],\"raptor-mini\":[\"copilot/raptor*\",\"openai/raptor*\"],\"reasoning\":[\"copilot/o1*\",\"copilot/o3*\",\"copilot/o4*\",\"openai/o1*\",\"openai/o3*\",\"openai/o4*\"],\"robotics\":[\"copilot/*robotics*\",\"google/*robotics*\",\"gemini/*robotics*\"],\"small\":[\"mini\"],\"small-agent\":[\"haiku\",\"gpt-5-mini\",\"gemini-flash\"],\"sonnet\":[\"copilot/*sonnet*\",\"anthropic/*sonnet*\"],\"sonnet-6x\":[\"copilot/*sonnet-4.5*\",\"copilot/*sonnet-4.6*\",\"copilot/*sonnet-5*\",\"copilot/*sonnet-4-5-*\",\"anthropic/*sonnet-4-5-*\",\"copilot/*sonnet-4-6*\",\"anthropic/*sonnet-4-6*\",\"anthropic/*sonnet-5*\"],\"summarization\":[\"haiku\",\"gpt-5-mini\",\"gemini-flash-lite\",\"mini\"],\"veo\":[\"google/veo*\",\"gemini/veo*\"],\"vision\":[\"copilot/gemini-*image*\",\"google/gemini-*image*\",\"gemini/gemini-*image*\",\"copilot/gemini-*flash*\",\"google/gemini-*flash*\",\"gemini/gemini-*flash*\"]}},\"container\":{\"imageTag\":\"0.28.4,squid=sha256:35953d0beac18f642aa0bc98bb726a85288539b1fc630c16e94da33300058258,agent=sha256:8f18587981eff7e6291784200a88a7191d23bfd8f5723db848c640d6b4e88e46,api-proxy=sha256:64e668297d1b9d83ee102626e104c054ac2cf5cfd7225bf6e144f86962229882,cli-proxy=sha256:7ad9113203642c5b12303b97e221fc6b5dd0fb0655c09a2eba9d5c6fa3201a3b\"},\"logging\":{\"proxyLogsDir\":\"/tmp/gh-aw/sandbox/firewall/logs\",\"auditDir\":\"/tmp/gh-aw/sandbox/firewall/audit\"}}" > "${RUNNER_TEMP}/gh-aw/awf-config.json"+ cp "${RUNNER_TEMP}/gh-aw/awf-config.json" /tmp/gh-aw/awf-config.json+ export GH_AW_MODELS_JSON_PATH="/tmp/gh-aw/models.json"+ GH_AW_DOCKER_HOST=""+ if [[ "${DOCKER_HOST:-}" =~ ^tcp:// ]]; then+ GH_AW_DOCKER_HOST="${DOCKER_HOST}"+ fi+ if [[ "${DOCKER_HOST:-}" =~ ^tcp:// ]]; then+ _GH_AW_CHROOT_JSON=$(jq -c --arg src "${RUNNER_TEMP}/gh-aw" --arg user "$(id -un)" --argjson uid "$(id -u)" --argjson gid "$(id -g)" --arg home "${RUNNER_TEMP}/gh-aw/home" '.chroot={"binariesSourcePath":$src,"identity":{"user":$user,"uid":$uid,"gid":$gid,"home":$home}}' "${RUNNER_TEMP}/gh-aw/awf-config.json") || { echo "chroot config patch failed" >&2; exit 1; }+ printf '%s\n' "$_GH_AW_CHROOT_JSON" > "${RUNNER_TEMP}/gh-aw/awf-config.json"+ printf '%s\n' "$_GH_AW_CHROOT_JSON" > "${RUNNER_TEMP}/gh-aw/awf-config.json"+ fi+ GH_AW_TOOL_CACHE_MOUNT=""+ GH_AW_TOOL_CACHE="${RUNNER_TOOL_CACHE:?RUNNER_TOOL_CACHE must be set}"+ if [ -d "$GH_AW_TOOL_CACHE" ]; then+ if [[ "$GH_AW_TOOL_CACHE" != /opt/* ]]; then+ GH_AW_TOOL_CACHE_MOUNT="$GH_AW_TOOL_CACHE:$GH_AW_TOOL_CACHE:ro"+ fi+ fi+ # shellcheck disable=SC1003,SC2016,SC2086+ awf --config "${RUNNER_TEMP}/gh-aw/awf-config.json" --container-workdir "${GITHUB_WORKSPACE}" --mount "${RUNNER_TEMP}/gh-aw:${RUNNER_TEMP}/gh-aw:ro" --mount "${RUNNER_TEMP}/gh-aw:/host${RUNNER_TEMP}/gh-aw:ro" ${GH_AW_TOOL_CACHE_MOUNT:+--mount "$GH_AW_TOOL_CACHE_MOUNT"} ${GH_AW_DOCKER_HOST:+--docker-host "$GH_AW_DOCKER_HOST"} --env-all --exclude-env ACTIONS_ID_TOKEN_REQUEST_TOKEN --exclude-env ACTIONS_ID_TOKEN_REQUEST_URL --exclude-env COPILOT_GITHUB_TOKEN --mount /tmp/gh-aw:/tmp/gh-aw:rw --mount /tmp/gh-aw/threat-detection:/tmp/gh-aw/threat-detection:rw --log-level info --skip-pull \+ -- /bin/bash -c 'set +o histexpand; export PATH="${RUNNER_TEMP}/gh-aw/bin:$PATH" && : "${RUNNER_TOOL_CACHE:?RUNNER_TOOL_CACHE must be set}"; GH_AW_TOOL_CACHE="$RUNNER_TOOL_CACHE"; export PATH="$(find "$GH_AW_TOOL_CACHE" -maxdepth 5 -type d -name bin 2>/dev/null | tr '\''\n'\'' '\'':'\'')$PATH"; [ -n "$GOROOT" ] && export PATH="$GOROOT/bin:$PATH" || true; [ -n "$ERLANG_HOME" ] && export PATH="$ERLANG_HOME/bin:$PATH" || true && threat-detect --engine copilot --output /tmp/gh-aw/threat-detection/detection_result.json /tmp/gh-aw/threat-detection' 2>&1 | tee -a /tmp/gh-aw/threat-detection/detection.log+ - name: Render detection log+ if: always() && steps.detection_guard.outputs.run_detection == 'true'continue-on-error: trueuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0- env:- GH_AW_TOKEN_USAGE_SUMMARY_TITLE: Threat Detection Token Usagewith:script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/parse_token_usage.cjs');+ const { main } = require(path.join(actionsDir, 'render_detection_log.cjs'));await main();- - name: Upload threat detection log+ - name: Copy detection firewall logs+ if: always() && steps.detection_guard.outputs.run_detection == 'true'+ continue-on-error: true+ run: |+ mkdir -p /tmp/gh-aw/threat-detection/sandbox/firewall+ [ -d /tmp/gh-aw/sandbox/firewall/logs ] && mkdir -p /tmp/gh-aw/threat-detection/sandbox/firewall/logs && cp -r /tmp/gh-aw/sandbox/firewall/logs/. /tmp/gh-aw/threat-detection/sandbox/firewall/logs/ || true+ [ -d /tmp/gh-aw/sandbox/firewall/audit ] && mkdir -p /tmp/gh-aw/threat-detection/sandbox/firewall/audit && cp -r /tmp/gh-aw/sandbox/firewall/audit/. /tmp/gh-aw/threat-detection/sandbox/firewall/audit/ || true+ - name: Upload threat detection artifactif: always() && steps.detection_guard.outputs.run_detection == 'true'uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1with:name: detection- path: /tmp/gh-aw/threat-detection/detection.log+ path: |+ /tmp/gh-aw/threat-detection/detection_result.json+ /tmp/gh-aw/threat-detection/sandbox/firewall/logs/+ /tmp/gh-aw/threat-detection/sandbox/firewall/audit/if-no-files-found: ignore- - name: Parse and conclude threat detection- id: detection_conclusion+ - name: Parse threat detection token usage for step summary+ id: parse_detection_token_usageif: always()continue-on-error: trueuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0+ env:+ GH_AW_TOKEN_USAGE_SUMMARY_TITLE: Threat Detection Token Usage+ with:+ script: |+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));+ setupGlobals(core, github, context, exec, io, getOctokit);+ const { main } = require(path.join(actionsDir, 'parse_token_usage.cjs'));+ await main();+ - name: Conclude threat detection+ id: detection_conclusion+ if: always()+ continue-on-error: trueenv:RUN_DETECTION: ${{ steps.detection_guard.outputs.run_detection }}DETECTION_AGENTIC_EXECUTION_OUTCOME: ${{ steps.detection_agentic_execution.outcome }}GH_AW_DETECTION_CONTINUE_ON_ERROR: "true"- with:- script: |- try {- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');- setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/parse_threat_detection_results.cjs');- await main();- } catch (loadErr) {- const continueOnError = process.env.GH_AW_DETECTION_CONTINUE_ON_ERROR !== 'false';- const detectionExecutionFailed = process.env.DETECTION_AGENTIC_EXECUTION_OUTCOME === 'failure';- const msg = 'ERR_SYSTEM: \u274C Unexpected error loading threat detection module: ' + (loadErr && loadErr.message ? loadErr.message : String(loadErr));- core.error(msg);- core.setOutput('reason', 'parse_error');- if (continueOnError && !detectionExecutionFailed) {- core.warning('\u26A0\uFE0F ' + msg);- core.setOutput('conclusion', 'warning');- core.setOutput('success', 'false');- } else {- core.setOutput('conclusion', 'failure');- core.setOutput('success', 'false');- core.setFailed(msg);- }- }+ run: |+ bash "${RUNNER_TEMP}/gh-aw/actions/conclude_threat_detection.sh" /tmp/gh-aw/threat-detection/detection_result.jsonpre_activation:if: "(github.event_name != 'issue_comment' || contains(fromJSON('[\"OWNER\",\"MEMBER\",\"COLLABORATOR\"]'), github.event.comment.author_association)) && ((contains(fromJSON('[\"akashchi\",\"mryzhov\",\"akladiev\",\"ababushk\",\"dorloff\",\"as-suvorov\"]'), github.actor)) && (github.event_name == 'issue_comment' && (startsWith(github.event.comment.body, '/ci-doctor ') || startsWith(github.event.comment.body, '/ci-doctor\n') || github.event.comment.body == '/ci-doctor') && github.event.issue.pull_request != null))"@@ -1655,15 +1770,15 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@2709137ea6c5b0e19aa621454dc643ea8dc526b1 # v0.85.4+ uses: github/gh-aw-actions/setup@ea4b911d44a5336c74325a122a5fd9110b45ff06 # v0.87.4with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}env:GH_AW_SETUP_WORKFLOW_NAME: "CI Failure Doctor"GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor.lock.yml@${{ github.ref }}- GH_AW_INFO_VERSION: "1.0.78"- GH_AW_INFO_AWF_VERSION: "v0.27.44"+ GH_AW_INFO_VERSION: "1.0.80"+ GH_AW_INFO_AWF_VERSION: "v0.28.4"GH_AW_INFO_ENGINE_ID: "copilot"- name: Check command positionid: check_command_position@@ -1672,9 +1787,11 @@ jobs:GH_AW_COMMANDS: "[\"ci-doctor\"]"with:script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/check_command_position.cjs');+ const { main } = require(path.join(actionsDir, 'check_command_position.cjs'));await main();- name: Check team membership for command workflowid: check_membership@@ -1685,9 +1802,11 @@ jobs:with:github-token: ${{ secrets.GITHUB_TOKEN }}script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/check_membership.cjs');+ const { main } = require(path.join(actionsDir, 'check_membership.cjs'));await main();push_repo_memory:@@ -1713,7 +1832,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@2709137ea6c5b0e19aa621454dc643ea8dc526b1 # v0.85.4+ uses: github/gh-aw-actions/setup@ea4b911d44a5336c74325a122a5fd9110b45ff06 # v0.87.4with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -1722,8 +1841,8 @@ jobs:env:GH_AW_SETUP_WORKFLOW_NAME: "CI Failure Doctor"GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor.lock.yml@${{ github.ref }}- GH_AW_INFO_VERSION: "1.0.78"- GH_AW_INFO_AWF_VERSION: "v0.27.44"+ GH_AW_INFO_VERSION: "1.0.80"+ GH_AW_INFO_AWF_VERSION: "v0.28.4"GH_AW_INFO_ENGINE_ID: "copilot"- name: Checkout repositoryuses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1@@ -1760,9 +1879,11 @@ jobs:ALLOWED_EXTENSIONS: '[".md",".json",".jsonl"]'with:script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/push_repo_memory.cjs');+ const { main } = require(path.join(actionsDir, 'push_repo_memory.cjs'));await main();safe_outputs:@@ -1800,15 +1921,20 @@ jobs:comment_url: ${{ steps.process_safe_outputs.outputs.comment_url }}create_discussion_error_count: ${{ steps.process_safe_outputs.outputs.create_discussion_error_count }}create_discussion_errors: ${{ steps.process_safe_outputs.outputs.create_discussion_errors }}+ process_safe_outputs_items_applied: ${{ steps.process_safe_outputs.outputs.items_applied }}+ process_safe_outputs_items_cancelled: ${{ steps.process_safe_outputs.outputs.items_cancelled }}+ process_safe_outputs_items_deferred: ${{ steps.process_safe_outputs.outputs.items_deferred }}process_safe_outputs_items_failed: ${{ steps.process_safe_outputs.outputs.items_failed }}+ process_safe_outputs_items_skipped: ${{ steps.process_safe_outputs.outputs.items_skipped }}process_safe_outputs_items_succeeded: ${{ steps.process_safe_outputs.outputs.items_succeeded }}+ process_safe_outputs_items_warnings: ${{ steps.process_safe_outputs.outputs.items_warnings }}process_safe_outputs_processed_count: ${{ steps.process_safe_outputs.outputs.processed_count }}process_safe_outputs_status: ${{ steps.process_safe_outputs.outputs.status }}process_safe_outputs_temporary_id_map: ${{ steps.process_safe_outputs.outputs.temporary_id_map }}steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@2709137ea6c5b0e19aa621454dc643ea8dc526b1 # v0.85.4+ uses: github/gh-aw-actions/setup@ea4b911d44a5336c74325a122a5fd9110b45ff06 # v0.87.4with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -1817,15 +1943,16 @@ jobs:env:GH_AW_SETUP_WORKFLOW_NAME: "CI Failure Doctor"GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor.lock.yml@${{ github.ref }}- GH_AW_INFO_VERSION: "1.0.78"- GH_AW_INFO_AWF_VERSION: "v0.27.44"+ GH_AW_INFO_VERSION: "1.0.80"+ GH_AW_INFO_AWF_VERSION: "v0.28.4"GH_AW_INFO_ENGINE_ID: "copilot"- name: Download agent output artifactid: download-agent-outputcontinue-on-error: trueuses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1with:- name: agent+ pattern: "{agent,agent-output-fallback}"+ merge-multiple: truepath: /tmp/gh-aw/- name: Setup agent output environment variableid: setup-agent-output-env@@ -1833,7 +1960,9 @@ jobs:run: |mkdir -p /tmp/gh-aw/find "/tmp/gh-aw/" -type f -print- echo "GH_AW_AGENT_OUTPUT=/tmp/gh-aw/agent_output.json" >> "$GITHUB_OUTPUT"+ if [ -f "/tmp/gh-aw/agent_output.json" ]; then+ echo "GH_AW_AGENT_OUTPUT=/tmp/gh-aw/agent_output.json" >> "$GITHUB_OUTPUT"+ fi- name: Configure GH_HOST for enterprise compatibilityid: ghes-host-configshell: bash@@ -1849,16 +1978,18 @@ jobs:env:GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }}GH_AW_COMMENT_ID: ${{ needs.activation.outputs.comment_id }}- GH_AW_ALLOWED_DOMAINS: "api.business.githubcopilot.com,api.enterprise.githubcopilot.com,api.github.com,api.githubcopilot.com,api.individual.githubcopilot.com,api.snapcraft.io,archive.ubuntu.com,azure.archive.ubuntu.com,crl.geotrust.com,crl.globalsign.com,crl.identrust.com,crl.sectigo.com,crl.thawte.com,crl.usertrust.com,crl.verisign.com,crl3.digicert.com,crl4.digicert.com,crls.ssl.com,github.com,host.docker.internal,json-schema.org,json.schemastore.org,keyserver.ubuntu.com,ocsp.digicert.com,ocsp.geotrust.com,ocsp.globalsign.com,ocsp.identrust.com,ocsp.sectigo.com,ocsp.ssl.com,ocsp.thawte.com,ocsp.usertrust.com,ocsp.verisign.com,packagecloud.io,packages.cloud.google.com,packages.microsoft.com,ppa.launchpad.net,raw.githubusercontent.com,registry.npmjs.org,s.symcb.com,s.symcd.com,security.ubuntu.com,telemetry.enterprise.githubcopilot.com,ts-crl.ws.symantec.com,ts-ocsp.ws.symantec.com,www.googleapis.com"+ GH_AW_ALLOWED_DOMAINS: "api.business.githubcopilot.com,api.enterprise.githubcopilot.com,api.github.com,api.githubcopilot.com,api.individual.githubcopilot.com,api.snapcraft.io,archive.ubuntu.com,azure.archive.ubuntu.com,crl.geotrust.com,crl.globalsign.com,crl.identrust.com,crl.sectigo.com,crl.thawte.com,crl.usertrust.com,crl.verisign.com,crl3.digicert.com,crl4.digicert.com,crls.ssl.com,github.com,host.docker.internal,json-schema.org,json.schemastore.org,keyserver.ubuntu.com,ocsp.digicert.com,ocsp.geotrust.com,ocsp.globalsign.com,ocsp.identrust.com,ocsp.sectigo.com,ocsp.ssl.com,ocsp.thawte.com,ocsp.usertrust.com,ocsp.verisign.com,packagecloud.io,packages.cloud.google.com,packages.microsoft.com,ppa.launchpad.net,raw.githubusercontent.com,s.symcb.com,s.symcd.com,security.ubuntu.com,telemetry.enterprise.githubcopilot.com,ts-crl.ws.symantec.com,ts-ocsp.ws.symantec.com,www.googleapis.com"GITHUB_SERVER_URL: ${{ github.server_url }}GITHUB_API_URL: ${{ github.api_url }}GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG: "{\"add_comment\":{\"max\":1},\"create_report_incomplete_issue\":{},\"missing_data\":{},\"missing_tool\":{},\"noop\":{\"max\":1,\"report-as-issue\":\"false\"},\"report_incomplete\":{}}"with:github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}script: |- const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require('${{ runner.temp }}/gh-aw/actions/process_safe_outputs.cjs');+ const { main } = require(path.join(actionsDir, 'process_safe_outputs.cjs'));await main();- name: Upload Safe Outputs Itemsif: always()diff --git a/.github/workflows/shared/agentic-workflows/collect-pr-info.md b/.github/workflows/shared/agentic-workflows/collect-pr-info.mdindex 30dbcc44b58..20e8ed9d56d 100644--- a/.github/workflows/shared/agentic-workflows/collect-pr-info.md+++ b/.github/workflows/shared/agentic-workflows/collect-pr-info.md@@ -16,7 +16,7 @@ description: |- /tmp/gh-aw/agent/ci-doctor/pr-info.txt (human-readable summary)steps:- name: Set up Python- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0with:python-version: '3.13'- name: Install PyGithubdiff --git a/.github/workflows/shared/agentic-workflows/download-failure-logs.md b/.github/workflows/shared/agentic-workflows/download-failure-logs.mdindex 613eeee1def..31f4b04725e 100644--- a/.github/workflows/shared/agentic-workflows/download-failure-logs.md+++ b/.github/workflows/shared/agentic-workflows/download-failure-logs.md@@ -16,7 +16,7 @@ description: |logs/failed-runs.json and logs/run-<run-id>-failed-jobs.json.steps:- name: Set up Python- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0with:python-version: '3.13'- name: Install PyGithubdiff --git a/.github/workflows/shared/agentic-workflows/notify-teams-recurring.md b/.github/workflows/shared/agentic-workflows/notify-teams-recurring.mdindex a2bd53d85e7..c355615feef 100644--- a/.github/workflows/shared/agentic-workflows/notify-teams-recurring.md+++ b/.github/workflows/shared/agentic-workflows/notify-teams-recurring.md@@ -41,12 +41,12 @@ safe-outputs:type: stringsteps:- name: Checkout agentic-workflow scripts- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1with:sparse-checkout: .github/scripts/agentic-workflowspersist-credentials: false- name: Set up Python- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0with:python-version: '3.13'- name: Send recurring failure escalation to Teamsdiff --git a/.github/workflows/shared/agentic-workflows/notify-teams.md b/.github/workflows/shared/agentic-workflows/notify-teams.mdindex 1b764d025b0..717511475d3 100644--- a/.github/workflows/shared/agentic-workflows/notify-teams.md+++ b/.github/workflows/shared/agentic-workflows/notify-teams.md@@ -60,12 +60,12 @@ safe-outputs:type: stringsteps:- name: Checkout agentic-workflow scripts- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1with:sparse-checkout: .github/scripts/agentic-workflowspersist-credentials: false- name: Set up Python- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0with:python-version: '3.13'- name: Send Teams notificationdiff --git a/.github/workflows/shared/agentic-workflows/remediate-transient-failure.md b/.github/workflows/shared/agentic-workflows/remediate-transient-failure.mdindex 107e03f434b..bf647859e3a 100644--- a/.github/workflows/shared/agentic-workflows/remediate-transient-failure.md+++ b/.github/workflows/shared/agentic-workflows/remediate-transient-failure.md@@ -32,12 +32,12 @@ safe-outputs:type: stringsteps:- name: Checkout agentic-workflow scripts- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1with:sparse-checkout: .github/scripts/agentic-workflowspersist-credentials: false- name: Set up Python- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0with:python-version: '3.13'- name: Install PyGithub