Skip to content

Commit

Permalink
fix: disable trivy fs-vuln (#503)
Browse files Browse the repository at this point in the history
Trivy fs-vuln and osv-scanner report duplicate issues - after discussion
[here](https://docs.google.com/document/d/1uS4CUtlM3MnvzTxn2iRGF9GMagVAIcVbDqKdQaDJOl4/edit),
we've decided to disable trivy fs-vuln for now and potentially handle
duplicate issues more robustly down the line.
  • Loading branch information
puzzler7 authored Oct 5, 2023
1 parent 6a633c3 commit 1146a6e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions linters/trivy/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Trivy

Trivy has the following subcommands:

- `config`
- Runs `trivy config`
([docs](https://aquasecurity.github.io/trivy/latest/docs/scanner/misconfiguration/)) to scan for
misconfigurations in infrastructure-as-code files. Enabled by default.
- `fs-vuln`
- Runs `trivy fs --scanners vuln`
([docs](https://aquasecurity.github.io/trivy/latest/docs/target/filesystem/)) to scan for
security vulnerabilities. Disabled by default.
- `fs-secret`
- Runs `trivy fs --scanners secret`
([docs](https://aquasecurity.github.io/trivy/latest/docs/target/filesystem/)) to scan for
secrets. Disabled by default.

To enable/disable these, add the subcommands you want enabled in your trunk.yaml as such:

```yaml
lint:
enabled:
- trivy@0.45.1:
commands: [config, fs-vuln]
```
1 change: 1 addition & 0 deletions linters/trivy/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ lint:
# Trivy does not support batching
batch: false
is_security: true
enabled: false
parser:
runtime: python
run: python3 ${plugin}/linters/trivy/trivy_fs_vuln_to_sarif.py
Expand Down

0 comments on commit 1146a6e

Please sign in to comment.