Parvez
9d2057a7c2
feat(image): customer podman host or socket option ( #6256 )
...
Co-authored-by: DmitriyLewen <91113035+DmitriyLewen@users.noreply.github.com >
Co-authored-by: DmitriyLewen <dmitriy.lewen@smartforce.io >
2024-03-11 04:27:57 +00:00
saso
7694df11fb
fix(sbom): skip executable file analysis if Rekor isn't a specified SBOM source ( #6163 )
2024-02-20 06:44:35 +00:00
Teppei Fukuda
3c1601b6cb
feat(vuln): show suppressed vulnerabilities in table ( #6084 )
...
Signed-off-by: knqyf263 <knqyf263@gmail.com >
Co-authored-by: DmitriyLewen <91113035+DmitriyLewen@users.noreply.github.com >
2024-02-13 12:35:06 +00:00
Teppei Fukuda
59e54334d1
fix(cli): inconsistent behavior across CLI flags, environment variables, and config files ( #5843 )
...
Signed-off-by: knqyf263 <knqyf263@gmail.com >
2024-02-01 03:25:30 +00:00
Teppei Fukuda
da597c479c
refactor: propagate time through context values ( #5858 )
...
Signed-off-by: knqyf263 <knqyf263@gmail.com >
2024-01-03 09:43:45 +00:00
Teppei Fukuda
99c04c4383
feat(report): output plugin ( #4863 )
...
Signed-off-by: knqyf263 <knqyf263@gmail.com >
Co-authored-by: DmitriyLewen <dmitriy.lewen@smartforce.io >
2023-12-04 11:04:43 +00:00
simar7
b5874e3ad3
feat(misconf): Add --misconfig-scanners option ( #5670 )
2023-11-29 23:59:17 +00:00
Teppei Fukuda
c866f1c4e9
chore: add prefix to image errors ( #5601 )
...
Signed-off-by: knqyf263 <knqyf263@gmail.com >
2023-11-20 12:38:45 +00:00
simar7
13362233c8
feat(misconf): Expose misconf engine debug logs with --debug option ( #5550 )
...
Signed-off-by: Simar <simar@linux.com >
2023-11-16 02:29:38 +00:00
Teppei Fukuda
71051863c6
test: mock VM walker ( #5589 )
...
Signed-off-by: knqyf263 <knqyf263@gmail.com >
2023-11-16 00:49:38 +00:00
simar7
e3c28f8ee3
feat(misconf): Add support for --cf-params for CFT ( #5507 )
...
Signed-off-by: Simar <simar@linux.com >
Co-authored-by: nikpivkin <nikita.pivkin@smartforce.io >
2023-11-15 07:04:22 +00:00
Teppei Fukuda
ac0e327492
feat(flag): replace '--slow' with '--parallel' ( #5572 )
...
Signed-off-by: knqyf263 <knqyf263@gmail.com >
2023-11-15 06:41:13 +00:00
Teppei Fukuda
cccaa15ccd
chore: sort supported AWS services ( #5570 )
...
Signed-off-by: knqyf263 <knqyf263@gmail.com >
2023-11-14 05:35:42 +00:00
DmitriyLewen
138feb024c
fix(cli): set correct scanners for k8s target ( #5561 )
2023-11-13 07:24:22 +00:00
simar7
e7f6a5c805
refactor(misconf): Update refactored dependencies ( #5245 )
...
Signed-off-by: Simar <simar@linux.com >
2023-11-09 02:24:52 +00:00
simar7
01c98d1516
feat(misconf): Support --ignore-policy in config scans ( #5359 )
...
Signed-off-by: Simar <simar@linux.com >
2023-10-23 07:32:08 +00:00
Teppei Fukuda
3be5e6b242
chore: enable go-critic ( #5302 )
...
* chore: enable gocritic
Signed-off-by: knqyf263 <knqyf263@gmail.com >
* refactor: fix lint issues
Signed-off-by: knqyf263 <knqyf263@gmail.com >
* test: return true for latest versions
Signed-off-by: knqyf263 <knqyf263@gmail.com >
* chore(lint): enforce map and slice styles
Signed-off-by: knqyf263 <knqyf263@gmail.com >
---------
Signed-off-by: knqyf263 <knqyf263@gmail.com >
2023-10-02 08:33:21 +00:00
DmitriyLewen
0ccbb4f7fd
chore(cli): disable java-db flags in server mode ( #5263 )
...
* disable java-db flag for server mode
* update docs
2023-09-28 07:10:14 +00:00
Michel Meyer
908a4914c7
feat(db): allow passing registry options ( #5226 )
...
* feat(db): allow passing registry options
Signed-off-by: Michel Meyer <meyer_michel@outlook.com >
* feat(db): pass cli registry options to javaDB
---------
Signed-off-by: Michel Meyer <meyer_michel@outlook.com >
2023-09-27 13:17:11 +00:00
Teppei Fukuda
44656f2853
refactor: use defined types ( #5225 )
...
* refactor: replace string with defined types
Signed-off-by: knqyf263 <knqyf263@gmail.com >
* chore: add gci
Signed-off-by: knqyf263 <knqyf263@gmail.com >
* fix(purl): not confuse trivy type with purl type
Signed-off-by: knqyf263 <knqyf263@gmail.com >
* test: fix cyclonedx fixture
Signed-off-by: knqyf263 <knqyf263@gmail.com >
* fix(template): cast TargetType to string
Signed-off-by: knqyf263 <knqyf263@gmail.com >
* chore: bump TinyGo to v0.29.0
Signed-off-by: knqyf263 <knqyf263@gmail.com >
* test: change license to licence
Signed-off-by: knqyf263 <knqyf263@gmail.com >
* use `analyzer.TypeGoMod` for gomod analyzer
* ignore `licence` for misspell linter
---------
Signed-off-by: knqyf263 <knqyf263@gmail.com >
Co-authored-by: DmitriyLewen <dmitriy.lewen@smartforce.io >
2023-09-22 10:44:39 +00:00
Teppei Fukuda
9628b1cbf3
feat: add support for .trivyignore.yaml ( #5070 )
...
* feat: add support for .trivyignore.yaml
Signed-off-by: knqyf263 <knqyf263@gmail.com >
* add test for trivyignore.yaml
* Add doublestar support
Signed-off-by: knqyf263 <knqyf263@gmail.com >
* go mod tidy
Signed-off-by: knqyf263 <knqyf263@gmail.com >
* update docs
* test: fix
Signed-off-by: knqyf263 <knqyf263@gmail.com >
* fix: load .trivyignore once
Signed-off-by: knqyf263 <knqyf263@gmail.com >
* feat: add a debug log
Signed-off-by: knqyf263 <knqyf263@gmail.com >
* docs: add a table for fields
Signed-off-by: knqyf263 <knqyf263@gmail.com >
* fix: skip empty results
Signed-off-by: knqyf263 <knqyf263@gmail.com >
* revert the change
Signed-off-by: knqyf263 <knqyf263@gmail.com >
---------
Signed-off-by: knqyf263 <knqyf263@gmail.com >
Co-authored-by: DmitriyLewen <dmitriy.lewen@smartforce.io >
2023-08-31 11:53:37 +00:00
Florian Bufler
9345a98ed1
docs(repo): update trivy repo usage and example ( #5049 )
2023-08-28 08:46:39 +00:00
Nikita Pivkin
d442176405
feat(server): add version endpoint ( #4869 )
...
* feat(server): add version endpoint
* fix panic and test
* move version.go
* move version variable
* add docs about endpoints
* move testdata
* refactor
* update build command
* refactor
2023-08-20 06:12:31 +00:00
Nikita Pivkin
e8cf281471
fix(aws): resolve endpoint if endpoint is passed ( #4925 )
...
* fix(aws): resolve endpoint to get identity if endpoint is passed
* resolve endpoint for ami and ebs
* return an error if aws region is missing
2023-08-08 07:19:40 +00:00
Teppei Fukuda
d19c7d9f29
feat(repo): support local repositories ( #4890 )
...
* feat(repo): support local repositories
* fix tests
* test: fix client/server tests
* docs: update
* test: add fs tests
* test: do not update golden files if overridden
* docs: remove a comment about fs deprecation
2023-07-31 11:27:36 +00:00
simar7
11618c9408
feat(misconf): Support custom URLs for policy bundle ( #4834 )
...
* feat(misconf): Support custom URLs for policy bundle
This PR adds support for custom policy bundles to be specified
with a flag `--policy-bundle-url` as an option to Trivy.
Fixes: https://github.com/aquasecurity/trivy/issues/4672
Signed-off-by: Simar <simar@linux.com >
* update docs
Signed-off-by: Simar <simar@linux.com >
* rename flag to `--policy-bundle-repository`
Signed-off-by: Simar <simar@linux.com >
* fix field
* rebase and update docs
Signed-off-by: Simar <simar@linux.com >
* set policyBundleRepo on client
Signed-off-by: Simar <simar@linux.com >
---------
Signed-off-by: Simar <simar@linux.com >
2023-07-26 08:45:49 +00:00
Teppei Fukuda
20c2246a61
fix(report): close the file ( #4842 )
...
* fix(report): close the file
* refactor: add the format type
* fix: return errors in version printing
* fix: lint issues
* fix: do not fail on bogus cache dir
---------
Co-authored-by: DmitriyLewen <dmitriy.lewen@smartforce.io >
2023-07-23 13:37:18 +00:00
DmitriyLewen
24a3e547d9
feat(nodejs): add support for include-dev-deps flag for yarn ( #4812 )
...
* add support for include-dev-deps flag
* remove go.mod replace
* refactor
* bump go-dep-parser
---------
Co-authored-by: knqyf263 <knqyf263@gmail.com >
2023-07-23 13:07:49 +00:00
simar7
a7bd7bb65f
feat(misconf): Add support for independently enabling libraries ( #4070 )
...
* feat(misconf): Add support for independently enabling libraries
Implements: https://github.com/aquasecurity/trivy/issues/4181
Signed-off-by: Simar <simar@linux.com >
* update tests
Signed-off-by: Simar <simar@linux.com >
* fix lint
Signed-off-by: Simar <simar@linux.com >
* fix tests
Signed-off-by: Simar <simar@linux.com >
* update defsec
Signed-off-by: Simar <simar@linux.com >
* fix test
Signed-off-by: Simar <simar@linux.com >
---------
Signed-off-by: Simar <simar@linux.com >
Co-authored-by: knqyf263 <knqyf263@gmail.com >
2023-07-23 09:44:59 +00:00
Teppei Fukuda
aca11b95d0
refactor: add allowed values for CLI flags ( #4800 )
...
* refactor: rename Value to Default
* refactor: support allowed values for CLI flags
* docs: auto-generate
* test: fix
* test: add tests for flags
2023-07-17 13:13:23 +00:00
simar7
4bc8d29c15
feat(misconf): Support custom data for rego policies for cloud ( #4745 )
...
* feat(misconf): Support custom data for cloud policies
Signed-off-by: Simar <simar@linux.com >
* use policyfs
Signed-off-by: Simar <simar@linux.com >
* refactor to reduce cyclomatic complexity
Signed-off-by: Simar <simar@linux.com >
* bump defsec
* update docs
Signed-off-by: Simar <simar@linux.com >
* update test assertion
Signed-off-by: Simar <simar@linux.com >
* update test
Need this as OPA is currently broken on Windows
https://github.com/open-policy-agent/opa/issues/4521
Signed-off-by: Simar <simar@linux.com >
* fix data path
* fix(mapfs): convert volume names into dirs
* revert creating temp dirs
---------
Signed-off-by: Simar <simar@linux.com >
Co-authored-by: Teppei Fukuda <knqyf263@gmail.com >
2023-07-17 12:34:20 +00:00
Nikita Pivkin
3c7d988d71
feat(cli): add --tf-exclude-downloaded-modules flag ( #4810 )
...
* feat(cli): add --tf-exclude-downloaded-modules flag
* fix typo
* generate docs
2023-07-16 08:56:03 +00:00
DmitriyLewen
22463ababd
feat(cli): add include-dev-deps flag ( #4700 )
...
* add Dev field for Package
* fix integration test
* update docs
* feat(cli): add include-dev flag
* bump go-dep-parser
* update docs
* add integration test
* refactor
* refactor
* fix integration test
* refactor: rename flag to include-dev-deps
* update docs
* update docs
* filter dev deps when scanning packages
* add flag support for server mode
* refactor: remove comment that might confuse
* refactor: move --include-dev-deps to the scanner flag group
* refactor: not return apps
* docs: update
---------
Co-authored-by: knqyf263 <knqyf263@gmail.com >
2023-06-29 13:15:52 +00:00
Tung Bui (Leo)
904f1cf24e
fix: Show the correct URL of the secret scanning ( #4682 )
2023-06-21 10:57:54 +00:00
chenk
35c4262d0b
feat(k8s): cyclonedx kbom support ( #4557 )
...
* feat: cyclonedx kbom support
Signed-off-by: chenk <hen.keinan@gmail.com >
* feat: cyclonedx kbom support
Signed-off-by: chenk <hen.keinan@gmail.com >
* feat: kubernetes bill of materials
Signed-off-by: chenk <hen.keinan@gmail.com >
* feat: kubernetes bill of materials
Signed-off-by: chenk <hen.keinan@gmail.com >
* feat: kubernetes bill of materials
Signed-off-by: chenk <hen.keinan@gmail.com >
* feat: kubernetes bill of materials
Signed-off-by: chenk <hen.keinan@gmail.com >
* feat: kubernetes bill of materials
Signed-off-by: chenk <hen.keinan@gmail.com >
* feat: kubernetes bill of materials
Signed-off-by: chenk <hen.keinan@gmail.com >
* chore: update sum db
Signed-off-by: chenk <hen.keinan@gmail.com >
* chore: update sum db
Signed-off-by: chenk <hen.keinan@gmail.com >
* feat: kubernetes bill of materials
Signed-off-by: chenk <hen.keinan@gmail.com >
* feat: kubernetes bill of materials
Signed-off-by: chenk <hen.keinan@gmail.com >
* chore: update sumdb
Signed-off-by: chenk <hen.keinan@gmail.com >
* chore: update sumdb
Signed-off-by: chenk <hen.keinan@gmail.com >
* feat: kubernetes bill of materials
Signed-off-by: chenk <hen.keinan@gmail.com >
* feat: kubernetes bill of materials
Signed-off-by: chenk <hen.keinan@gmail.com >
---------
Signed-off-by: chenk <hen.keinan@gmail.com >
2023-06-19 10:48:26 +00:00
chenk
ef6538a171
feat: trivy k8s private registry support ( #4567 )
...
Signed-off-by: chenk <hen.keinan@gmail.com >
2023-06-12 05:40:25 +03:00
Teppei Fukuda
9ef01133c8
feat: add SBOM analyzer ( #4210 )
...
Co-authored-by: DmitriyLewen <91113035+DmitriyLewen@users.noreply.github.com >
Co-authored-by: DmitriyLewen <dmitriy.lewen@smartforce.io >
2023-06-02 09:34:07 +03:00
Teppei Fukuda
48b2e15c23
refactor(cyclonedx): add intermediate representation ( #4490 )
2023-06-01 05:50:47 +03:00
Teppei Fukuda
50fe43f14c
feat(cli): convert JSON reports into a different format ( #4452 )
...
Co-authored-by: Aurelien LAJOIE <aurelien.lajoie@kili-technology.com >
2023-05-24 11:45:26 +03:00
Teppei Fukuda
0ef0dadb16
feat: group subcommands ( #4449 )
2023-05-23 08:15:39 +03:00
simar7
92f9e98d04
feat(misconf): Add --reset-policy-bundle for policy bundle ( #4167 )
2023-05-18 11:54:01 +03:00
DmitriyLewen
3b7c9198dd
fix(k8s): add image sources ( #4411 )
2023-05-17 07:01:58 +03:00
guangwu
56a01ec6f7
refactor: code-optimization ( #4214 )
2023-05-15 14:48:09 +03:00
Peter Engelbert
6a0e152657
feat(image): Add image-src flag to specify which runtime(s) to use ( #4047 )
...
Signed-off-by: Peter Engelbert <pmengelbert@gmail.com >
Co-authored-by: knqyf263 <knqyf263@gmail.com >
2023-05-15 14:42:42 +03:00
DmitriyLewen
6ee4960776
test(cli): add test for config file and env combination ( #2666 )
...
Co-authored-by: knqyf263 <knqyf263@gmail.com >
2023-05-15 08:56:56 +03:00
Teppei Fukuda
45d5edb0d7
refactor: define vulnerability scanner interfaces ( #4117 )
2023-05-09 22:25:08 +03:00
Teppei Fukuda
55fb723a6e
feat(image): enforce image platform ( #4083 )
2023-05-08 21:04:22 +03:00
Teppei Fukuda
11a5b91a1a
feat(sbom): add VEX support ( #4053 )
2023-04-27 10:21:06 +03:00
Adarsh A
0650e0e1d5
feat(license): add new flag for classifier confidence level ( #4073 )
...
Co-authored-by: Aswath S <aswath.s@thoughtworks.com >
2023-04-24 13:41:08 +03:00
chenk
43b6496274
feat: config and fs compliance support ( #4097 )
2023-04-24 11:49:19 +03:00