Repository navigation
Fix tests - #6
Conversation
The tested feature has been disabled in 9c679ce but the tests were left as is, and thus were failing.
Flatten implementation was changed in fbb2a33, but the tests were not updated. The new behaviour is expected as seen in the tests for flatten itself.
HTTP auth has been updated in cc17356 to include base64 validation, the test of this package have been updated but not the global one. We are now using values that are expected to be detected also in the global tests.
Since e4d27d8 (in a change that does not match the commit name), the private keys detected are returned completely instead of juste the first line. So the global tests had to be updated.
This reverts commit 73888f5. This commit breaks all the TestSingleValue that contain an URL. This is because the IniTransformer parses a colon as a key-value delimiter. Prior to this commit the result of the INI parser were always ignored if it consisted of a single key-value pair, and I think it is better this way. I don't really understand the point in trying to parse ini files beofre looking for secrets in them anyway.
defangdevs
left a comment
There was a problem hiding this comment.
Verified locally: with this branch checked out, go build ./... and go test ./... are fully green (main currently has 5 failing tests without this). Reviewed each commit against the referenced regressions — the fixes track them accurately, e.g. the ini_transformer revert restores pre-regression behavior (reject any single key/value parse, since base64 strings ending in == were being misparsed) exactly as the commit message explains. The two disabled artifactory "password" cases are correctly commented out (not deleted) since that detection was intentionally disabled upstream. Confirmed this merges cleanly together with #4 and #5 with no conflicts and everything still green combined.
|
This PR fixes the CI failure currently on Verified locally: merging current @lionello could you review/merge this to get |
|
Bumping this: PR #8 (external contributor, unrelated bytesize-formatting change) just hit the same red CI and had to be told it's not their fault. This is now blocking review of legitimate outside contributions, not just tidying up |
|
@lionello any update about this? And also about tagging a release, even a pre-release would do. |
As said in #5 here are the fixes for the tests. See each commit comment for an explanation.