Skip to content

Commit 19ee365

Browse files
authored
chore(deps): bump github.com/MaineK00n/vuls2 (#2215)
1 parent 15dead7 commit 19ee365

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

detector/vuls2/vuls2.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,14 @@ func detect(dbc db.DB, sr scanTypes.ScanResult) (detectTypes.DetectResult, error
162162
}
163163

164164
for rootID, base := range detected {
165-
d, err := dbc.GetVulnerabilityData(dbTypes.SearchDataRoot, string(rootID))
166-
if err != nil {
167-
return detectTypes.DetectResult{}, xerrors.Errorf("Failed to get vulnerability data. RootID: %s, err: %w", rootID, err)
165+
for d, err := range dbc.GetVulnerabilityData(dbTypes.SearchRoot, string(rootID)) {
166+
if err != nil {
167+
return detectTypes.DetectResult{}, xerrors.Errorf("Failed to get vulnerability data. RootID: %s, err: %w", rootID, err)
168+
}
169+
base.Advisories = d.Advisories
170+
base.Vulnerabilities = d.Vulnerabilities
171+
detected[rootID] = base
168172
}
169-
base.Advisories = d.Advisories
170-
base.Vulnerabilities = d.Vulnerabilities
171-
detected[rootID] = base
172173
}
173174

174175
var sourceIDs []sourceTypes.SourceID

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require (
88
github.com/BurntSushi/toml v1.5.0
99
github.com/CycloneDX/cyclonedx-go v0.9.2
1010
github.com/MaineK00n/vuls-data-update v0.0.0-20241224035812-2450d4a4763f
11-
github.com/MaineK00n/vuls2 v0.0.1-alpha.0.20250508062930-5ba469b2c6ca
11+
github.com/MaineK00n/vuls2 v0.0.1-alpha.0.20250523010213-9b211cf92398
1212
github.com/Ullaakut/nmap/v2 v2.2.2
1313
github.com/aquasecurity/trivy v0.61.0
1414
github.com/aquasecurity/trivy-db v0.0.0-20250512105550-319ae10c5abf
@@ -289,7 +289,7 @@ require (
289289
github.com/prometheus/common v0.62.0 // indirect
290290
github.com/prometheus/procfs v0.15.1 // indirect
291291
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
292-
github.com/redis/rueidis v1.0.59 // indirect
292+
github.com/redis/rueidis v1.0.60 // indirect
293293
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
294294
github.com/rivo/uniseg v0.4.7 // indirect
295295
github.com/rubenv/sql-migrate v1.7.1 // indirect

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -682,8 +682,8 @@ github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapp
682682
github.com/JohnCGriffin/overflow v0.0.0-20211019200055-46fa312c352c/go.mod h1:X0CRv0ky0k6m906ixxpzmDRLvX58TFUKS2eePweuyxk=
683683
github.com/MaineK00n/vuls-data-update v0.0.0-20241224035812-2450d4a4763f h1:mGsE8hE7Yb1db2XhLQIL9ueYAqwhkTJkChcS1mUZOMU=
684684
github.com/MaineK00n/vuls-data-update v0.0.0-20241224035812-2450d4a4763f/go.mod h1:X15skWJjHS02lyFsbyU0gXlfrLyOMBrhj7X7cJ876h8=
685-
github.com/MaineK00n/vuls2 v0.0.1-alpha.0.20250508062930-5ba469b2c6ca h1:RH99T4ulOVwmUGDmJH+8M+SZPltRwHKQCbikP6dUSoY=
686-
github.com/MaineK00n/vuls2 v0.0.1-alpha.0.20250508062930-5ba469b2c6ca/go.mod h1:SsK0pcQmkag1EsUilD+dOOF7zK7Xux3T8rE4re3mcx4=
685+
github.com/MaineK00n/vuls2 v0.0.1-alpha.0.20250523010213-9b211cf92398 h1:sI22jqK3ptsn95EQldxgnsKYTRccxzVkFgbwFyNZFMY=
686+
github.com/MaineK00n/vuls2 v0.0.1-alpha.0.20250523010213-9b211cf92398/go.mod h1:5kjwBPbOBPSxBTZz2dOGNbTPGWwawoiYwi4FZRprXl4=
687687
github.com/MakeNowJust/heredoc v1.0.0 h1:cXCdzVdstXyiTqTvfqk9SDHpKNjxuom+DOlyEeQ4pzQ=
688688
github.com/MakeNowJust/heredoc v1.0.0/go.mod h1:mG5amYoWBHf8vpLOuehzbGGw0EHxpZZ6lCpQ4fNJ8LE=
689689
github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI=
@@ -1581,8 +1581,8 @@ github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5X
15811581
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4=
15821582
github.com/redis/go-redis/v9 v9.7.0 h1:HhLSs+B6O021gwzl+locl0zEDnyNkxMtf/Z3NNBMa9E=
15831583
github.com/redis/go-redis/v9 v9.7.0/go.mod h1:f6zhXITC7JUJIlPEiBOTXxJgPLdZcA93GewI7inzyWw=
1584-
github.com/redis/rueidis v1.0.59 h1:r4SpgqrKnKwO2omN+BB5+24OCu+K15zmf/2b/zP7NKw=
1585-
github.com/redis/rueidis v1.0.59/go.mod h1:Lkhr2QTgcoYBhxARU7kJRO8SyVlgUuEkcJO1Y8MCluA=
1584+
github.com/redis/rueidis v1.0.60 h1:MGZX8uNdw7iyWz22JhjA/9iXzddfCUE/EMK4VxKoKpA=
1585+
github.com/redis/rueidis v1.0.60/go.mod h1:Lkhr2QTgcoYBhxARU7kJRO8SyVlgUuEkcJO1Y8MCluA=
15861586
github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=
15871587
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec h1:W09IVJc94icq4NjY3clb7Lk8O1qJ8BdBEF8z0ibU0rE=
15881588
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=

0 commit comments

Comments
 (0)