Configure scanning with .aikido files
Last updated
Was this helpful?
The .aikido file lets you fine-tune how Aikido handles a specific repository. Aikido reads it automatically for every scan.
Aikido already excludes many irrelevant files and directories by default. In most repositories, you do not need extra configuration.
Use .aikido when you need repository-specific exceptions or behavior. Common use cases include excluding specific paths, ignoring accepted CVEs with a reason, and giving custom context for AutoFix behavior for that repository.
Create the .aikido file within the root of your repository.

The exclude key and paths subkey allow you to hide specific files and directories from being scanned by Aikido code scanning. This will automatically exclude scans for secrets, SAST issues, lockfiles and code quality.
Note: Path matching in .aikido is based on simple string inclusion.
If a configured value appears anywhere in the full file path, it will be excluded. Wildcards and regular expressions are not supported.
To ignore CVE's, add them to the .aikido yaml file with a reason. The Aikido UI will also show that these specific CVEs are ignored with reference to the .aikido file.

Ignore SAST via code comments
It's also possible to ignore SAST findings using comments within your code.
The .aikido file can also configure repository-specific AutoFix behavior.
Use this to define settings like a custom branch prefix or a single AutoFix PR for the whole repository.
See AutoFix PR Configuration for the supported autofix settings and examples.
Last updated
Was this helpful?
Was this helpful?
exclude:
paths:
- src/useless-folder
- docs/example.js
- .gen.tsignore:
cves:
CVE-2020-8203:
reason: We do not care about this CVE
CVE-2025-22869:
reason: We handle this