detect-secrets icon indicating copy to clipboard operation
detect-secrets copied to clipboard

Getting detect-secrets: command not found error

Open aakanshaverma1310 opened this issue 1 year ago • 2 comments

From past 15 days, we are getting below error while using detect secret scan tool. Earlier it was working fine for me.

command - detect-secrets scan --force-use-all-plugins --all-files $(System.DefaultWorkingDirectory)/repo-name > $(Pipeline.Workspace)/detect-secrets.json

Any leads who can help me here to fix the issue? Thanks in advance.

image

aakanshaverma1310 avatar Feb 19 '24 11:02 aakanshaverma1310

@gpflaum @lorenzodb1 - Any suggestion on above?

aakanshaverma1310 avatar Feb 19 '24 13:02 aakanshaverma1310

It looks like detect-secrets is simply not on the path in your build environment. I don't know what build pipeline tools you are using. Did your build move from a machine that had detect-secrets installed to one that doesn't? I don't see any indication that detect-secrets is doing anything wrong, just that your build is failing to find it to run it.

gpflaum avatar Feb 19 '24 14:02 gpflaum

We're going to close this issue as it hasn't received any update in a very long time. Feel free to re-open it if you think it's still relevant.

lorenzodb1 avatar May 16 '24 18:05 lorenzodb1