Fix: Close verification gate review findings
This commit is contained in:
@@ -29,7 +29,8 @@ note() { findings+=("$1"); }
|
||||
scanner="$repo_dir/tests/server/scan-tracked-secrets.py"
|
||||
fixtures_dir="$repo_dir/tests/server/fixtures/secrets"
|
||||
|
||||
if ! python3 "$scanner" "$fixtures_dir/clean" compose.yml .env.example README.md; then
|
||||
if ! python3 "$scanner" "$fixtures_dir/clean" \
|
||||
compose.yml .env.example README.md signature-near-misses.txt; then
|
||||
note 'the clean secret-scanning fixture was rejected'
|
||||
fi
|
||||
|
||||
@@ -53,6 +54,10 @@ expect_leak .env.example '.env.example:1: API_TOKEN'
|
||||
expect_leak plain-list.yml 'plain-list.yml:4: API_TOKEN'
|
||||
expect_leak quoted-mapping.yml 'quoted-mapping.yml:4: API_TOKEN'
|
||||
expect_leak quoted-list.yml 'quoted-list.yml:4: API_TOKEN'
|
||||
expect_leak pem-private-key.txt 'pem-private-key.txt:1: private key'
|
||||
expect_leak anthropic-token.txt 'anthropic-token.txt:1: provider token'
|
||||
expect_leak github-token.txt 'github-token.txt:1: provider token'
|
||||
expect_leak slack-token.txt 'slack-token.txt:1: provider token'
|
||||
|
||||
mapfile -t tracked_server_files < <(git -C "$repo_dir" ls-files 'server/**' 'server/*')
|
||||
if ! output="$(python3 "$scanner" "$repo_dir" "${tracked_server_files[@]}" 2>&1)"; then
|
||||
|
||||
Reference in New Issue
Block a user