ossf / osv-schema

Open Source Vulnerability schema.
https://ossf.github.io/osv-schema/
Apache License 2.0
182 stars 79 forks source link

Publish JSON schema to GitHub pages #226

Open JamieMagee opened 8 months ago

JamieMagee commented 8 months ago

As far as I can see, the JSON schema is only available at https://raw.githubusercontent.com/ossf/osv-schema/main/validation/schema.json. But raw.githubusercontent.com isn't really designed to be used as a CDN, which means that putting it in a $schema property isn't appropriate.

Copying the schema as part of the GitHub pages deployment, to something like https://ossf.github.io/osv-schema/schema.json, would be better in the long run

oliverchang commented 7 months ago

Thanks for the suggestion! Would you be open to submitting a PR for adding this to https://ossf.github.io/osv-schema/schema.json ?

JamieMagee commented 7 months ago

@oliverchang I created #232