From 4dadc536d21fb9bc7b80951ff159dce6454ac5a1 Mon Sep 17 00:00:00 2001 From: Roman Babenko Date: Sun, 15 Oct 2023 13:21:06 +0300 Subject: [PATCH] [skip actions] [docx] 2023-10-15T13:21:06+03:00 --- credsweeper/file_handler/file_path_extractor.py | 2 +- tests/samples/sample.docx.gz | Bin 0 -> 3358 bytes tests/samples/small.pdf | Bin 0 -> 608 bytes 3 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 tests/samples/sample.docx.gz create mode 100644 tests/samples/small.pdf diff --git a/credsweeper/file_handler/file_path_extractor.py b/credsweeper/file_handler/file_path_extractor.py index ae3939643..ba8dc6f5b 100644 --- a/credsweeper/file_handler/file_path_extractor.py +++ b/credsweeper/file_handler/file_path_extractor.py @@ -143,7 +143,7 @@ def check_exclude_file(config: Config, path: str) -> bool: return True if not config.depth and file_extension in config.exclude_containers: return True - # --depth or --doc enables scan for all files + # --depth or --doc enables scan for all documents extensions if not (config.depth or config.doc) and file_extension in config.exclude_documents: return True return False diff --git a/tests/samples/sample.docx.gz b/tests/samples/sample.docx.gz new file mode 100644 index 0000000000000000000000000000000000000000..7c4c560125a8fa2fd51fe9d351742122de65c3d9 GIT binary patch literal 3358 zcmV+(4dL=1iwFq+xGQA<19M?*aBO8RWN%}50PP!1ZzM;xlg%#4hL3~<6p27uqrHWh zo}LeTJhCU+*m1I~*K4h3;{bxCrn_dQ*Zq~M9*?~zQ2qcXKq3+nNI7uH1tAXHkvJeO zfeQjf3Q{BvC>JgWiB})pUHvik*dA|4#7J#-SG{`g)qAhrM_2XE%}bA6)!6Ut_U*mj z{_LF(wy$U!yPnaW*S@_T_!0J_d;Oyj)9=&{J@;<^3GGtndoSV-e)A%p96qT%^4N!$ zG>!jReF*^c15BtB_-hrjR1{WD#xY+tWVb}<0uNdhC!_{ z_7JTFA@-qX7!VId@JL2Rh^&1y!bYQBUotGgQ8i*XD!tVWJVX;W(qB1*WlqbA>PpTV-EN%n+sjI?|LdbatUan}?0QO-p7e$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