Introduce silent mode to disable logging

This commit is contained in:
Sander Declerck 2025-10-23 17:45:03 +02:00
parent 2e1ee0dfa4
commit 9a78cafbfd
No known key found for this signature in database
7 changed files with 142 additions and 4 deletions

View file

@ -88,6 +88,18 @@ Example usage:
npm install suspicious-package --safe-chain-malware-action=prompt
```
## Logging
You can control the output from Aikido Safe Chain using the `--safe-chain-logging` flag:
- `--safe-chain-logging=silent` - Suppresses all Aikido Safe Chain output except when malware is blocked. The package manager output is written to stdout as normal, and Safe Chain only writes a short message if it has blocked malware and causes the process to exit.
Example usage:
```shell
npm install express --safe-chain-logging=silent
```
# Usage in CI/CD
You can protect your CI/CD pipelines from malicious packages by integrating Aikido Safe Chain into your build process. This ensures that any packages installed during your automated builds are checked for malware before installation.