-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
x/vulndb: improve tool for creating yaml reports #50314
Comments
Change https://golang.org/cl/374100 mentions this issue: |
Change https://golang.org/cl/374099 mentions this issue: |
Change https://golang.org/cl/374094 mentions this issue: |
Change https://golang.org/cl/374101 mentions this issue: |
Change https://golang.org/cl/374098 mentions this issue: |
Change https://golang.org/cl/374175 mentions this issue: |
The CVE JSON schema contains a Credit field, which is now added to the struct. This is used to populate the credit field for the YAML reports. For golang/go#50314 Change-Id: I91e22b29ae5bb30220949820a4fccb28855dcfdc Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/374094 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Jonathan Amsterdam <jba@google.com>
A GetIssue method is added to the GitHub client. This will be used by cmd/vulnreport when creating a template for the YAML reports to determine the module path and CVE ID. For golang/go#50314 Change-Id: I6e7a022faf1c6c71ba4f3a68afa5fbaea122ed52 Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/374098 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Jonathan Amsterdam <jba@google.com>
ParseGithubRepo is updated to parse a GitHub repo name with the formats "github.com/owner/repoName" and "owner/repoName". For golang/go#50314 Change-Id: Ie7152707b67b4215281d08e936e54e11caa7c8e6 Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/374099 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Jonathan Amsterdam <jba@google.com>
CVEToReport is added, which creates a Report struct from a given CVE and modulePath. For golang/go#50314 Change-Id: I901565cd0c80b423e8bd6a1ef790545f99a6ec75 Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/374100 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> Reviewed-by: Jonathan Amsterdam <jba@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
Rather than just creating an empty template, the vulnreport create command now creates a prepopulated template with information from the CVE JSON. For golang/go#50314 Change-Id: Ifcf2adfa63e47e73eace7c349133a4ecc9bf2bf7 Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/374101 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> Reviewed-by: Jonathan Amsterdam <jba@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
When a field we want to fill in is not automatically parsed for the YAML report from the CVE JSON, add a TODO so that it is clear to the triager. For golang/go#50314 Change-Id: I3a5d1b858073fbd434a777fd3b1775cbef6e308a Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/374175 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> Reviewed-by: Jonathan Amsterdam <jba@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
cmd/vulnreport should be updated with the following functionality:
Given a GitHub issue ID:
Template:
The text was updated successfully, but these errors were encountered: