v0.66.0
Pre-releaseπ Release Highlights
This release focuses on AI observability, workflow reliability, and threat detection extensibility β making it easier to monitor agent token usage, debug anomalies, and customize security pre/post-steps.
β¨ What's New
-
Token Usage Artifact (#24315) β Agent token counts are now bundled as an
agent_usage.jsonartifact alongside each run, enabling third-party tooling and dashboards to consume structured token data without parsing step summaries. -
Log Pattern Mining in Audit & Logs (#24328) β
gh aw audit reportnow includes an Agent Event Pattern Analysis section powered by Drain3 log template mining. Use the newgh aw logs --trainflag to train weights from your own run history, improving anomaly detection accuracy over time. -
Threat Detection Pre-Steps & Post-Steps (#24250) β The threat detection job now supports custom
pre-stepsandpost-steps, giving security teams the ability to run custom checks before and after detection without modifying the compiled workflow. -
create_labelsMaintenance Operation (#24341) β A newagentics-maintenance.ymloperation automatically creates any missing repository labels referenced in safe-outputs. Also,compile --jsonnow includes alabelsfield perValidationResultand exposes a--no-emitoption. -
GitHub App Token Minting Moved to Activation Job (#24251) β GitHub App token minting now happens in the activation job, improving security posture and reducing token lifetime exposure in downstream jobs.
π Bug Fixes & Improvements
-
GH_HOST regression fixed (#24321) β The
Install GitHub Copilot CLIstep no longer silently drops theGH_HOST: github.comenvironment pin introduced in v0.65.6, restoring CLI functionality for users behind proxy configurations. -
SARIF upload overhauled (#24322) β Code scanning SARIF uploads now use a dedicated job with proper artifact transfer, direct checkout token computation, and GitHub App checkout support β resolving failures that required additional git commit references.
-
push_repo_memoryguarded against failed/skipped agents (#24363) β The repo-memory push job now requiresneeds.agent.result == 'success', preventing stale or incomplete memory from being written when the agent fails or is skipped. -
Pipefail SIGPIPE fixes in token optimizer workflows (#24350, #24354) β Token analyzer and optimizer workflows were silently aborting artifact download loops due to SIGPIPE (exit 141) under
set -euo pipefail. Replaced pipedwhile readpatterns with temp-file approaches. -
Bundle transport fix for HEAD commits (#24317) β Fixed a bug where the bundle transport failed when the agent committed directly to HEAD instead of a named branch.
-
Compiler error formatting (#24316) β Eliminated spurious
file:1:1:prefix from double-wrapped compiler errors, making diagnostics cleaner. -
Daily Issues Report Generator restored (#24349) β Fixed 11 consecutive days of failures caused by PATH issues on GPU runners and a proxy-related
gh issue listcrash, with graceful fallback to an empty dataset.
π Documentation
- Updated CLI reference with
--trainflag docs,--no-emitoption,labelsJSON field, Agent Event Pattern Analysis, andagent_usage.jsonartifact table entry (#24377). - Expanded the Manual Maintenance Operations guide with a full table of available operations including the new
create_labelsentry (#24377).
π Community Contributions
A huge thank you to the community members who reported issues that were resolved in this release!
@adamhenson
@chrisfregly
- Missing Threat Detection Custom Pre-Steps (direct issue)
@jaroslawgajewski
- Suspected regression in v0.65.6:
Install GitHub Copilot CLIno longer emitsGH_HOST: github.com(direct issue)
@kbreit-insight
- SARIF upload requires additional git commit references (direct issue)
For complete details, see CHANGELOG.
Generated by Release Β· β 1.2M
What's Changed
- [dead-code] chore: remove dead functions β 4 functions removed by @github-actions[bot] in #24288
- [docs] docs: consolidate dev.md to v5.1 β add 3 previously uncovered spec files by @github-actions[bot] in #24275
- [instructions] Sync github-agentic-workflows.md with release v0.65.6 by @github-actions[bot] in #24273
- [docs] Update glossary - daily scan (imports and import-schema) by @github-actions[bot] in #24267
- [community] Update community contributions in README by @github-actions[bot] in #24271
- [architecture] Update architecture diagram - 2026-04-03 by @github-actions[bot] in #24264
- Rename
isEmptyDiffβisEmptyFirewallDifffor consistency by @Copilot in #24277 - fix: remove stale
action-tag: v0from daily-fact.md and recompile by @Copilot in #24310 - refactor: eliminate duplicated AWF injection, secret validation, and MCP secret collection across engine implementations by @Copilot in #24283
- [q] fix: show effective tokens (ET) in discussion footer by @github-actions[bot] in #24320
- ci: skip
go mod downloadon cache hit for 9 jobs by @Copilot in #24319 - perf: eliminate repeated O(n) action pin scans and redundant permissions parsing in MCP workflow compilation by @Copilot in #24256
- feat: add pre-steps and post-steps to threat detection job by @Copilot in #24250
- Fix double-wrapped compiler errors emitting spurious
file:1:1:prefix by @Copilot in #24316 - fix: restore
GH_HOST: github.compin on Install GitHub Copilot CLI step by @Copilot in #24321 - Move github-app token minting to activation job by @Copilot in #24251
- fix: bundle transport fails when agent commits to HEAD instead of named branch by @Copilot in #24317
- feat: bundle token usage as agent artifact by @Copilot in #24315
- fix: update wasm golden files to include GH_HOST env var in Copilot CLI install step by @Copilot in #24330
- fix: install gh-aw CLI extension in workflow pre-steps by @lpcox in #24335
- Fix workflow network allowlist gaps from 2026-04-03 firewall report by @Copilot in #24332
- Upgrade charmbracelet/huh to charm.land/huh/v2 v2.0.3 by @Copilot in #24331
- Migrate HuhTheme to huh v2 ThemeFunc API by @Copilot in #24343
- feat: integrate log template mining into audit report and logs by @Copilot in #24328
- fix: replace piped while loops with temp files to avoid pipefail SIGPIPE by @lpcox in #24350
- Add create-labels maintenance operation and compile --json label reporting by @Copilot in #24341
- fix: eliminate piped while loops in token optimizer workflows by @lpcox in #24354
- fix: restore Daily Issues Report Generator β AWF binary install + issues data fetch resilience by @Copilot in #24349
- Fix copy dictation instructions button on agentic-authoring page by @Copilot in #24362
- fix: push_repo_memory should not run when agent job is skipped or failed by @Copilot in #24363
- fix: dedicated upload_code_scanning_sarif job with SARIF artifact transfer, direct checkout token computation, and github-app checkout support by @Copilot in #24322
- ci: skip GitHub API-heavy jobs on non-main branches by @Copilot in #24370
- [docs] Update documentation for features from 2026-04-03 by @github-actions[bot] in #24377
- chore: update drain3 default log pattern weights by @github-actions[bot] in #24381
Full Changelog: v0.65.7...v0.66.0