Yelp / detect-secrets

An enterprise friendly way of detecting and preventing secrets in code.
Apache License 2.0
3.58k stars 449 forks source link

detect-secrets-hook read file list from a file, to allow use of exit code #846

Open gpflaum opened 1 month ago

gpflaum commented 1 month ago
gpflaum commented 1 month ago

Upgrading from detect-secrets 1.4 to 1.5 is causing problems for us because detect-secrets-hook 1.5 updates the baseline file even if no new secrets are found. It returns exit code 3 in this case, causing failures in our build pipelines. I'd like to ignore that case, but it's difficult to get the exit code when using xargs.

gpflaum commented 1 month ago

Updated the description with an additional problem that can happen when using xargs and scanning very many files.