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

Validate reports against the OSV schema. #702

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ingest-ghsa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
with:
token: ${{ secrets.GH_TOKEN }}
repository: ossf/osv-schema
ref: 719ef525491260972fbec8679130052d4086711c
ref: ed713ef6511fa4113c89e25ea5e3da5291c6f05d
path: osv-schema
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/validate-osv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,16 @@ jobs:
go-version: "1.21"
- name: Validate
run: make validate


- name: Checkout ossf/osv-schema
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
token: ${{ secrets.GH_TOKEN }}
repository: ossf/osv-schema
ref: ed713ef6511fa4113c89e25ea5e3da5291c6f05d
path: osv-schema
- name: Check against schema
run: |
go install github.com/santhosh-tekuri/jsonschema/cmd/[email protected]
find osv -name "MAL-*.json" -exec jv osv-schema/validation/schema.json {} +
Loading