Skip to content

[BUG] Regression in 0.13.1+ibm.62.dss resulting in results being wiped out from baseline file #148

Description

@mlucic

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:

  1. Have an established baseline file which was created using detect-secrets@0.13.1+ibm.61.dss
  2. Install detect-secrets@0.13.1+ibm.62.dss
  3. 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

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