-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: rename --list-all-pkgs
to --scanners pkg
#5255
refactor: rename --list-all-pkgs
to --scanners pkg
#5255
Conversation
rpc/scanner/service.proto
Outdated
bool list_all_packages = 3; | ||
map<string, Licenses> license_categories = 4; | ||
bool include_dev_deps = 5; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The number should not be changed. We should use reserve
.
https://protobuf.dev/programming-guides/proto3/#assigning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I doubted this decision, but decided to think about it tomorrow. Thank you for saving me time!
Fixed in 6b6a6cc
pkg/types/target.go
Outdated
@@ -43,6 +43,9 @@ const ( | |||
|
|||
// LicenseScanner is the scanner of licenses | |||
LicenseScanner = Scanner("license") | |||
|
|||
// SbomScanner includes all found packages on report | |||
SbomScanner = Scanner("sbom") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SbomScanner = Scanner("sbom") | |
SBOMScanner = Scanner("sbom") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed in 6b6a6cc
@DmitriyLewen Does this change make sense to you? |
When i started working on this PR - I wasn't sure we needed these changes. But when i created this PR i understood your opinion about this change. We have scanners for vuln, license, secrets, etc... => we also need scanners to find installed packages. But i had 1 problem. Many times i understood that i was confusing |
Right. For example, there is a case where Trivy supports packages, but doesn't support vulnerabilities. It's easy for us to say
I like it. Let's go with that idea. Thanks! |
Okay, i will change |
How about |
|
--list-all-pkgs
to --scanners sbom
--list-all-pkgs
to --scanners pkg
@knqyf263 I renamed scanner. Take a look, when you have time, please |
This PR is stale because it has been labeled with inactivity. |
This PR is stale because it has been labeled with inactivity. |
This PR is stale because it has been labeled with inactivity. |
We need to rethink the design. |
Description
See #5183
TODO:
Related issues
--list-all-pkgs
to--scanners sbom
#5183Checklist