Marcus Meissner
efdb68d3b9
feat(suse): added SUSE Linux Enterprise Micro support ( #7294 )
...
Signed-off-by: Marcus Meissner <meissner@suse.de >
Signed-off-by: knqyf263 <knqyf263@gmail.com >
Co-authored-by: knqyf263 <knqyf263@gmail.com >
2024-09-29 18:23:34 +00:00
Tom Fay
5cbc452a09
feat(mariner): Add support for Azure Linux ( #7186 )
...
Co-authored-by: DmitriyLewen <91113035+DmitriyLewen@users.noreply.github.com >
Co-authored-by: DmitriyLewen <dmitriy.lewen@smartforce.io >
2024-07-22 06:58:53 +00:00
Marcus Meissner
17b5dbfa12
feat: add openSUSE tumbleweed detection and scanning ( #6965 )
...
Co-authored-by: DmitriyLewen <91113035+DmitriyLewen@users.noreply.github.com >
Co-authored-by: DmitriyLewen <dmitriy.lewen@smartforce.io >
2024-07-09 04:25:39 +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
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
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
DmitriyLewen
1777878e83
fix: skip scanning the gpg-pubkey package ( #4720 )
2023-06-28 07:06:08 +00:00
Teppei Fukuda
45d5edb0d7
refactor: define vulnerability scanner interfaces ( #4117 )
2023-05-09 22:25:08 +03:00
Dan Luhring
601e25fb2f
feat: add support for Chainguard's commercial distro ( #3641 )
2023-04-12 15:20:52 +03:00
Dan Luhring
93c5d2dc71
feat: add support for Wolfi Linux ( #3215 )
2022-12-12 22:43:44 +02: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
Teppei Fukuda
efbc968ca8
feat: add support for containerd ( #2305 )
...
* chore(deps): bump fanal
* replace containerd
* fix: update signatures
* docs: containerd
2022-06-12 17:50:23 +03:00
Teppei Fukuda
6fdb554a0d
feat(alpine): support apk repositories ( #1987 )
2022-04-14 09:52:51 +03:00
Masahiro331
84dd33f7e9
feat(mariner): add support for CBL-Mariner ( #1640 )
...
Co-authored-by: knqyf263 <knqyf263@gmail.com >
2022-01-29 22:53:07 +02:00
Teppei Fukuda
a31ddbe971
feat(detector): support custom detector ( #1615 )
2022-01-25 09:06:28 +02:00
MaineK00n
f5c5573936
feat(rocky): support Rocky Linux ( #1570 )
...
Co-authored-by: knqyf263 <knqyf263@gmail.com >
2022-01-20 11:43:43 +02:00
MaineK00n
2a8336b9aa
feat(alma): support AlmaLinux ( #1238 )
...
Co-authored-by: Teppei Fukuda <knqyf263@gmail.com >
2022-01-06 22:26:09 +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
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
Teppei Fukuda
42043a0888
fix(client): add image name and build time ( #402 )
...
* WIP: Add imageName and BuildTime for Remote detector
Signed-off-by: Simarpreet Singh <simar@linux.com >
* wip
Signed-off-by: Simarpreet Singh <simar@linux.com >
* change name from build_time to created
* remove an unused function
* fix(library): add image_name and created_at
* fix(ospkg): add image_name and created_at
* fix(scan): add image_name and created_at
* fix(library): remove unused param
Co-authored-by: Simarpreet Singh <simar@linux.com >
2020-02-16 10:35:53 +02:00
Masahiro Fujimura
fcc193b7d1
Support Photon OS ( #340 )
...
* Add photon
* test(vulnerability): use generated structs and mock
* test(photon): add integration tests
* test(photon): comment in
* test(integration): add vulnerability details to trivy.db
* chore(mod): update dependencies
* chore(README): add Photon OS
Co-authored-by: Teppei Fukuda <knqyf263@gmail.com >
2019-12-27 10:30:53 +02:00
Masahiro Fujimura
b127c1c8a7
Support SUSE ( #337 )
...
* Add suse support
* Add suse support
* Add OpenSUSETumbleweed
* mv suse to detector
* Add trivy-db
* Fix suse test
* Add integration test
* Change README.md
* change go.mod
* Fix bug
* Fix integration
* Fix golden file
* update go.mod
Co-authored-by: Teppei Fukuda <knqyf263@gmail.com >
2019-12-23 21:27:25 +02:00
Teppei Fukuda
74717b888e
feat: support client/server mode ( #295 )
...
* chore(app): change dir
* feat(rpc): add a proto file and auto-generated files
* chore(dep): add dependencies
* fix(app): fix import path
* fix(integration): fix import path
* fix(protoc): use enum for severity
* chore(Makefile): add fmt andd protoc
* chore(clang): add .clang-format
* refactor: split functions for client/server (#296 )
* refactor(db): split db.Download
* refactor(standalone): create a different package
* refactor(vulnerability): split FillAndFilter
* fix(protoc): use enum for severity
* chore(Makefile): add fmt andd protoc
* chore(clang): add .clang-format
* fix(db): remove an unused variable
* fix(db): expose the github client as an argument of constructor
* refactor(vulnerability): add the detail message
* feat(rpc): add rpc client (#302 )
* fix(protoc): use enum for severity
* chore(Makefile): add fmt andd protoc
* chore(clang): add .clang-format
* feat(rpc): convert types
* feat(rpc): add rpc client
* token: Refactor to handle bad headers being set
Signed-off-by: Simarpreet Singh <simar@linux.com >
* feat(rpc): add rpc server (#303 )
* feat(rpc): add rpc server
* feat(utils): add CopyFile
* feat(server/config): add config struct
* feat(detector): add detector
* feat(scanner): delegate procedures to detector
* fix(scanner): fix the interface
* test(mock): add mocks
* test(rpc/server): add tests
* test(rpc/ospkg/server): add tests
* tets(os/detector): add tests
* refactor(library): move directories
* chore(dependency): add google/wire
* refactor(library): introduce google/wire
* refactor(ospkg/detector): move directory
* feat(rpc): add eosl
* refactor(ospkg): introduce google/wire
* refactor(wire): bind an interface
* refactor(client): use wire.Struct
* chore(Makefile): fix wire
* test(server): add AssertExpectations
* test(server): add AssertExpectations
* refactor(server): remove debug log
* refactor(error): add more context messages
* test(server): fix error message
* refactor(test): create a constructor of mock
* refactor(config): remove an unused variable
* test(config): add an assertion to test the config struct
* feat(client/server): add sub commands (#304 )
* feat(rpc): add rpc server
* feat(utils): add CopyFile
* feat(server/config): add config struct
* feat(detector): add detector
* feat(scanner): delegate procedures to detector
* fix(scanner): fix the interface
* feat(client/server): add sub commands
* merge(server3)
* test(scan): remove an unused mock
* refactor(client): generate the constructor by wire
* fix(cli): change the default port
* fix(server): use auto-generated constructor
* feat(ospkg): return eosl
* test(integration): add integration tests for client/server (#306 )
* fix(server): remove unnecessary options
* test(integration): add integration tests for client/server
* fix(server): wrap an error
* fix(server): change the update interval
* fix(server): display the error detail
* test(config): add an assertion to test the config struct
* fix(client): returns an error when failing to initizlie a logger
* test(ospkg/server): add eosl
* Squashed commit of the following:
* test(server): refactor and add tests (#307 )
* test(github): create a mock
* test(db): create a mock
* test(server): add tests for DB hot update
* chore(db): add a log message
* refactor(db): introduce google/wire
* refactor(rpc): move directory
* refactor(injector): fix import name
* refactor(import): remove new lines
* fix(server): display the error detail
* fix(server): change the update interval
* fix(server): wrap an error
* test(integration): add integration tests for client/server
* fix(server): remove unnecessary options
* refactor(server): return an error when failing to initialize a logger
* refactor(server): remove unused error
* fix(client/server): fix default port
* chore(README): add client/server
* chore(README): update
2019-12-13 15:00:11 +02:00