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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user