Nikita Pivkin
418a7cc28d
test: use httptest.NewTestServer for shared test servers ( #11138 )
2026-09-14 09:33:55 +00:00
Nikita Pivkin
dc3c56eed5
chore: bump Go to 1.27 ( #11127 )
2026-08-21 13:10:25 +00:00
Nikita Pivkin
4295ac096b
test: close plugin manager in tests cleanup ( #10904 )
2026-06-30 08:05:26 +00:00
Teppei Fukuda
d4213d7735
Merge commit from fork
...
Adopt Go's os.Root for plugin file operations so that all path access
derived from a plugin name stays within the plugin root (~/.trivy/plugins).
Add pkg/x/os.Root, a small wrapper over os.Root with a Join helper, and
route install, uninstall, and plugin loading through it instead of joining
names onto the root path directly.
NewManager opens the plugin root eagerly and returns an error, and exposes
Close; the package-level Run/Start helpers wrap it for callers outside the
plugin subcommands.
2026-06-30 10:03:28 +04:00
Nikita Pivkin
a4f79379ba
chore: bump golangci-lint to v2.10.0 ( #10223 )
...
Signed-off-by: nikpivkin <nikita.pivkin@smartforce.io >
2026-02-26 06:01:05 +00:00
Teppei Fukuda
93915dc97a
refactor: add xslices.Map and replace lo.Map usages ( #9984 )
2025-12-26 08:07:03 +00:00
Teppei Fukuda
6fa3849c10
test: add HTTP basic authentication to git test server ( #9407 )
2025-09-01 09:42:41 +00:00
DmitriyLewen
5f067ac15e
fix(plugin): don't remove plugins when updating index.yaml file ( #9358 )
2025-08-25 00:19:27 +00:00
Matthieu MOREL
a19e0aa1ba
fix: octalLiteral from go-critic ( #8811 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2025-05-05 13:49:07 +00:00
Matthieu MOREL
6562082e28
fix: unused-parameter rule from revive ( #8794 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2025-04-30 09:17:24 +00:00
Teppei Fukuda
fe09410ed4
chore: replace deprecated tenv linter with usetesting ( #8504 )
2025-03-06 12:26:20 +00:00
Teppei Fukuda
4da59bd7b6
chore: bump golangci-lint to v1.61.0 ( #7853 )
...
Signed-off-by: knqyf263 <knqyf263@gmail.com >
2024-11-04 06:01:05 +00:00
Teppei Fukuda and DmitriyLewen
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
Teppei Fukuda
db68d106ce
chore: bump golangci-lint from v1.58 to v1.59 ( #7077 )
...
Signed-off-by: knqyf263 <knqyf263@gmail.com >
2024-07-02 09:36:54 +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
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
Teppei Fukuda
6dff4223ed
refactor: unify cache implementations ( #6977 )
...
Signed-off-by: knqyf263 <knqyf263@gmail.com >
2024-06-21 06:35:33 +00:00
Teppei Fukuda
622c67b764
feat(plugin): add support for nested archives ( #6845 )
...
Signed-off-by: knqyf263 <knqyf263@gmail.com >
2024-06-07 09:26:58 +00:00
Teppei Fukuda
b7b8cdc9e9
test: replace embedded Git repository with dynamically created repository ( #6824 )
...
Signed-off-by: knqyf263 <knqyf263@gmail.com >
2024-06-03 07:34:28 +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
Matthieu MOREL
48bdc6e734
ci(deps): fix gci and gofmt in ".*_test.go$" ( #6721 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-05-22 02:55:16 +00:00
Matthieu MOREL
bbaf5952bc
ci(deps): enable require-error rule from testifylint linter ( #6718 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-05-20 07:12:43 +00:00
Teppei Fukuda
65b8a40d0d
chore(deps): bump golangci-lint to v1.58.2 ( #6719 )
...
Signed-off-by: knqyf263 <knqyf263@gmail.com >
2024-05-20 06:35:34 +00:00
Teppei Fukuda and DmitriyLewen
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 and DmitriyLewen
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
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
guangwu
916f6c66f8
fix: close plugin.yaml ( #6577 )
...
Signed-off-by: guoguangwu <guoguangwug@gmail.com >
2024-04-29 06:13:03 +00:00
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
Teppei Fukuda and DmitriyLewen
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
Teppei Fukuda
793cc43d4c
feat(go): license support ( #3683 )
2023-02-24 17:52:35 +02:00
Owen Rumney and knqyf263
5190f9566b
feat: Adding support for Windows testing ( #3037 )
...
Signed-off-by: Owen Rumney <owen.rumney@aquasec.com >
Signed-off-by: knqyf263 <knqyf263@gmail.com >
Co-authored-by: knqyf263 <knqyf263@gmail.com >
2022-12-22 22:54:18 +02:00
Teppei Fukuda
c7f0bc92ae
fix: allow subcommands with TRIVY_RUN_AS_PLUGIN ( #2577 )
2022-07-25 11:27:47 +03:00
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
Teppei Fukuda
7cecade3a1
feat: add support for WASM modules ( #2195 )
2022-06-15 15:23:00 +03:00
Owen Rumney
8bfbc84a41
feat(plugin): Add option to update plugin ( #1462 )
...
* Add option to update plugin
- add plugin update [pluginName] to update
- add supporting test
* refactor: wrap errors
2021-12-16 13:30:19 +02:00
Owen Rumney and Teppei Fukuda
8b5796f770
feat (plugin): add list and info command for plugin ( #1452 )
...
Co-authored-by: Teppei Fukuda <knqyf263@gmail.com >
2021-12-15 22:36:08 +02:00
Teppei Fukuda
43ff5f93e8
feat(plugin): add aqua plugin ( #1029 )
2021-05-31 10:54:46 +03:00
Teppei Fukuda
1b66b77f69
feat: prepare for config scanning ( #1005 )
...
* temp: disable config scanning
2021-05-20 09:05:36 +03:00
8b3b5d0290
feat: support plugins ( #878 )
...
* fix(log): set the default logger
* feat: support plugins
* feat(plugin): add run command
* feat(plugin): add uninstall command
* test(plugin): add tests
* chore(ci): pin go version
* chore(ci): disable G204
* refactor: fix lint issues
* feat(plugin): skip downloading installed plugins
* feat: add TRIVY_RUN_AS_PLUGIN
* support Ubuntu 20.10 (#876 )
* docs(README): update ubuntu versions (#877 )
* add MkDocs implementation (#870 )
* mkdocs: add top level nav
* mkdocs: add installation nav
* mkdocs: add quick-start nav
* mkdocs: add examples nav
* mkdocs: add CI nav
* mkdocs: add vuln-detection nav
* mkdocs: add comparison nav
* mkdocs: add usage nav
* mkdocs: add migration nav
* mkdocs: add FAQ nav
* mkdocs: add mkdocs.yml
* mkdocs: add github workflow
* docs: update documents
* fix links
* chore(ci): use ORG_GITHUB_TOKEN
* chore(mkdocs): use mike
* chore(ci): support dev
* chore(ci): documentation test
Co-authored-by: knqyf263 <knqyf263@gmail.com >
* docs: add plugins
* chore: remove stale workflow
* refactor: fix lint issues
Co-authored-by: Huang Huang <mozillazg101@gmail.com >
Co-authored-by: aprp <doelaudi@gmail.com >
2021-03-10 21:44:08 +02:00