Skip to content

ci(detection-only): re-point detection job at standalone smoke sibling#589

Merged
davidslater merged 3 commits into
mainfrom
ace/01KY35MNBK3V3CAK5MWGEZCYP8
Jul 21, 2026
Merged

ci(detection-only): re-point detection job at standalone smoke sibling#589
davidslater merged 3 commits into
mainfrom
ace/01KY35MNBK3V3CAK5MWGEZCYP8

Conversation

@davidslater

Copy link
Copy Markdown
Collaborator

Created by GitHub Ace · View Session

Summary

Re-points .github/workflows/detection-only.yml so its detection job body mirrors the smoke-copilot-standalone detection job instead of the removed *-container Copilot smoke sibling, resolving the dangling coupling described in #582.

Changes

  • .github/workflows/detection-only.yml — the detection job now follows the standalone mechanism:
    • Installs the released threat-detect binary via install_threat_detect_binary.sh (honoring GH_AW_THREAT_DETECTION_VERSION, defaulting to the pinned v0.2.2).
    • Runs threat-detect --engine copilot --output detection_result.json /tmp/gh-aw/threat-detection under AWF (v0.27.37 images, api-proxy token steering, COPILOT_GITHUB_TOKEN: ${{ github.token }} + copilot-requests: write).
    • Concludes from the structured detection_result.json via conclude_threat_detection.sh (replacing the old threat-detect conclude subcommand path).
    • Setup action bumped to v0.82.14; workflow-name/ref env aligned to smoke-copilot-standalone.
  • README.md — the detection-only note now describes the standalone mechanism (install released binary → run under AWF → file-based conclude).

Preserved

  • The workflow_dispatch trigger and the activation / agent stub jobs are unchanged; the agent job still stages and uploads testdata/detection-only/<fixture>/ (prompt, agent_output.json, aw-*.patch) as the agent artifact.
  • The GH_AW_THREAT_DETECTION_VERSION override for detection-only is retained.

Validation

  • YAML parses cleanly.
  • actionlint passes except for the copilot-requests permission scope, which is a valid newer GitHub Actions scope used identically by smoke-copilot-standalone.lock.yml; actionlint's bundled scope list is simply outdated.

Closes #582

Mirror the smoke-copilot-standalone detection job body in
detection-only.yml: install the released threat-detect binary via
install_threat_detect_binary.sh, run `threat-detect --engine copilot
--output detection_result.json` under AWF, and conclude from the
structured detection_result.json via conclude_threat_detection.sh. This
removes the dangling coupling to the deprecated *-container smoke
siblings. The GH_AW_THREAT_DETECTION_VERSION override is preserved, and
the activation/agent fixture-upload stubs are unchanged. Update the
README detection-only note to describe the standalone mechanism.

Closes #582

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: David Slater <12449447+davidslater@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 21, 2026 20:33

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.

Pull request overview

Re-points the manual detection workflow to the supported standalone Copilot detection mechanism.

Changes:

  • Installs and runs the released detector under AWF.
  • Uses file-based detection conclusion handling.
  • Updates the related README documentation.
Show a summary per file
File Description
.github/workflows/detection-only.yml Mirrors the standalone detection job flow.
README.md Documents the updated workflow mechanism.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Medium

Comment thread .github/workflows/detection-only.yml
bot and others added 2 commits July 21, 2026 20:37
Retain the numeric guard for GH_AW_DEFAULT_DETECTION_MAX_AI_CREDITS so a
free-form or malformed repository variable cannot produce invalid
awf-config.json JSON and block the manual detection workflow.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: David Slater <12449447+davidslater@users.noreply.github.com>
…into ace/01KY35MNBK3V3CAK5MWGEZCYP8

# Conflicts:
#	.github/workflows/detection-only.yml
@davidslater
davidslater merged commit b31de02 into main Jul 21, 2026
7 checks passed
@davidslater
davidslater deleted the ace/01KY35MNBK3V3CAK5MWGEZCYP8 branch July 21, 2026 20:50
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.

Re-point detection-only.yml at the standalone smoke detection job

2 participants