Replies: 1 comment 5 replies
-
hi can you explain a little more on the following:
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
It has become apparent we should migrate from tfsec to Trivy.
We don't do much in the way of tfsec customisation but one option we do use is
--exclude-downloaded-modules
. The theory being there's little value in being notified about issues in third-party modules that we have no control over, and maintaining long lists of# tfsec:ignore:...
magic comments could get annoying. This option succinctly restricted any issues to just the local codebase.I can't see an analogous option in Trivy to achieve the same. I can do
--skip-dirs=.terraform
which stops Trivy scanning the downloaded module source, including any examples, etc., but it still flags issues with anymodule {}
blocks and I don't really want to have to add long lists of# trivy:ignore:{this,that,something}
comments that could require maintenance when the module is updated. We have Dependabot automatically raise PRs to update modules and it will break that workflow if someone has to manually add more magic comments to get the PR to pass the Trivy workflow that we would inevitably have, (we currently have a tfsec-based one).Desired Behavior
Equivalent functionality to
tfsec --exclude-downloaded-modules
.Actual Behavior
External modules are still scanned.
Reproduction Steps
Target
Git Repository
Scanner
Misconfiguration
Output Format
None
Mode
Standalone
Debug Output
Operating System
Ubuntu
Version
Checklist
trivy --reset
Beta Was this translation helpful? Give feedback.
All reactions