Skip to content

Global config option for baseline/storage location don't take #43

@sp3nx0r

Description

@sp3nx0r

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:

: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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions