Commit 9cb7a65
authored
fix(ci): restore megalinter gate on main (hadolint, editorconfig, trufflehog) (#286)
* fix(ci): restore megalinter gate on main (hadolint, editorconfig, trufflehog)
Megalinter has been red on main since the v10 image / trufflehog 3.96
toolchain drift. Three independent findings, fixed at the source:
1. hadolint DL3066 (Dockerfile:32): use numeric UID (USER 1000) — the
user is created with --uid 1000 a few lines above.
2. editorconfig-checker: docs/TROUBLESHOOTING.md contained mixed CRLF/LF
line endings (introduced via PR #285); normalized to LF per
.editorconfig (end_of_line = lf).
3. trufflehog >=3.96 Lob detector flags every `test_*` function name as a
verified Lob key (Lob test keys share the `test_` prefix). Excluded
only the Lob detector via REPOSITORY_TRUFFLEHOG_ARGS so all other
secret detectors stay active. Verified locally: 0 findings with
trufflehog 3.96.0 after exclusion.
Validation:
- trufflehog 3.96.0 --only-verified --exclude-detectors=Lob: clean
- pytest tests/test_catalog_resolve.py tests/test_cli.py: 35 passed
* 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.
---------
Co-authored-by: ulises-jeremias <ulises-jeremias@users.noreply.github.com>1 parent 762a0c4 commit 9cb7a65
4 files changed
Lines changed: 384 additions & 380 deletions
File tree
- docs
- packages/create-awesome-python-app/tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
0 commit comments