Fix security check and remove obsolete tests

- Update security check to ignore environment variable references
- Remove tests for Lambda and DynamoDB that no longer exist
- Update tests to check for API service usage
- Fix Amplify build failure
This commit is contained in:
DaX
2025-06-20 15:54:25 +02:00
parent 82c476430f
commit 99a41f43fb
4 changed files with 10 additions and 109 deletions

View File

@@ -33,7 +33,12 @@ function scanFile(filePath) {
if (matches) {
matches.forEach(match => {
// Only flag if it's not a placeholder or example
if (!match.includes('example') && !match.includes('YOUR_') && !match.includes('xxx')) {
if (!match.includes('example') &&
!match.includes('YOUR_') &&
!match.includes('xxx') &&
!match.includes('your-password') &&
!match.includes('process.env') &&
!match.includes('<set-in-environment>')) {
issues.push({
file: filePath,
pattern: pattern.source,