@sentriflow/cli 0.5.1 → 0.6.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -3
- package/dist/index.js +3811 -979
- package/package.json +54 -54
package/README.md
CHANGED
|
@@ -69,6 +69,9 @@ Options:
|
|
|
69
69
|
|--------|-------------|
|
|
70
70
|
| `-f, --format <format>` | Output format: `json` (default), `sarif` |
|
|
71
71
|
| `-q, --quiet` | Only output failures (suppress passed results) |
|
|
72
|
+
| `--fail-on <level>` | Exit 1 only if a failed rule is at/above this severity: `error` (default), `warning`, `info`, `never` |
|
|
73
|
+
| `--suppressions <path>` | Suppression file (default: `.sentriflow-suppressions.json` in the current directory, never parent directories) |
|
|
74
|
+
| `--no-suppressions` | Ignore inline `sentriflow-disable` comments and the suppression file |
|
|
72
75
|
| `--ast` | Output the parsed AST instead of rule results |
|
|
73
76
|
| `--relative-paths` | Use relative paths in SARIF output |
|
|
74
77
|
|
|
@@ -85,7 +88,7 @@ Supported vendors: `cisco-ios`, `juniper-junos`, `palo-alto`, `fortinet`, `arist
|
|
|
85
88
|
|
|
86
89
|
| Option | Description |
|
|
87
90
|
|--------|-------------|
|
|
88
|
-
| `-c, --config <path>` | Path to config file (default: auto-detect
|
|
91
|
+
| `-c, --config <path>` | Path to config file (default: auto-detect in the current directory only) |
|
|
89
92
|
| `--no-config` | Ignore config file |
|
|
90
93
|
| `-d, --disable <ids>` | Comma-separated rule IDs to disable |
|
|
91
94
|
| `--list-rules` | List all active rules and exit |
|
|
@@ -193,7 +196,7 @@ If `@sentriflow/licensing` is not installed, these commands display a message wi
|
|
|
193
196
|
| `-D, --directory <path>` | Scan all config files in a directory |
|
|
194
197
|
| `-R, --recursive` | Scan directories recursively |
|
|
195
198
|
| `--glob <pattern>` | Glob pattern for file matching (e.g., `"*.cfg"`) |
|
|
196
|
-
| `--extensions <exts>` | File extensions to include (comma-separated) |
|
|
199
|
+
| `--extensions <exts>` | File extensions to include (comma-separated; leading dot optional) |
|
|
197
200
|
| `--exclude <patterns>` | Exclude patterns (comma-separated glob patterns) |
|
|
198
201
|
| `--progress` | Show progress during directory scanning |
|
|
199
202
|
|
|
@@ -306,7 +309,9 @@ sentriflow --list-rules --category encryption --list-format json
|
|
|
306
309
|
|
|
307
310
|
## Configuration File
|
|
308
311
|
|
|
309
|
-
SentriFlow automatically
|
|
312
|
+
SentriFlow automatically loads a config file (`sentriflow.config.ts`, `sentriflow.config.js`, `.sentriflowrc.ts` or `.sentriflowrc.js`) from the **current working directory only** and prints `Using config: <path>` to stderr. Parent directories and the scanned path are never searched; use `--config <path>` for any other location.
|
|
313
|
+
|
|
314
|
+
> A config file is trusted code. Do not run the tool from inside a directory you do not trust without `--no-config`. The GitHub Action and the Docker image run with `--no-config` unless you opt in (`config` input / `--config <path>`).
|
|
310
315
|
|
|
311
316
|
```json
|
|
312
317
|
{
|