Skip to content
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

Get OSV schema from ossf/osv-schema instead #212

Merged
merged 2 commits into from
Nov 22, 2024

Conversation

di
Copy link
Member

@di di commented Nov 22, 2024

Follow-on to #208, h/t @andrewpollock.

@di di requested a review from sethmlarson November 22, 2024 21:31
@sethmlarson
Copy link
Contributor

sethmlarson commented Nov 22, 2024

So here's the thing about schemas from URLs and check-jsonschema:

$ mkdir -p vulns/tmp/
$ echo "garbage" > vulns/tml/PYSEC-2024-1.yaml
$ check-jsonschema vulns/tmp/PYSEC-2024-1.yaml --schemafile https://raw.githubusercontent.com/ossf/osv-schema/refs/tags/v1.6.7/validation/schema.json
ok -- validation done
$ echo $?
0

😱 This is a footgun that I know about.

@di
Copy link
Member Author

di commented Nov 22, 2024

@sethmlarson Wait, what? Is this a bug or am I missing something?

@sethmlarson sethmlarson merged commit f3d3239 into pypa:main Nov 22, 2024
1 check passed
@di di deleted the get-schema-from-source branch November 22, 2024 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants