Skip to content

Commit d2a1ef8

Browse files
authored
ci: validate schema in the same workflow as other checks (#373)
There's no real advantage to doing the validation only when the schema file has changed since it's very quick and the current workflow is set to trigger whenever a pull request is edited which includes the PR title, description, etc Signed-off-by: Gareth Jones <[email protected]>
1 parent 81904fc commit d2a1ef8

File tree

2 files changed

+14
-35
lines changed

2 files changed

+14
-35
lines changed

.github/workflows/checks.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,17 @@ jobs:
7676
git diff --name-only \
7777
| xargs -I '{}' bash -c \
7878
'echo "::error file={}::This needs to be regenerated by running \`python3 ./scripts/update-ecosystems-lists.py\`" && false'
79+
80+
validate-osv-schema:
81+
name: Validate OSV Schema
82+
permissions:
83+
contents: read
84+
runs-on: ubuntu-latest
85+
steps:
86+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
87+
- name: Validate OSV Schema
88+
uses: dsanders11/json-schema-validate-action@ec60131eddf6f51ed0c737fdcd28616ae1a0e564 # v1.2.0
89+
with:
90+
# https://github.com/marketplace/actions/json-schema-validate#validating-schema
91+
schema: json-schema
92+
files: validation/schema.json

.github/workflows/validate-schema.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)