Skip to content

Commit

Permalink
test exclude
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiechayes committed Sep 28, 2023
1 parent c8517ee commit e21a9fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator/konfig-dash/bash-scripts/guard-api-key-leak.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ searchFolder="../../.." # entire repo
foundKey=false

for apiKey in "${apiKeys[@]}"; do
files=$(grep -rl "$apiKey" "$searchFolder")
files=$(grep -rl "$apiKey" "$searchFolder" --exclude "$keyFile")
if [ -n "$files" ]; then
foundKey=true
echo "ERROR: Security risk detected. API key leaked in the following file(s):"
Expand Down

0 comments on commit e21a9fd

Please sign in to comment.