Skip to content

Suggested test: copilot/threat-detection-report-as-issue-opt-out #16263

Closed as not planned

Description

@github-actions

Motivation

github/gh-aw#61428 — "Allow opting out of '[aw] Detection Runs' tracking issue independently of threat detection". New safe-outputs.threat-detection.report-as-issue: false config skips creating/updating the [aw] Detection Runs tracking issue and posting comments to it, while keeping detection and enforcement (continue-on-error, safe-output blocking) active.

Proposed test

  • Workflow file: test-copilot-threat-detection-report-as-issue-false.md
  • Trigger: workflow_dispatch
  • Engine: copilot
  • Safe output: create-issue (as the primary output under test) plus threat-detection: { report-as-issue: false }
  • Variant: standard

Minimal test prompt sketch

A workflow that enables threat-detection with report-as-issue: false and a benign create-issue safe output. The agent creates an issue as normal; the assertion is that no [aw] Detection Runs tracking issue/comment is created for this run, while the primary create-issue output still succeeds.

New fixtures or secrets needed

None, assuming the harness can check for absence of a [aw] Detection Runs issue update tied to the run ID. This may need a small e2e.sh assertion helper if one doesn't already exist for tracking-issue behavior.

Notes

No open suggestion or existing test currently covers threat-detection config at all (only copilot/custom-engine-threat-detection is open, #14834, which is about a different aspect — custom engine detection, not the report-as-issue opt-out). Filing as an issue since verifying "absence of a side effect" (no tracking issue update) may need harness support not yet confirmed to exist.

Generated by 🔍 Suggest New E2E Tests · copilot · auto · 70.4 AIC · ⌖ 9.19 AIC · ⊞ 8.4K · ◷

Activity

  1. dsyme commented on Oct 24, 2026

    @dsyme
    Collaborator

    Closing during the E2E proposal triage: this is a narrow regression, default/validation case, or redundant subcase that is better covered by gh-aw unit/integration tests than by a live repository E2E. The retained live-only candidates are grouped in #16258, #25348, #16260, #16259, and #25349.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions