Repository navigation
chore: add trivy to the lint stack - #121
Draft
iloveitaly wants to merge 4 commits into
Draft
iloveitaly wants to merge 4 commits into
iloveitaly wants to merge 4 commits into
Conversation
Scan the working tree for high and critical vulnerabilities, misconfigurations, and secrets from just dev_lint, alongside gitleaks. Co-authored-by: Michael Bianco <mike@mikebian.co>
Override brace-expansion, js-yaml, and shell-quote so the Trivy lint gate passes on the current lockfile. Co-authored-by: Michael Bianco <mike@mikebian.co>
Point just dev_lint at .config/trivy.yaml with --config. Co-authored-by: Michael Bianco <mike@mikebian.co>
The Trivy gate now flags 1.1.18, 2.1.4, and 5.0.9. Pin the fixed releases. Co-authored-by: Michael Bianco <mike@mikebian.co>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
The lint stack already covers secrets in git history with gitleaks, but it does not scan dependency advisories or infrastructure misconfiguration. Trivy covers that working-tree gap.
Description
aqua:aquasecurity/trivy, locked at 0.74.0) as a dev/CI tool.trivy fs --config .config/trivy.yaml .fromjust dev_lint, whichjust lintand the backend CI job already call..config/trivy.yaml: HIGH and CRITICAL only, ignore unfixed advisories, include dev dependencies, and scan vulnerabilities, misconfigurations, and secrets. Vendored mise locks andnode_modulesare skipped.~/.cache/trivyin the backend workflow so the vulnerability database is not downloaded on every run.brace-expansion,js-yaml, andshell-quoteinweb/pnpm-workspace.yamlso the new gate is green.Screenshots / Test
just dev_lintexits 0. gitleaks reports no leaks, and the Trivy report shows 0 high or critical vulnerabilities, misconfigurations, and secrets foruv.lock,web/pnpm-lock.yaml, andinfra/azure. Trivy logsLoaded file_path=".config/trivy.yaml".Links