chore(deps): update tools to latest versions (#3144)

This commit is contained in:
anchore-actions-token-generator[bot]
2024-08-23 14:42:12 -04:00
committed by GitHub
parent cff9d494df
commit dad253785e
27 changed files with 41 additions and 45 deletions
-2
View File
@@ -169,7 +169,6 @@ func getAdditionalFileListing(resolver file.Resolver, dbLocation file.Location,
return files, locations
}
//nolint:dupl
func fetchMd5Contents(resolver file.Resolver, dbLocation file.Location, m pkg.DpkgDBEntry) (io.ReadCloser, *file.Location) {
var md5Reader io.ReadCloser
var err error
@@ -213,7 +212,6 @@ func fetchMd5Contents(resolver file.Resolver, dbLocation file.Location, m pkg.Dp
return md5Reader, &l
}
//nolint:dupl
func fetchConffileContents(resolver file.Resolver, dbLocation file.Location, m pkg.DpkgDBEntry) (io.ReadCloser, *file.Location) {
var reader io.ReadCloser
var err error
+1 -1
View File
@@ -230,7 +230,7 @@ func handleNewKeyValue(line string) (key string, val interface{}, err error) {
if err != nil {
return "", nil, fmt.Errorf("bad installed-size value=%q: %w", val, err)
}
return key, int(s), nil
return key, int(s), nil //nolint:gosec
default:
return key, val, nil
}