-
Notifications
You must be signed in to change notification settings - Fork 279
feat: Add opam source (https://github.com/ocaml/security-advisories) to testing #4632
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
Conversation
…rce to testing ref google#4581
|
/gcbrun |
|
LGTM! Just a note on the OPAM database entries, it would be better to generate them with indentation rather than all on one line, as it makes it easy for consumers to see the changes to a record in the git history. |
|
@hannesm Seems like we are getting rate limited when enumerating versions. A couple of options here:
Let me know if you're happy with option 1., otherwise we can look into option 2. @michaelkedar fyi |
|
Thanks @another-rex.
I'm sorry to hear.
I'm not sure I fully understand what you mean, but indeed the osv data we generate carries an array of
As mentioned, if I understand that correctly, I'm fine with 1. I don't know what needs to be done in the osv code to accommodate this option. |
|
I tried to find the test instance database where I'd be able to see the imported json data etc. -- any chance you can provide me with a way how to browse that data? At https://test.osv.dev I don't see any imported opam advisories. Thanks. |
|
Hi, is there anything I can do in respect to:
Esp. is there an example data source that skips enumeration? @hannesm asking #4632 (comment)
|
|
Sorry for the delay! Yes test.osv.dev should be where it will show up, looking into why this is not happening now. |
Related #4632 We are currently being rate limited by OPAM package manager when enumerating. The enumeration is also unnecessary since the records already come with a list of enumerated affected versions.
|
Found the issue, the affected_range.repo field is which is not valid according to the schema, which has to be something that can be used with Changing it to |
|
Dear @another-rex, thanks for looking into this. I fixed this with ocaml/security-advisories#14.
Maybe a good idea to explicitly check this in the schema (I've no idea how, since I've never worked on json schema). We validate all generated osv json with the schema before we publish that. |
|
Thanks! Let me know if everything looks good to you and I'll merge the prod version.
I'll look into whether it's something we can add to the jsonschema, though I think that might be difficult to represent there. Either way we should add this to the osv-linter, which has a lot more checks that can't be encoded in the schema. If you want you can replace the jsonschema check with the linter here: https://github.com/ossf/osv-schema/tree/main/tools/osv-linter for a more comprehensive check. We also run the linter twice a day with the results being published here, sorted by source: https://test.osv.dev/linter |
This looks good to me, thanks a lot. Please merge the prod version. |
ref #4581
Now that #4582 has been merged...