Skip to content

copilot engine: threat-detection step touches an unused agent-step-summary.md #53749

Closed

Description

@gregsmi

Summary

Workflows compiled with the Copilot engine emit a threat-detection execution step that creates a file nothing reads:

touch /tmp/gh-aw/agent-step-summary.md

The same step redirects the summary elsewhere:

env:
  GITHUB_STEP_SUMMARY: /tmp/gh-aw/step-summary.md

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.

Environment

gh-aw v0.86.2, Copilot engine.

Activity

  1. locked and limited conversation to collaborators on Aug 18, 2026
  2. unlocked this conversation on Aug 18, 2026
  3. pelikhan commented on Aug 20, 2026

    @pelikhan
    Collaborator

    @copilot validate this is still an issue

  4. davidslater commented on Aug 20, 2026

    @davidslater
    Collaborator

    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:

    features:
      gh-aw-detection: true
    

    After the next release, this will be default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions