# What happens when threat detection finds a problem in a GitHub Agentic Workflow?

Exam: GH-700 — Enhancing Operational Efficiency with Agentic AI (beta)
Knowledge domain: Design and implement agentic workflows and automations (25–30%)
Updated: 2026-11-19T04:47:25.898793+00:00
HTML: https://learningpathx.com/faq/GH-700/gh700-workflow-threat-detection-failure-policy.html

## Also asked as

- How do warn and strict failure handling affect gh-aw safe outputs?
- Does a gh-aw threat-detection warning block its safe outputs?

The default `safe-outputs.threat-detection.continue-on-error: true` uses warn-mode handling for detected threats and detector failures. Reviewable outputs are annotated, branch pushes become review pull requests and non-reviewable operations are aborted. A warning can therefore accompany an externally visible result.

Set `safe-outputs.threat-detection.continue-on-error` to `false` to fail detection and prevent safe outputs on those outcomes. A detector failure means there is no security verdict; it must not be interpreted as a clean result.

This runtime policy is different from the top-level `strict` field, which enables enhanced compilation security validation and defaults to `true`. A successful strict compile does not establish that the later detection stage succeeded, and passing detection does not establish business correctness.

Choose the failure policy before enabling consequential output. For a sensitive brief, the owner should decide whether an uncertain security verdict may permit annotated reviewable publication or must block it. Inspect the effective field, detection result and affected resources after a run, then apply the documented escalation route for unresolved outcomes.

References: [Security Architecture](https://github.github.com/gh-aw/introduction/architecture/), [Frontmatter](https://github.github.com/gh-aw/reference/frontmatter/).

Source: [GH-700: Constrain Workflow Effects with Permissions and Safe Outputs](https://learningpathx.com/guide/GH-700/gh-700-constrain-workflow-effects-with-permissions-and-safe-outputs.html)
