[HIGH] Fix secret scanner false negatives on file read errors #267
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Priority: HIGH - Security vulnerability
Problem:
SecretScannerService returns "no secrets found" when file reading fails, potentially approving commits with secrets.
File:
apps/orchestrator/src/git/secret-scanner.service.ts:268-277Hidden Errors:
Impact:
CRITICAL SECURITY RISK - A commit containing secrets could be approved because scanner failed to read the file but returned "no secrets found."
Acceptance Criteria:
scanFailed: booleanfield in SecretScanResultRecommended Fix:
Code Review Confidence: 85%
Found by: pr-review-toolkit:silent-failure-hunter
✅ Fixed: Added try-catch around readFile operations with proper error logging. No more silent failures on file read errors.