You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suppresses specific threat-detection diagnostic rules (`CTR-###` identifiers) that would otherwise block safe-output processing, with a required, auditable justification. Each entry must include a `rule` matching `CTR-###`, a non-empty `reason`, and an optional `expires` date in `YYYY-MM-DD` format; once `expires` has passed (UTC), the suppression is no longer active and the rule is enforced again.
312
+
313
+
```yaml wrap
314
+
threat-detection-suppress:
315
+
- rule: CTR-012
316
+
reason: "False positive on generated changelog entries; tracked in issue #123"
317
+
expires: "2026-12-31"
318
+
```
319
+
320
+
Compilation fails if any entry has an invalid `rule`, an empty `reason`, or a malformed `expires` date. See [Threat Detection](/gh-aw/reference/threat-detection/) for the full list of detection rules.
321
+
309
322
### Run Configuration (`run-name:`, `runs-on:`, `runs-on-slim:`, `timeout-minutes:`)
310
323
311
324
Standard GitHub Actions properties:
@@ -351,6 +364,16 @@ Environment variables can be defined at multiple scopes (workflow, job, step, en
351
364
>
352
365
> Use engine-specific secret configuration instead of the `env:` section to pass secrets securely.
353
366
367
+
### Turn Limit (`max-turns:`)
368
+
369
+
Caps the number of chat iterations (model responses and tool calls) the AWF proxy allows for a single workflow run, across all supported engines. Defaults to `500` when omitted. Accepts an integer or a GitHub Actions expression that resolves to an integer at runtime.
370
+
371
+
```yaml wrap
372
+
max-turns: 20
373
+
```
374
+
375
+
The top-level `max-runs:` field is a **deprecated** alias for `max-turns:` and is only accepted as a fallback for backward compatibility. Migrate existing workflows with `gh aw fix`. See [Cost Management](/gh-aw/reference/cost-management/#cap-turns-per-run) for more details.
376
+
354
377
### AI Credits Guardrail (`max-ai-credits:`)
355
378
356
379
Sets the AWF AI Credits budget used for cost enforcement. It is enabled by default and defaults to `1000` (`1k`) when omitted. Steering (budget-warning messages at 80%, 90%, 95%, and 99% of the budget) is enabled by default. Use plain integers or `K`/`M` suffixes such as `100000K` or `100M`. Set to a negative value to disable both budget enforcement and steering.
0 commit comments