Skip to content

Commit

Permalink
DNM: test json schema validation
Browse files Browse the repository at this point in the history
  • Loading branch information
TristanCacqueray committed Dec 11, 2024
1 parent 427cb5e commit 6dd8996
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ jobs:
- name: Validate OSV data
run: |
curl -OL https://raw.githubusercontent.com/ossf/osv-schema/refs/heads/main/validation/schema.json
for osv in ./osv/*/*.json; do
sed -e 's/AV:N/OOPS/' -i $osv
done
nix develop .#json-schema --command check-jsonschema --schemafile ./schema.json ./osv/*/*.json
- name: Publish OSV data
if: ${{ github.event_name == 'push' && github.ref_name == 'main' && github.repository == 'haskell/security-advisories' }}
Expand Down

0 comments on commit 6dd8996

Please sign in to comment.