Skip to content

Commit

Permalink
add names to regex
Browse files Browse the repository at this point in the history
  • Loading branch information
VaismanLior committed Aug 8, 2022
1 parent f0ebf3c commit 12ab436
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/scanner/trivy-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ rules:
description: Exclude enums
regexes:
- (?i)enum\s+\w+\s*\{[^\}]*\} # enum { ... }
- (?i)(\w*(mapping|mapper|resolve|parse)\w*)\s*[:=]\s*\{[^\}]+\} # mapping, mapper, resolve, parse { ... }
- (?i)(\w*(mapping|mapper|resolve|parse|names)\w*)\s*[:=]\s*\{[^\}]+\} # mapping, mapper, resolve, parse { ... }
allow-rules:
- id: code-generic-credential-dbname-allowed-paths
title: Code Generic Credential DB Name Allowed Paths
Expand Down Expand Up @@ -104,7 +104,7 @@ rules:
description: Exclude enums
regexes:
- (?i)enum\s+\w+\s*\{[^\}]*\} # enum { ... }
- (?i)(\w*(mapping|mapper|resolve|parse)\w*)\s*[:=]\s*\{[^\}]+\} # mapping, mapper, resolve, parse { ... }
- (?i)(\w*(mapping|mapper|resolve|parse|names)\w*)\s*[:=]\s*\{[^\}]+\} # mapping, mapper, resolve, parse { ... }
allow-rules:
- id: code-generic-credential-api-key-allowed-paths
title: Code Generic Credential API Key Allowed Paths
Expand Down

0 comments on commit 12ab436

Please sign in to comment.