You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add function ToReport which converts a generic OSV entry to a Report
(the representation for our YAML reports). To start, this function
simply translates between the formats and doesn't do anything clever.
This change also adds a number of real GHSAs that can be used as test
cases, and to see how the function behaves on real data as it evolves.
Lint errors are added as notes to generated reports, so that we can
more easily target areas for improvement.
For golang/go#61769
Change-Id: Ifd99796f96aa662e887a643276b3b2d7456e826b
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/515399
TryBot-Result: Gopher Robot <[email protected]>
Reviewed-by: Damien Neil <[email protected]>
Run-TryBot: Tatiana Bradley <[email protected]>
…ToReport
Adds a framework to more easily store proxy responses for testing and
create mock proxy clients.
TestToReport is now hermetic by default, as it reads mock proxy responses
from a JSON file.
If the -proxy flag set, the test contacts the real module proxy and re-writes
the JSON file. (In most cases, there should be no need to use this flag).
For golang/go#61769
Change-Id: I7cfcea44b94ee57105bedcaf2f4d514ad2436688
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/522835
Run-TryBot: Tatiana Bradley <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Reviewed-by: Damien Neil <[email protected]>
Add function to (cleverly) convert Github OSV to Go YAML, including:
The text was updated successfully, but these errors were encountered: