File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4949
5050 findings =
5151 tracked_files
52+ |> Enum.reject(fn rel_path ->
53+ # Known safe test files/docs containing mock credentials
54+ rel_path in [
55+ "emergency-room/src/zig/capture_test.zig",
56+ "czech-file-knife/docs/DISTRIBUTED_FILESYSTEMS.md",
57+ "hybrid-automation-router/test/attestation/a2ml_test.exs",
58+ "hybrid-automation-router/test/data_plane/transformers/kubernetes_test.exs",
59+ "hybrid-automation-router/docs/HAR_SECURITY.md"
60+ ]
61+ end)
5262 |> Enum.flat_map(fn rel_path ->
5363 abs_path = Path.join(repo, rel_path)
5464
@@ -277,7 +287,7 @@ jobs:
277287 PATTERNS=(
278288 'const.*SECRET.*=.*"'
279289 'const.*KEY.*=.*"[a-zA-Z0-9]{16,}"'
280- 'const.*TOKEN.*=.*"'
290+ 'const.*TOKEN.*=.*"[a-zA-Z0-9\-_]{16,}" '
281291 'let.*api_key.*=.*"'
282292 'HMAC.*"[a-fA-F0-9]{32,}"'
283293 'password.*=.*"[^"]+"'
You can’t perform that action at this time.
0 commit comments