mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 13:14:22 +01:00
Use first non-empty group if secretGroup isn't set (#1459)
* feat(detect): secret is first non-empty group * test: fix errors - update capture groups - update expected data
This commit is contained in:
1 parent
b4009bfba4
commit
d3c4b9078e
4 files changed
+30
-23
No files matched your search
@@ -76,7 +76,7 @@ func TestWriteSarif(t *testing.T) {
|
||||
}
|
||||
want, err := os.ReadFile(test.expected)
|
||||
require.NoError(t, err)
|
||||
assert.Equal(t, want, got)
|
||||
assert.Equal(t, string(want), string(got))
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user