Skip to content

Update agentic workflows to gh-aw v1.2.2 - #12559

Merged
Amaury Levé (Evangelink) merged 1 commit into
mainfrom
dev/amauryleve/update-agentic-workflows-12385
Nov 20, 2026
Merged

Amaury Levé (Evangelink) merged 1 commit into
mainfrom
dev/amauryleve/update-agentic-workflows-12385

Conversation

@Evangelink

Copy link
Copy Markdown
Member

Pull request

Summary

Upgrades the repository's GitHub Agentic Workflows toolchain from gh-aw v1.0.1 to v1.2.2 (the latest stable release, published November 10, 2026) and recompiles every agentic workflow in strict mode. Fixes #12385.

  • Recompiled all 37 workflow inputs with the checksum-verified v1.2.2 release binary (--strict --shellcheck), regenerating every *.lock.yml, agentic_commands.yml, and agentics-maintenance.yml.
  • Applied the v1.2.2 cli-proxy-false-when-bash-disabled codemod (gh aw fix --write) to review.agent.md, review-on-open.agent.md, review-after-autofix.agent.md, and shared/review-shared.md.
  • Pinned github/gh-aw-actions/setup and setup-cli to v1.2.2 (53d0749e19424a918acd82b4d140264ce48f2f14) in .github/aw/actions-lock.json and in the handwritten check-action-pins.yml step.
  • Aligned the cached mutable-name ghcr.io/github/gh-aw-node entry to the v1.2.2 catalog digest sha256:8735428c2d4e602f90781ba0c571c400e8ff93c7ee1508a75d71f87e34e415cc (multi-arch amd64/arm64 index, Node.js v26.13.0). Otherwise, the stale v1.0.1 digest survives compilation because cached entries override the compiler catalog.
  • Refreshed .github/agents/agentic-workflows.md and .github/skills/agentic-workflows/SKILL.md from v1.2.2, preserving the repository overlay.
  • Updated the offline contract tests for v1.2.2 runtime changes: environment hardening, the require form, and GitHub MCP server v2.1.0. Made the firewall-correction wording version-neutral.
  • Updated .github/workflows/README.md with the toolchain, migration notes, compile results, the v1.2.2 revalidation of each retained correction, and the [aw] Detection Runs #12385 resolution.

Upstream components now in use: AWF firewall 0.29.11, MCP gateway v0.5.6, and GitHub MCP server v2.1.0. Explicit Copilot CLI overrides stay at 1.0.103, which is listed in v1.2.2's release_integrity.sh.

This change adds no new action or action SHA. The only uses: changes are:

  • the setup and setup-cli SHAs;
  • additional generated download-artifact (+35) and github-script (+80) steps that reuse already-pinned SHAs.

No permissions were added. The generated maintenance and command workflows only gain explanatory comments on their existing permissions.

#12385

#12385 is gh-aw's auto-managed "Detection Runs" tracker. Its only case was Markdown Linter run 43034387593, which failed during startup because apt could not resolve azure.archive.ubuntu.com. #12405 (6eba42d3890ac74d4e776bdcc72e4a76f35a7a2a, "Avoid Azure mirror DNS failures in Markdown Linter startup") fixed that failure, and subsequent runs are green. gh-aw recreates the tracker automatically if a new detection failure occurs.

Design and decision record

This is a routine toolchain refresh. It follows the documented process in .github/workflows/README.md ("Compile on the pinned toolchain, and check the pins afterwards"); the previous refresh was d9e38dc (#12183). No separate decision record is needed because there is no new feature. The README records each re-evaluation below.

I re-evaluated the retained workarounds against v1.2.2, and all are still required:

  • threat-detection enabled expression ([aw] Detection Runs #11263);
  • set_issue_type (v1.2.2 still treats issue Type as a custom field);
  • aw.json upload-artifact v7.0.1 → v7.0.2 redirect;
  • firewall-footer correction (byte-identical upstream module);
  • Markdown review tables;
  • typed footer {history_link} placement;
  • explicit dependabot toolset (all still excludes it; the compiled bundler uses GITHUB_TOOLSETS: "all,dependabot");
  • env.REVIEW_PR_NUMBER fallback (isSafeExpression still rejects fromJSON).

One new compiler warning is accepted: the build-failure-analysis checkout warning about checkout.ref using needs.fetch-binlog.outputs.pr-head-sha. Reasons:

  • check_run carries no PR payload, so compiler-managed PR checkout cannot apply.
  • The sparse base checkout and the pre-agent restore of every engine agent-config folder and file (plus .mcp.json) are a superset of v1.2.2's .agents .github / AGENTS.md restore.
  • Host steps run only trusted, pinned, temporary scripts (python3 -I), and nothing is built.

Demonstration

Not applicable: this changes the CI workflow toolchain only and has no user-visible product output. Text transcripts of the compile and test results are below. No workflow was dispatched and nothing was published from these checks.

Validation and regression proof

The source state is commit 1a578de55f5437e3cf9303348a01d5b91f8c1603. The checks ran on the identical .github tree before a clean rebase onto 4f367c4f9, which has no .github changes. Environment: Windows, Python 3.12.10. $actions holds the v1.2.2 setup-action scripts staged from github/gh-aw-actions@53d0749e19424a918acd82b4d140264ce48f2f14. Prerequisite: python -m pip install --disable-pip-version-check --require-hashes -r .github/scripts/check-action-pins-requirements.txt.

Command Result
gh-aw.exe compile --strict --no-check-update --shellcheck (v1.2.2 release binary, SHA-256 5ed67185ce18c9b4c2bc6ea16f5ec914773fae12ac18782b59028c7c8605ae91) Compiled 37 workflows: 37 succeeded, 1 warning (the accepted checkout warning above); exit 0
python .github/scripts/check_action_pins.py Action pin audit passed: 2884 reference(s) across 60 file(s); exit 0
python .github/scripts/test_gh_aw_firewall_footer.py --module-path "$actions\firewall_blocked_domains.cjs" 7 tests OK; exit 0
python .github/scripts/test_gh_aw_runtime_contracts.py --actions-dir "$actions" 19 tests OK; exit 0
python .github/scripts/test_gh_aw_review_footer.py --scripts-directory "$actions" 2 tests OK; exit 0
python .github/scripts/test_build_failure_analysis_checkout.py 6 tests OK; exit 0
python .github/scripts/test_agentic_workflow_warning_contracts.py 40 run, 4 skipped, 1 failure; exit 1 (see below)

The single warning-contract failure is UnskipPublisherContractTests.test_verified_package_pushes_exact_commit_and_draft_with_ephemeral_auth. It is environmental: Windows CRLF checkout line endings. It fails identically on the base revision and is unrelated to this change. The remaining 35 executed tests pass.

Generated-output checks:

  • The new gh-aw-node digest appears 140 times across the locks, and the old digest appears 0 times.
  • No uses: reference outside setup and setup-cli changed SHA.

Not run:

  • live dispatch of any agentic workflow;
  • hosted firewall, MCP gateway, or safe-output publication;
  • the GitHub review UI.

These require hosted runs and are covered only by the offline component contracts above.

Test-value evidence

This change preserves behavior: the workflow logic is unchanged and only the compiler and runtime version moves. The existing suites pass on the new revision (green-after); the base revision was green on v1.0.1 apart from the same CRLF environmental failure.

To confirm v1.2.2 did not make any retained correction unnecessary, I reran the existing counterfactuals against the v1.2.2 setup scripts at 53d0749e19424a918acd82b4d140264ce48f2f14:

Correction Without correction (v1.2.2 runtime) With correction
Firewall footer (--without-correction GhAwFirewallFooterTests.test_explicit_denial_is_not_hidden_by_status_or_later_success) Fails ['github.com'] != []; 1 test, exit 1 7 tests OK; exit 0
Markdown review tables (test_authored_test_review_scorecard_publishes_as_markdown_table, test_review_table_preserves_escaped_cells_and_collapsed_rows with --workflow-root baseline) Scorecard case fails for both consumers with <table>; exit 1 Both pass; exit 0
Typed footer (test_authored_test_review_footer_publishes_complete_advisory_review, test_public_review_resolver_honors_explicit_public_only_policy with --workflow-root baseline) Both fail with the original errors (Report nodes cannot appear in scalar fields, integrity approved); exit 1 Both pass; exit 0
Dependabot toolset (test_dependabot_compiled_inventory_preserves_all_existing_reads) v1.2.2 still excludes dependabot from all, so alert-read tools would be missing Passes with the explicit dependabot toolset

The exact reproduction commands are in the README sections for each correction.

Recompile all agentic workflows with the checksum-verified gh-aw v1.2.2
release in strict mode with ShellCheck, apply the v1.2.2 codemod
(cli-proxy: false on the review workflows), refresh the agentic-workflows
agent and skill, align the gh-aw setup/setup-cli pins and the gh-aw-node
image digest, and update the runtime/warning contract tests and README.

Also documents the resolution of the gh-aw "Detection Runs" tracker #12385:
its only case (Markdown Linter run 43034387593) was an apt DNS failure fixed
by #12405.

Fixes #12385

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 20, 2026 10:30
@github-actions github-actions Bot added the state/needs-review Awaiting review from the team. label Nov 20, 2026
@Evangelink Amaury Levé (Evangelink) mentioned this pull request Nov 20, 2026
1 task done

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧪 Test quality review — PR #12559

Compared merge base 4f367c4f932338c7ccc4fb9ccfd6d8c6cab96fc6 with head 1a578de55f5437e3cf9303348a01d5b91f8c1603. Evidence applies to this head, not every intermediate commit.

Test-value evidence

Contract Evidence Status
Toolchain refresh to gh-aw v1.2.2 (generated *.lock.yml, action pins, agentic_commands.yml, maintenance workflow) Behavior-preserving refactor; expected to pass before and after. Existing check_action_pins.py and the offline contract tests in .github/scripts/ cover it. Unverified. The author reports green runs but this review did not execute them and has no accessible paired records.
Updated contract tests (test_gh_aw_runtime_contracts.py, test_gh_aw_firewall_footer.py, test_agentic_workflow_warning_contracts.py) The author reports counterfactuals for firewall footer, Markdown tables, typed footer and dependabot toolset. Static or author-reported only, not executed here.
review*.agent.md and shared/*.md frontmatter (cli-proxy-false-when-bash-disabled codemod) Covered only by the compile result. Not executable beyond compilation.
Documentation and skill refresh (README.md, agentic-workflows agent and skill) No behavior. Not applicable

The author's red/green claims are not paired execution proof for this review. The author also reports one environmental failure on Windows (CRLF), identical on the base revision.

🧵 Parallel safety

STATUS: NOT_APPLICABLE. No test assemblies or parallelization configuration changed.

Per-test assessment

No test methods in scope. The manifest reports zero changed test files and regions (the changed .github/scripts/*.py tests are not MSTest C# tests), so there is nothing to grade. No inline findings.

This advisory review is heuristic and non-blocking. Re-run the combined review with /review-tests, or only the parallel-safety specialist with /parallel-audit.

🤖 Automated content by GitHub Copilot. Generated by the Test Quality Review on PR (on open / sync) workflow. · copilot · auto (Claude Sonnet 5.5) · ~29 AIC · ⌖ ~2 AIC · ⊞ 8.4K

@microsoft-github-policy-service microsoft-github-policy-service Bot added state/needs-review Awaiting review from the team. and removed state/needs-review Awaiting review from the team. labels Nov 20, 2026
@github-actions github-actions Bot added state/needs-review Awaiting review from the team. and removed state/needs-review Awaiting review from the team. labels Nov 20, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Runtime compatibility across detection, artifact validation, and publication remains unverified because pinned upstream scripts were inaccessible and no hosted end-to-end run exercised those boundaries.

No open issues 🎉

What changed in this PR

Updates TestFx’s agentic CI automation from gh-aw v1.0.1 to v1.2.2, aligning generated workflows, runtime pins, and supporting guidance without changing MSTest or Microsoft.Testing.Platform product code.

Changes:

  • Regenerates workflows with the upgraded compiler and updates setup-action and runtime-image pins.
  • Explicitly disables CLI proxy access in shell-disabled review workflows.
  • Adapts offline contract tests and documents migration results and retained compatibility corrections.

Confidence at a glance

🟡 Workflow runtime — offline validation reported; hosted execution remains unverified

Test-value evidence: For source state 1a578de55f5437e3cf9303348a01d5b91f8c1603, the PR reports successful strict compilation of 37 inputs, passing component contracts, and counterfactual checks for retained corrections. It also reports one accepted checkout warning and a Windows line-ending test failure reproduced on the base revision. These results were not independently rerun; live workflow execution and publication remain untested.

File Description
.github/​workflows/​weekly-issue-activity.lock.yml Regenerates runtime setup, prompt isolation, artifact validation, and detection wiring.
.github/​workflows/​shared/​test-reviewer-shared.md Updates correction documentation and makes its error message version-neutral.
.github/​workflows/​shared/​review-shared.md Disables CLI proxy access alongside shell access.
.github/​workflows/​review.agent.md Explicitly disables the CLI proxy for command reviews.
.github/​workflows/​review-on-open.agent.md Explicitly disables the CLI proxy for automatic reviews.
.github/​workflows/​review-after-autofix.agent.md Explicitly disables the CLI proxy for follow-up reviews.
.github/​workflows/​README.md Records upgrade details, validation, and retained workarounds.
.github/​workflows/​check-action-pins.yml Uses v1.2.2 setup scripts for contract checks.
.github/​workflows/​agentics-maintenance.yml Updates setup and compiler pins; adds explanatory permission comments.
.github/​workflows/​agentic_commands.yml Updates generated metadata and setup pin; clarifies existing permissions.
.github/​skills/​agentic-workflows/​SKILL.md Refreshes workflow routing guidance while retaining repository contracts.
.github/​scripts/​test_gh_aw_runtime_contracts.py Adapts prompt-binding checks to environment isolation and loader changes.
.github/​scripts/​test_gh_aw_firewall_footer.py Matches the version-neutral correction error message.
.github/​scripts/​test_agentic_workflow_warning_contracts.py Updates the expected GitHub MCP server version.
.github/​aw/​actions-lock.json Aligns setup-action pins and the cached Node image digest.
.github/​agents/​agentic-workflows.md Refreshes debugging, upgrade, and workflow-operation guidance.

Review effort: Balanced

@Evangelink
Amaury Levé (Evangelink) merged commit f934651 into main Nov 20, 2026
23 of 25 checks passed
@Evangelink
Amaury Levé (Evangelink) deleted the dev/amauryleve/update-agentic-workflows-12385 branch November 20, 2026 11:07
@github-actions github-actions Bot removed the state/needs-review Awaiting review from the team. label Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[aw] Detection Runs

2 participants