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
Matthieu MOREL
43350dd9b4
fix: early-return, indent-error-flow and superfluous-else rules from revive ( #8796 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2025-04-30 06:24:09 +00:00
DmitriyLewen
a95cab0eab
feat(image): save layers metadata into report ( #8394 )
...
Co-authored-by: knqyf263 <knqyf263@gmail.com >
2025-04-23 16:31:43 +00:00
Tamir Kiviti
36f8d0fd67
fix(server): fix redis key when trying to delete blob ( #8649 )
2025-04-07 11:18:35 +00:00
Teppei Fukuda
24d0e2bf2d
test: use memory cache ( #8403 )
...
Signed-off-by: knqyf263 <knqyf263@gmail.com >
Co-authored-by: DmitriyLewen <91113035+DmitriyLewen@users.noreply.github.com >
2025-02-17 07:15:32 +00:00
DmitriyLewen
3e503a0cc2
chore: bump mockery to update v2.52.2 version and rebuild mock files ( #8390 )
2025-02-14 07:00:18 +00:00
Matthieu MOREL
715575d731
chore: use require.ErrorContains when possible ( #8291 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2025-01-27 06:47:29 +00:00
simar7
c70b6fa166
refactor(misconf): Deprecate EXCEPTIONS for misconfiguration scanning ( #7776 )
...
Signed-off-by: Simar <simar@linux.com >
2024-10-29 22:29:42 +00:00
Teppei Fukuda
24a4563686
feat(server): add internal --path-prefix flag for client/server mode ( #7321 )
...
Signed-off-by: knqyf263 <knqyf263@gmail.com >
2024-08-21 05:26:11 +00:00
Teppei Fukuda
fd8348d610
feat(vuln): Add --detection-priority flag for accuracy tuning ( #7288 )
...
Signed-off-by: knqyf263 <knqyf263@gmail.com >
2024-08-02 10:41:56 +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
4be02bab8c
refactor: use google/wire for cache ( #7024 )
...
Signed-off-by: knqyf263 <knqyf263@gmail.com >
2024-06-27 07:04:01 +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
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
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
Matthieu MOREL
9d26ae88d6
ci(deps): enable testifylint linter on .*_test.go$ ( #6688 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-05-16 04:29:06 +00:00
Matthieu MOREL
1ad47c24ef
chore(deps): use google.golang.org/protobuf/types/known instead of github.com/golang/protobuf/ptypes ( #6681 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-05-15 07:30:00 +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
Nikita Pivkin
e1c2a8c804
fix(misconf): add missing fields to proto ( #4861 )
...
* fix(misconf): add missing fields to proto
* mark deleted fields as reserved
2023-07-30 11:15:36 +00:00
rlubetkin
3a7717fdeb
feat(cli): add retry to cache operations ( #4189 )
2023-05-22 16:56:18 +03:00
Liam Galvin
094db23a03
refactor: Fix fanal import paths and remove dotfiles
2022-06-20 09:43:33 +01:00
Teppei Fukuda
7cecade3a1
feat: add support for WASM modules ( #2195 )
2022-06-15 15:23:00 +03:00
bgoareguer
525e2685ce
feat(server): re-add proxy support for client/server communications ( #1995 )
2022-04-21 12:32:46 +03:00
afdesk
9154b819ac
feat(cache): remove temporary cache after filesystem scanning ( #1868 )
2022-03-27 11:31:54 +03:00
afdesk
d6418cf0de
feat(filesystem): scan in client/server mode ( #1829 )
...
Co-authored-by: knqyf263 <knqyf263@gmail.com >
2022-03-21 15:51:18 +02:00
Christian Zunker
aa6e1eb6f9
feat(client): configure TLS InsecureSkipVerify for server connection ( #1287 )
...
Co-authored-by: knqyf263 <knqyf263@gmail.com >
2022-02-13 11:34:34 +02:00
Teppei Fukuda
1b66b77f69
feat: prepare for config scanning ( #1005 )
...
* temp: disable config scanning
2021-05-20 09:05:36 +03:00
Teppei Fukuda
c9f22f4e55
feat(java): support jar/war/ear ( #837 )
...
* refactor(server): remove Detect endpoint
* refactor(library): do not use interface
* refactor: add dbtest package
* test: add bolt fixtures
* feat: support jar scanning
* refactor: rename node to npm
* refactor: fix lint issues
* test(maven): remove some tests
* chore(mod): update fanal
* docs: update README
* chore(mod): update trivy-db
* fix(library/drive): add ecosystem
* fix: do not display 0 vulnerabilities
* refactor(table): split method
* Update README.md (#838 )
* fix(app): increase the default value of timeout (#842 )
* feat(maven): use go-mvn-version
* test(maven): update tests
* fix(scan): skip files and dirs before vulnerability detection
* fix: display log messages only once per type
* docs(README): add file suffixes
* chore(mod): update go-mvn-version
* feat(log): set go-dep-parser logger
* chore(mod): update fanal
* docs: update README
* docs(README): add java source
* test(maven): fix invalid case
2021-02-14 18:19:42 +02:00
rahul2393
793a1aa3c8
Add linter check support ( #679 )
...
* add linter supports
* add only minor version
* use latest version
* Fix println with format issue
* Fix test
* Fix tests
* For slice with unknown length, preallocating the array
* fix code-coverage
* Removed linter rules
* Reverting linter fixes, adding TODO for later
* Ignore linter error for import
* Remove another err var.
* Ignore shadow error
* Fixes
* Fix issue
* Add back goimports local-prefixes
* Update local prefixes
* Removed extra spaces and merge the imports
* more refactoring
* Update photon.go
Co-authored-by: Teppei Fukuda <knqyf263@gmail.com >
2020-10-20 15:20:04 +03:00
Teppei Fukuda
2f2d1a908b
feat: support repository and filesystem scan ( #503 )
...
* refactor: embed config
* refactor: replace image and layer with artifact and blob
* feat(config): add ArtifactConfig
* fix(scanner): use Artifact
* test(scanner): update mocks
* feat: add repo and fs subcommands
* chore(mod): update
* refactor: fix warn message
* feat(cli): add --no-progress to repo and fs
* mod: Update fanal dependency
Signed-off-by: Simarpreet Singh <simar@linux.com >
Co-authored-by: Simarpreet Singh <simar@linux.com >
2020-05-30 19:46:12 +03:00
Teppei Fukuda
329f245283
fix: replace containers/image with google/go-containerregistry ( #456 )
...
* chore(mod): update dependencies
* fix(internal): remove cleanup
* fix: use only diff_id
* fix: use string instead of digest
* fix: replace LayerID with Layer
* test(integration): negotiate API version
* feat(conf): add TRIVY_NONSSL
* test(integration): update golden files
* test(integration): fix the error message
* chore(debian): add comments
* chore(mod): update dependencies
2020-04-14 13:31:13 +03:00
Teppei Fukuda
18b80e3781
feat(cache): based on JSON ( #398 )
...
* refactor(docker_conf): rename and remove unnecessary options
* feat(rpc): define new API
* fix(cli): change default timeout
* fix(import): fix package names
* refactor(vulnerability): remove old mock
* refactor(utils): remove un-needed functions
* feat(cache): implement cache communicating with a server
* refactor(scan): separate scan function as local scanner
* test(scanner): add tests for ScanImage
* refactor(scan): remove unused options
* test(vulnerability): generate mock
* refactor(server): split a file
* feat(server): implement new RPC server
* feat(client): implement new RPC client
* fix(cache): use new cache interface
* fix(standalone): use new scanner
* fix(client): use new scanner
* fix(server): pass cache
* test(integration): make sure an error is not nil before calling the method
* fix(mod): update dependencies
* test(integration): ensure the image load finishes
* feat(docker): support DOCKER_HOST and DOCKER_CERT_PATH
* chore(mod): update dependencies
* refactor(rpc): remove old client
* feat(server): support old API for backward compatibility
* fix(server): check a schema version of JSON cache
* fix(rpc): add a version to packages
* feat(rpc): add PutImage
* test: rename expectations
* refactor(cache): rename LayerCache to ImageCache
* refactor: rename ImageInfo to ImageReference
* fix(applier): pass image_id to ApplyLayer
* feat(cache): handle image cache
* chore(mod): update dependencies
* refactor(server): pass only config
* feat(cli): add -removed-pkgs option
* refactor(err): wrap errors
2020-02-27 23:17:55 +02:00