Study FAQ
What happens when threat detection finds a problem in a GitHub Agentic Workflow?
Also asked as 2
- How do warn and strict failure handling affect gh-aw safe outputs?
- Does a gh-aw threat-detection warning block its safe outputs?
Answer
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, Frontmatter.
Full explanation
GH-700: Constrain Workflow Effects with Permissions and Safe Outputs
Study guide · GH-700
Read the full explanation