Teppei Fukuda
da17dc7278
feat: add --distro flag to manually specify OS distribution for vulnerability scanning ( #8070 )
...
Signed-off-by: knqyf263 <knqyf263@gmail.com >
Co-authored-by: DmitriyLewen <dmitriy.lewen@smartforce.io >
2024-12-09 11:46:49 +00:00
Teppei Fukuda
633a7abeea
feat(cli): rename trivy auth to trivy registry ( #7727 )
...
Signed-off-by: knqyf263 <knqyf263@gmail.com >
2024-10-15 11:24:10 +00:00
Teppei Fukuda
27117f81d5
feat(cli): add trivy auth ( #7664 )
...
Signed-off-by: knqyf263 <knqyf263@gmail.com >
Co-authored-by: DmitriyLewen <91113035+DmitriyLewen@users.noreply.github.com >
2024-10-09 10:31:15 +00:00
Teppei Fukuda
1f2e91b02b
fix(sbom): add options for DBs in private registries ( #7660 )
...
Signed-off-by: knqyf263 <knqyf263@gmail.com >
2024-10-09 05:53:27 +00:00
Nikita Pivkin
3562529ddf
feat: support multiple DB repositories for vulnerability and Java DB ( #7605 )
...
Signed-off-by: nikpivkin <nikita.pivkin@smartforce.io >
2024-10-01 13:16:06 +00:00
Teppei Fukuda
7024572137
feat(cli)!: delete deprecated SBOM flags ( #7266 )
...
Signed-off-by: knqyf263 <knqyf263@gmail.com >
2024-07-31 08:07:28 +00:00
Teppei Fukuda
5c37361600
feat(vuln): add --pkg-relationships ( #7237 )
...
Signed-off-by: knqyf263 <knqyf263@gmail.com >
2024-07-29 06:18:59 +00:00
Teppei Fukuda
88ba46047c
feat(vex): VEX Repository support ( #7206 )
...
Signed-off-by: knqyf263 <knqyf263@gmail.com >
Co-authored-by: DmitriyLewen <91113035+DmitriyLewen@users.noreply.github.com >
2024-07-25 12:18:37 +00:00
Samuel Gaist
7fa5e7d0ab
fix(cli): error on missing config file ( #7154 )
2024-07-25 09:35:13 +00:00
DmitriyLewen
7cbdb0a0b5
feat(cli): rename --vuln-type flag to --pkg-types flag ( #7104 )
2024-07-09 08:06:29 +00:00
DmitriyLewen
1f5f348958
feat: add log.FilePath() function for logger ( #7080 )
2024-07-02 09:48:20 +00:00
Teppei Fukuda
55ccd06df4
feat: add memory cache backend ( #7048 )
...
Signed-off-by: knqyf263 <knqyf263@gmail.com >
2024-06-28 09:42:02 +00:00
Teppei Fukuda
3d02a31b44
fix(plugin): respect --insecure ( #7022 )
...
Signed-off-by: knqyf263 <knqyf263@gmail.com >
2024-06-26 10:23:00 +00:00
chenk
8d618e48a2
feat(k8s)!: node-collector dynamic commands support ( #6861 )
...
Signed-off-by: chenk <hen.keinan@gmail.com >
2024-06-26 07:04:50 +00:00
Teppei Fukuda
8d0ae1f5de
feat!: add clean subcommand ( #6993 )
...
Signed-off-by: knqyf263 <knqyf263@gmail.com >
Co-authored-by: DmitriyLewen <91113035+DmitriyLewen@users.noreply.github.com >
Co-authored-by: DmitriyLewen <dmitriy.lewen@smartforce.io >
2024-06-25 09:06:27 +00:00
simar7
979e118a9e
feat(aws)!: Remove aws subcommand ( #6995 )
2024-06-25 05:57:16 +00:00
Teppei Fukuda
648ead9553
refactor: replace global cache directory with parameter passing ( #6986 )
...
Signed-off-by: knqyf263 <knqyf263@gmail.com >
2024-06-21 09:45:39 +00:00
simar7
b58d42dc97
BREAKING(aws): Deprecate trivy aws as subcmd in favour of a plugin ( #6819 )
2024-06-20 19:56:46 +00:00
Maksim Nabokikh
9b31697274
feat(image): Set User-Agent header for Trivy container registry requests ( #6868 )
...
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com >
2024-06-10 07:05:03 +00:00
Teppei Fukuda
728e77a726
fix(plugin): initialize logger ( #6836 )
...
Signed-off-by: knqyf263 <knqyf263@gmail.com >
2024-06-03 05:31:18 +00:00
Teppei Fukuda
d6dc56732b
feat(plugin): specify plugin version ( #6683 )
...
Signed-off-by: knqyf263 <knqyf263@gmail.com >
Co-authored-by: DmitriyLewen <dmitriy.lewen@smartforce.io >
2024-05-17 09:29:19 +00:00
Teppei Fukuda
26faf8f3f0
feat: add support for plugin index ( #6674 )
...
Signed-off-by: knqyf263 <knqyf263@gmail.com >
Co-authored-by: DmitriyLewen <91113035+DmitriyLewen@users.noreply.github.com >
2024-05-14 08:29:20 +00:00
simar7
37da98df45
feat(misconf): Use updated terminology for misconfiguration checks ( #6476 )
...
Signed-off-by: Simar <simar@linux.com >
2024-05-02 18:16:17 +00:00
Teppei Fukuda
f0961d54f6
feat: respect custom exit code from plugin ( #6584 )
...
Signed-off-by: knqyf263 <knqyf263@gmail.com >
2024-05-02 05:07:49 +00:00
chenk
060d0bb641
BREAKING: support exclude kinds/namespaces and include kinds/namespaces ( #6323 )
...
Signed-off-by: chenk <hen.keinan@gmail.com >
2024-04-27 14:30:17 +00:00
Teppei Fukuda
94d6e8ced6
refactor: replace zap with slog ( #6466 )
...
Signed-off-by: knqyf263 <knqyf263@gmail.com >
Co-authored-by: Nikita Pivkin <nikita.pivkin@smartforce.io >
Co-authored-by: simar7 <1254783+simar7@users.noreply.github.com >
2024-04-11 18:59:09 +00:00
Ivo Šmíd
eb3ceb323d
feat(sbom): Support license detection for SBOM scan ( #6072 )
...
Co-authored-by: DmitriyLewen <dmitriy.lewen@smartforce.io >
2024-03-18 09:34:26 +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
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
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
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
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
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
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
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
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
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