You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
shellcheck SC2154 for gh_aw_exit_code in the agent execution step #65941
shellcheck 0.11.0 reports SC2154 (gh_aw_exit_code is referenced but not assigned) in Execute GitHub Copilot CLI in every compiled lock file with an agent job. The variable is assigned inside the single-quoted trap '...' EXIT string from buildAgentExecutionExitCodeTrapWithCleanup (pkg/workflow/engine_helpers.go), which shellcheck does not parse.
Version
gh-aw v0.89.21; shellcheck 0.11.0.
Expected
The generated script is shellcheck-clean. For example, move the trap body into a function, or declare gh_aw_exit_code before the trap.
Activity
pelikhan commentedon Oct 6, 2026
@copilot add spellcheck validation test in csh.yml
fix(workflows): harden CI supply chain and gate scanners without supp…
fix(workflows): restore code scanning automation and upgrade gh-aw to…