fix: add last-reviewed watermark SHA to secret-scan safe patterns
This commit is contained in:
parent
e9c144a511
commit
6533f322e3
1 changed files with 2 additions and 1 deletions
|
|
@ -30,9 +30,10 @@ _SECRET_PATTERNS=(
|
|||
_SAFE_PATTERNS=(
|
||||
# Shell variable references: $VAR, ${VAR}, ${VAR:-default}
|
||||
'\$\{?[A-Z_]+\}?'
|
||||
# Git SHAs in typical git contexts (commit refs, not standalone secrets)
|
||||
# Git SHAs in typical git contexts (commit refs, watermarks, not standalone secrets)
|
||||
'commit [0-9a-f]{40}'
|
||||
'Merge [0-9a-f]{40}'
|
||||
'last-reviewed: [0-9a-f]{40}'
|
||||
# Forge/GitHub URLs with short hex (PR refs, commit links)
|
||||
'codeberg\.org/[^[:space:]]+'
|
||||
'localhost:3000/[^[:space:]]+'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue