Skip to content

Commit

Permalink
msg-filter: abstract out source directory in GITLEAKS_WARNING
Browse files Browse the repository at this point in the history
  • Loading branch information
kdudka committed Nov 24, 2022
1 parent 5de9670 commit f2e24b1
Show file tree
Hide file tree
Showing 8 changed files with 1,764 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/msg-filter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ MsgFilter::MsgFilter():
"^(use of uninitialized value '[^'<]+\\.<)[^>]+(>.[^']+)'",
"\\1XXX\\2");

// abstract out source directory in /builddir/build/BUILD/...
d->addMsgFilter("GITLEAKS_WARNING",
"( has detected secret for file /builddir/build/BUILD/)[^/]+/",
"\\1.../");

// auxiliary info provided by valgrind directly in the key event message
d->addMsgFilter("VALGRIND_WARNING",
" lost in loss record [0-9,]+ of [0-9,]+$", "");
Expand Down
1 change: 1 addition & 0 deletions tests/csdiff/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,6 @@ test_csdiff(diff-misc 10-pylint-copr)
test_csdiff(diff-misc 11-pylint-copr-json)
test_csdiff(diff-misc 12-shellcheck-sc222x)
test_csdiff(diff-misc 13-gcca-filt)
test_csdiff(diff-misc 14-gitleaks-paths)

add_subdirectory(filter-file)
Empty file.
Empty file.
Empty file.
Empty file.
879 changes: 879 additions & 0 deletions tests/csdiff/diff-misc/14-gitleaks-paths-new.err

Large diffs are not rendered by default.

879 changes: 879 additions & 0 deletions tests/csdiff/diff-misc/14-gitleaks-paths-old.err

Large diffs are not rendered by default.

0 comments on commit f2e24b1

Please sign in to comment.