Skip to content

Commit

Permalink
testing exclude p2
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiechayes committed Sep 28, 2023
1 parent e21a9fd commit e1b1f3d
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" --exclude "$keyFile")
files=$(grep -rl "$apiKey" "$searchFolder" --exclude "../../../generator/konfig-dash/api/src/lib/api-keys.ts")
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 e1b1f3d

Please sign in to comment.