File tree 5 files changed +7
-11
lines changed
5 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ endif
171
171
172
172
mkdir -p ${ONE_SEC_AFTER_JSON_DIR}
173
173
sleep 1
174
- ./vuls.new scan -trivy-cachedb-dir=./integration/data/trivy-cache -trivy-skip-java-db-update - config=./integration/int-config.toml --results-dir=${BASE_DIR} ${LIBS}
174
+ ./vuls.new scan -config=./integration/int-config.toml --results-dir=${BASE_DIR} ${LIBS}
175
175
cp -f ${BASE_DIR}/$(CURRENT)/*.json ${ONE_SEC_AFTER_JSON_DIR}
176
176
cp integration/data/results/*.json ${ONE_SEC_AFTER_JSON_DIR}
177
177
./vuls.new report --format-json --refresh-cve --results-dir=${BASE_DIR} -config=./integration/int-redis-config.toml ${ONE_SEC_AFTER}
Original file line number Diff line number Diff line change @@ -29,10 +29,9 @@ type Config struct {
29
29
logging.LogOpts
30
30
31
31
// scan, report
32
- HTTPProxy string `valid:"url" json:"httpProxy,omitempty"`
33
- ResultsDir string `json:"resultsDir,omitempty"`
34
- Pipe bool `json:"pipe,omitempty"`
35
- TrivyCacheDBDir string `json:"trivyCacheDBDir,omitempty"`
32
+ HTTPProxy string `valid:"url" json:"httpProxy,omitempty"`
33
+ ResultsDir string `json:"resultsDir,omitempty"`
34
+ Pipe bool `json:"pipe,omitempty"`
36
35
37
36
Default ServerInfo `json:"default,omitempty"`
38
37
Servers map [string ]ServerInfo `json:"servers,omitempty"`
@@ -79,6 +78,7 @@ type ScanOpts struct {
79
78
type ReportOpts struct {
80
79
CvssScoreOver float64 `json:"cvssScoreOver,omitempty"`
81
80
ConfidenceScoreOver int `json:"confidenceScoreOver,omitempty"`
81
+ TrivyCacheDBDir string `json:"trivyCacheDBDir,omitempty"`
82
82
NoProgress bool `json:"noProgress,omitempty"`
83
83
RefreshCve bool `json:"refreshCve,omitempty"`
84
84
IgnoreUnfixed bool `json:"ignoreUnfixed,omitempty"`
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ require (
13
13
github.com/aquasecurity/go-dep-parser v0.0.0-20231120074854-8322cc2242bf
14
14
github.com/aquasecurity/trivy v0.48.0
15
15
github.com/aquasecurity/trivy-db v0.0.0-20231005141211-4fc651f7ac8d
16
- github.com/aquasecurity/trivy-java-db v0.0.0-20230209231723-7cddb1406728
17
16
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2
18
17
github.com/aws/aws-sdk-go v1.48.4
19
18
github.com/c-robinson/iplib v1.0.7
@@ -108,6 +107,7 @@ require (
108
107
github.com/aquasecurity/go-pep440-version v0.0.0-20210121094942-22b2f8951d46 // indirect
109
108
github.com/aquasecurity/go-version v0.0.0-20210121072130-637058cfe492 // indirect
110
109
github.com/aquasecurity/trivy-iac v0.7.0 // indirect
110
+ github.com/aquasecurity/trivy-java-db v0.0.0-20230209231723-7cddb1406728 // indirect
111
111
github.com/aquasecurity/trivy-policies v0.6.1-0.20231120231532-f6f2330bf842 // indirect
112
112
github.com/aws/aws-sdk-go-v2 v1.22.1 // indirect
113
113
github.com/aws/aws-sdk-go-v2/config v1.18.45 // indirect
Original file line number Diff line number Diff line change @@ -641,8 +641,7 @@ func (l *base) scanLibraries() (err error) {
641
641
l .log .Info ("Scanning Language-specific Packages..." )
642
642
643
643
if err := trivyInitOnce (); err != nil {
644
- logging .Log .Errorf ("Trivy init error: %+v" , err )
645
- return err
644
+ return xerrors .Errorf ("Failed to initialize Trivy. err: %w" , err )
646
645
}
647
646
648
647
found := map [string ]bool {}
Original file line number Diff line number Diff line change @@ -44,9 +44,6 @@ func (*ScanCmd) Usage() string {
44
44
[-log-to-file]
45
45
[-log-dir=/path/to/log]
46
46
[-cachedb-path=/path/to/cache.db]
47
- [-trivy-cachedb-dir=/path/to/dir]
48
- [-trivy-java-db-repository=ghcr.io/aquasecurity/trivy-java-db]
49
- [-trivy-skip-java-db-update]
50
47
[-http-proxy=http://192.168.0.1:8080]
51
48
[-timeout=300]
52
49
[-timeout-scan=7200]
You can’t perform that action at this time.
0 commit comments