Working in a new environment I had to do a fresh install of the detect-secrets CLI tool, which I did following the instructions from the README (i.e. running pip install --upgrade "git+https://github.com/ibm/detect-secrets.git@master#egg=detect-secrets").
When I ran the command detect-secrets scan --update .secrets.baseline all the results which previously existed in the .secrets.baseline file were wiped away and the results was just an empty object.
When I switched to a different environment that already had the detect-secrets CLI tool installed with version 0.13.1+ibm.61.dss and I ran the same command, it worked as expected.
To Reproduce
Steps to reproduce the behavior:
- Have an established baseline file which was created using detect-secrets@0.13.1+ibm.61.dss
- Install detect-secrets@0.13.1+ibm.62.dss
- Run
detect-secrets scan --update .secrets.baseline
Expected behavior
Running the aforementioned command should not result in an empty object for the results key in the baseline file
Impact
Medium
Consistent behavior when using the detect-secrets CLI tool
Additional context:
- Operating environment,
0.13.1+ibm.62.dss was installed and run in a CentOS 7 environment while 0.13.1+ibm.61.dss was installed and run on MacOS Ventura 13.6.4
Working in a new environment I had to do a fresh install of the detect-secrets CLI tool, which I did following the instructions from the README (i.e. running
pip install --upgrade "git+https://github.com/ibm/detect-secrets.git@master#egg=detect-secrets").When I ran the command
detect-secrets scan --update .secrets.baselineall the results which previously existed in the .secrets.baseline file were wiped away and the results was just an empty object.When I switched to a different environment that already had the detect-secrets CLI tool installed with version 0.13.1+ibm.61.dss and I ran the same command, it worked as expected.
To Reproduce
Steps to reproduce the behavior:
detect-secrets scan --update .secrets.baselineExpected behavior
Running the aforementioned command should not result in an empty object for the
resultskey in the baseline fileImpact
Medium
Consistent behavior when using the detect-secrets CLI tool
Additional context:
0.13.1+ibm.62.dss was installed and run in a CentOS 7 environment while 0.13.1+ibm.61.dss was installed and run on MacOS Ventura 13.6.4