You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there currently an option to make Trivy fail (non-zero exit code) when scanning a repository but no language-specific files are detected (Number of language-specific files: num=0)?
If not, could you consider adding a flag like --fail-on-no-files? This would be extremely valuable in CI/CD pipelines where "successful" scans that didn't actually analyze any dependency files could create false security assurances.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
origin issue : #192
Is there currently an option to make Trivy fail (non-zero exit code) when scanning a repository but no language-specific files are detected (Number of language-specific files: num=0)?
If not, could you consider adding a flag like
--fail-on-no-files? This would be extremely valuable in CI/CD pipelines where "successful" scans that didn't actually analyze any dependency files could create false security assurances.This would prevent silent failures when:
Target
Git Repository
Scanner
Vulnerability
Beta Was this translation helpful? Give feedback.
All reactions