You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(rules): env-var reads and call expressions are reported as hardcoded secrets #616
False positives: process.env.X, process.env.X || fallback, os.environ["X"], os.getenv("X"), get_password_from_vault(), std::env::var("X")?, String::new(), Java/Kotlin System.getenv("X") on the right-hand side are flagged. Cause: the scanner regex only needs \S{8,} after = and the post-filter only suppresses bare identifiers after a ':'. Direction: require a string literal after '=' (or recognise env/call RHS) for the generic rule.
Found by the table-driven secret heuristics tests (src/engine/secret_heuristics_tests.rs, KNOWN_GAPS row group; PR #615, refs #610). Current behaviour is pinned by the table; fix by moving the rows to CASES.
Activity
test: link KNOWN GAP rows to issues #616-#620 (#610)
refactor(types): ReviewIssue::new constructor and table-driven secret…
test: link remaining KNOWN GAP rows to issues #628-#630 (#616, #617)
fix(rules): stop flagging env reads, call expressions and interpolati…