oxsecurity / megalinter

🦙 MegaLinter analyzes 50 languages, 22 formats, 21 tooling formats, excessive copy-pastes, spelling mistakes and security issues in your repository sources with a GitHub Action, other CI tools or locally.
https://ox.security
GNU Affero General Public License v3.0
1.97k stars 238 forks source link

Env variable replacement for PRE_COMMIT + command in log #4298

Closed nvuillam closed 1 week ago

nvuillam commented 1 week ago

Allow to replace an ENV var value with the value of another ENV var before calling a PRE_COMMAND (helps for tflint run from GitHub Enterprise) Fixes https://github.com/oxsecurity/megalinter/issues/2947

Display command log (truncated to 200 chars) even when LOG_LEVEL is not DEBUG

github-actions[bot] commented 1 week ago

🦙 MegaLinter status: ⚠️ WARNING

Descriptor Linter Files Fixed Errors Elapsed time
✅ API spectral 1 0 1.88s
⚠️ BASH bash-exec 6 1 0.05s
✅ BASH shellcheck 6 0 0.21s
✅ BASH shfmt 6 0 0 0.83s
✅ COPYPASTE jscpd yes no 3.43s
✅ DOCKERFILE hadolint 128 0 23.36s
✅ JSON jsonlint 20 0 0.24s
✅ JSON v8r 22 0 41.93s
⚠️ MARKDOWN markdownlint 266 0 297 34.28s
✅ MARKDOWN markdown-table-formatter 266 0 0 193.8s
⚠️ PYTHON bandit 212 66 3.75s
✅ PYTHON black 212 0 0 5.31s
✅ PYTHON flake8 212 0 2.33s
✅ PYTHON isort 212 0 0 1.37s
✅ PYTHON mypy 212 0 18.0s
✅ PYTHON pylint 212 0 25.4s
✅ PYTHON ruff 212 0 0 0.86s
✅ REPOSITORY checkov yes no 37.42s
✅ REPOSITORY git_diff yes no 0.77s
⚠️ REPOSITORY grype yes 25 14.73s
✅ REPOSITORY secretlint yes no 14.92s
✅ REPOSITORY trivy yes no 67.48s
✅ REPOSITORY trivy-sbom yes no 0.37s
⚠️ REPOSITORY trufflehog yes 1 62.29s
✅ SPELL cspell 713 0 13.15s
⚠️ SPELL lychee 348 10 6.62s
✅ XML xmllint 3 0 0 0.82s
✅ YAML prettier 160 0 0 5.05s
✅ YAML v8r 102 0 236.41s
✅ YAML yamllint 161 0 3.13s

See detailed report in MegaLinter reports

_MegaLinter is graciously provided by OX Security_