Skip to content
Snippets Groups Projects
Verified Commit d0e80724 authored by Mateusz Żebrak's avatar Mateusz Żebrak
Browse files

Make check_is_private_key_nor_password_is_not_logged search only in test logs of clive

parent dc67b396
No related branches found
No related tags found
2 merge requests!415CI check_... scripts improvements,!412V1.27.5.13 release
#!/bin/bash #!/bin/bash
function find_password_private_keys() { function find_password_private_keys() {
find . -path "*/clive/*/latest.log" -print0 |
xargs -0 \
grep \ grep \
--include="latest.log*" \ -Hn -i -w -E '(pass(word)?|[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{51})' |
--exclude-dir="*Node[0-9]" \
-r -i -w -E '(pass(word)?|[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{51})' |
grep "$@" -v -E '(Error in response from url|Problem occurred during communication with|test_tools.__private.logger)' grep "$@" -v -E '(Error in response from url|Problem occurred during communication with|test_tools.__private.logger)'
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment