Merge remote-tracking branch 'origin/main' into fix/pr3649-review

This commit is contained in:
Tom Boucher
2026-05-17 00:45:09 -04:00
15 changed files with 1279 additions and 5 deletions

View File

@@ -77,13 +77,15 @@ ALLOWLIST=(
'hooks/gsd-prompt-guard.js'
'hooks/gsd-read-injection-scanner.js'
'tests/read-injection-scanner.test.cjs'
'tests/security-prompt-injection.test.cjs'
'tests/fixtures/adversarial/security/'
'SECURITY.md'
)
is_allowlisted() {
local file="$1"
for allowed in "${ALLOWLIST[@]}"; do
if [[ "$file" == *"$allowed" ]]; then
if [[ "$file" == *"$allowed"* ]]; then
return 0
fi
done

View File

@@ -107,6 +107,8 @@ should_skip_file() {
case "$file" in
*/secret-scan.sh) return 0 ;;
*/security-scan.test.cjs) return 0 ;;
*/security-prompt-injection.test.cjs) return 0 ;;
tests/fixtures/adversarial/security/*|*/tests/fixtures/adversarial/security/*) return 0 ;;
esac
return 1
}