-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
Noticed that setting a global config for baseline doesn't actually take. CLI and per-repo YAML config work fine. Below example config doesn't actually work.
default:
plugins:
HexHighEntropyString: 3
Base64HighEntropyString: 4.5
PrivateKeyDetector: true
baseline: .secrets.baseline
base_temp_dir: /some/path/to/store
In spite of code documentation which suggests that it should:
detect-secrets-server/detect_secrets_server/actions/initialize.py
Lines 81 to 82 in e9f60d6
| :type baseline_filename: str | |
| :param baseline_filename: repo-specific filename of baseline file |
Doesn't work if this YAML index is baseline or baseline_filename (which is what it ends up saved as in the tracked JSON).
Likely root cause is because baseline isn't taken into consideration in def apply_default_plugin_options_to_repos()or similar function. Same applies for storage location base_temp_dir.
Metadata
Metadata
Assignees
Labels
No labels