chore: refine generic-api-key fps + trace logging (#1720)

This commit is contained in:
Richard Gomez authored and GitHub committed 2025-01-21 08:29:24 -06:00
1 parent 69ed20e25e
commit a43dc0d3d0
6 files changed
+57 -29

No files matched your search

+2 -1
View File
@@ -42,7 +42,8 @@ func (d *Detector) DetectGit(cmd *sources.GitCmd, remote *RemoteInfo) ([]report.
commitSHA := ""
if gitdiffFile.PatchHeader != nil {
commitSHA = gitdiffFile.PatchHeader.SHA
if d.Config.Allowlist.CommitAllowed(gitdiffFile.PatchHeader.SHA) {
if ok, c := d.Config.Allowlist.CommitAllowed(gitdiffFile.PatchHeader.SHA); ok {
logging.Trace().Str("allowed-commit", c).Msg("skipping commit: global allowlist")
continue
}
}