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
copilot engine: threat-detection step touches an unused agent-step-summary.md #53749
The detection job already initialises /tmp/gh-aw/step-summary.md (rm -f + touch) earlier, and its "Echo detection step summary" step reads that same path. agent-step-summary.md has no reader anywhere in the detection job.
Evidence that it's a stale copy
The two jobs in one compiled lock differ:
Job
touch
GITHUB_STEP_SUMMARY
Consumer
agent
agent-step-summary.md
agent-step-summary.md
consistent
threat-detection
agent-step-summary.md
step-summary.md
reads step-summary.md
The agent job is internally consistent, so the detection job's touch looks like a copy of the agent-job template that wasn't updated when the detection job's summary path diverged — not a deliberate second file.
Impact
Functionally nil: one empty file in /tmp. The reason it's still worth fixing is downstream.
Lock files are generated and committed to consumers' repos, where they're reviewed like any other file. An automated reviewer (e.g. Copilot code review) flags the dead touch as an inconsistency, and the repo owner cannot act on it: hand-editing the lock is invalid because the next gh aw compile reverts it, and the finding has no corresponding source to change. The comment can't be fixed and can't be legitimately dismissed, so it recurs on every PR that touches a workflow.
Small codegen inconsistencies in generated-but-committed artifacts therefore have a cost out of proportion to their runtime effect.
Suggested fix
Drop the touch /tmp/gh-aw/agent-step-summary.md line from the threat-detection step, or point it at /tmp/gh-aw/step-summary.md to match the step's own GITHUB_STEP_SUMMARY and the later echo step.
This doesn't apply to the external detector path features: gh-aw-detection: true (which is now default on main).
What the issue describes (gh-aw v0.86.2, built-in Copilot detection): the detection step touches /tmp/gh-aw/agent-step-summary.md while its own GITHUB_STEP_SUMMARY and the later "Echo detection step summary" step use /tmp/gh-aw/step-summary.md.
To fix with v0.86.2, you will need to add the following in the markdown:
Activity
pelikhan commentedon Aug 20, 2026
@copilot validate this is still an issue
davidslater commentedon Aug 20, 2026
This doesn't apply to the external detector path
features: gh-aw-detection: true(which is now default onmain).What the issue describes (gh-aw v0.86.2, built-in Copilot detection): the detection step touches /tmp/gh-aw/agent-step-summary.md while its own GITHUB_STEP_SUMMARY and the later "Echo detection step summary" step use /tmp/gh-aw/step-summary.md.
To fix with v0.86.2, you will need to add the following in the markdown:
After the next release, this will be default.