Skip to content

Commit f36e6bd

Browse files
fix(ci): exclude test fixtures from trufflehog via .trufflehogignore
REPOSITORY_TRUFFLEHOG_ARGS is not honored by the MegaLinter trufflehog descriptor; the supported mechanism is a workspace .trufflehogignore file, which MegaLinter merges into the generated --exclude-paths file. Excludes packages/create-awesome-python-app/tests/ only — production code remains fully scanned.
1 parent 2d54b1e commit f36e6bd

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.mega-linter.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,3 @@ DISABLE_LINTERS:
3535

3636
SHOW_ELAPSED_TIME: true
3737
FILTER_REGEX_EXCLUDE: (uv\.lock|megalinter-reports/)
38-
# trufflehog >=3.96 Lob detector false-positives on `test_*` function names
39-
# (Lob test keys share the `test_` prefix). Keep every other detector active.
40-
REPOSITORY_TRUFFLEHOG_ARGS: "--exclude-detectors=Lob"

.trufflehogignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Lob detector false-positives: any `test_*` function name looks like a Lob
2+
# test key (shared `test_` prefix). Exclude test fixtures from the scan;
3+
# production code stays fully covered.
4+
packages/create-awesome-python-app/tests/.*

0 commit comments

Comments
 (0)