.aguara.yml or .aguara.yaml file placed in your project root. This allows you to define scan settings, ignore patterns, rule overrides, and more without passing flags on every command.
File Location
Aguara searches for configuration files in this order:.aguara.ymlin the target directory (or parent directory if scanning a file).aguara.yamlin the target directory
The config file must be under 1 MB in size.
Configuration Schema
Complete Example
.aguara.yml
Configuration Options
List of paths to scan. If not specified, Aguara scans the current directory.
Glob patterns for files and directories to ignore during scanning. Supports
*, ?, [...], and ** for recursive matching.These patterns are in addition to
.aguaraignore. See Ignore Patterns for details.Minimum severity level to report. Valid values:
critical, high, medium, low, info.Severity threshold that causes Aguara to exit with code 1. If any findings at or above this level are found, the scan fails.
Output format for scan results. Valid values:
terminal, json, sarif, markdown.Path to a directory containing custom rule YAML files. These rules are loaded in addition to Aguara’s built-in rules.
List of rule IDs to disable completely. Disabled rules are not evaluated during scanning.
This is different from
rule_overrides[<id>].disabled, but has the same effect. Use whichever syntax you prefer.Per-rule configuration to change severity levels or disable specific rules. See Rule Overrides for details.
Maximum file size in bytes that Aguara will scan. Files larger than this are skipped.Range: 1 MB (1048576 bytes) to 500 MB (524288000 bytes)
You can also set this using the
--max-file-size flag with human-readable units like 100MB or 1GB.CLI Flag Precedence
Command-line flags always override configuration file values. For example:- CLI flags (
--severity,--format, etc.) .aguara.ymlconfiguration file- Default values
Creating a Config File
Use theinit command to scaffold a .aguara.yml file with sensible defaults:
.aguara.ymlwith common configuration options.aguaraignorewith standard ignore patterns.github/workflows/aguara.ymlGitHub Actions workflow
Validation
Aguara validates configuration at load time:- Invalid severity values → warning, defaults to
info - Invalid format values → warning, defaults to
terminal - Non-existent rules directory → error
- max_file_size out of range → error
- Config file over 1 MB → error
Example Configurations
Minimal Config
.aguara.yml
CI-Optimized Config
.aguara.yml
Development Config
.aguara.yml
Security-Focused Config
.aguara.yml
Related
- Ignore Patterns - Learn about
.aguaraignoreand glob patterns - Rule Overrides - Customize rule behavior
- Inline Ignore - Suppress findings in source files
