Teppei Fukuda
4a38d0121b
refactor(flag): improve flag system architecture and extensibility ( #8718 )
...
Co-authored-by: DmitriyLewen <91113035+DmitriyLewen@users.noreply.github.com >
2025-04-11 08:47:43 +00:00
Samuel Gaist
7fa5e7d0ab
fix(cli): error on missing config file ( #7154 )
2024-07-25 09:35:13 +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
56dbe1f676
fix: include packages unless it is not needed ( #6765 )
...
Signed-off-by: knqyf263 <knqyf263@gmail.com >
2024-05-28 07:22:45 +00:00
DmitriyLewen
14c1024b47
refactor: move setting scanners when using compliance reports to flag parsing ( #6619 )
2024-05-03 11:27:37 +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
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
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
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
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
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
DmitriyLewen
927acf9579
feat(cli): add javadb metadata to version info ( #3835 )
2023-03-19 15:51:14 +02:00
simar7
497c955a4b
feat(misconf): Add support to show policy bundle version ( #3743 )
...
Fixes: https://github.com/aquasecurity/trivy/issues/3696
Signed-off-by: Simar <simar@linux.com >
2023-03-02 17:00:45 +02:00
afdesk
2c39d4729a
chore: run go fmt ( #2897 )
2022-10-02 09:33:21 +03:00
Teppei Fukuda
5b7e0a858d
refactor: move from urfave/cli to spf13/cobra ( #2458 )
...
Co-authored-by: afdesk <work@afdesk.com >
Co-authored-by: DmitriyLewen <91113035+DmitriyLewen@users.noreply.github.com >
2022-07-09 19:40:31 +03:00
DmitriyLewen
c3aca1524c
fix(cli): json format for trivy version ( #1854 )
...
Co-authored-by: knqyf263 <knqyf263@gmail.com >
2022-03-21 14:41:41 +02:00
Teppei Fukuda
e65274e0ef
BREAKING: Trivy DB from GHCR ( #1539 )
2022-01-06 20:08:40 +02:00
besdollma
cc344dfbe3
fix(cli): fix incorrect comparision of DB metadata type. ( #1286 )
...
-- Incorrect Db metadata type comparision resulted in wrong
print in show version.
This fixes #1275 .
Signed-off-by: Bes Dollma <besi7dollma@gmail.com >
2021-10-08 19:16:46 +03:00
Eng Zer Jun
bbcce9f7b7
refactor: move from io/ioutil to io and os package ( #1245 )
...
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil . This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com >
2021-09-29 10:17:02 +03:00
Teppei Fukuda
c26a3e481f
refactor(internal): export internal packages ( #887 )
...
* refactor: export internal packages
* refactor(server): define Server
* refactor: fix lint issues
* test(integration): fix imports
2021-03-14 17:04:01 +02:00