We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb7243d commit 911ca74Copy full SHA for 911ca74
pkg/util/trivy/trivy.go
@@ -104,6 +104,7 @@ func getDefaultArtifactOption(opts sbom.ScanOptions) artifact.Option {
104
Parallel: parallel,
105
SBOMSources: []string{},
106
DisabledHandlers: DefaultDisabledHandlers(),
107
+ FileChecksumJar: true,
108
WalkerOption: walker.Option{
109
ErrorCallback: func(_ string, err error) error {
110
if errors.Is(err, fs.ErrPermission) || errors.Is(err, fs.ErrNotExist) {
@@ -164,10 +165,6 @@ func getDefaultArtifactOption(opts sbom.ScanOptions) artifact.Option {
164
165
)
166
}
167
- if slices.Contains(opts.Analyzers, LanguagesAnalyzers) {
168
- option.FileChecksum = true
169
- }
170
-
171
return option
172
173
0 commit comments