You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to scan using detect-secrets --all-files and I noticed that the tool does not detect multiple instances of the same secret in a single file. It will simply flag the first instance found. The comment located here makes me believe that this is by design. Is it possible to change this behavior or is the tool not designed for this?
The text was updated successfully, but these errors were encountered:
Hi @gustavotabares, @domanchi and I have had some discussions around this. However we've kind of punted dealing with this particular issue in the recent past. Line numbers are purposely not part of the secret hash because when lines move around we don't want to re-alert, but I don't see why we couldn't have a count of the secret and keep track of it that way. It is kind of a nice-to-have IMO though.
Thanks for making this a GitHub issue 👍 In summary it is possible to change this behavior, it's just that we haven't addressed it yet.
Hello,
I'm trying to scan using
detect-secrets --all-files
and I noticed that the tool does not detect multiple instances of the same secret in a single file. It will simply flag the first instance found. The comment located here makes me believe that this is by design. Is it possible to change this behavior or is the tool not designed for this?The text was updated successfully, but these errors were encountered: