Skip to content

Commit

Permalink
Merge pull request #96 from JPEWdev/spdx3-validate
Browse files Browse the repository at this point in the history
gha: Use spdx3-validate to validate documents
  • Loading branch information
kestewart authored Aug 20, 2024
2 parents 7e2112d + 1ca6d7b commit e88f263
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ jobs:
- name: Setup Python tools
run: |
python3 -m pip install -U pip
python3 -m pip install \
check-jsonschema \
pyshacl
python3 -m pip install spdx3-validate
- name: Validate SPDX 2.2 & SPDX 2.3 Documents
run: |
Expand All @@ -72,11 +70,8 @@ jobs:
- name: Validate SPDX 3.0 Documents
run: |
SPDX30_SCHEMA_URL="https://spdx.org/schema/3.0.0/spdx-json-schema.json"
SPDX30_SHACL_URL="https://spdx.org/rdf/3.0.0/spdx-model.ttl"
for f in $(find . -type f -path '*/spdx3.0/*.json'); do
echo "Checking $f..."
check-jsonschema -v --schemafile $SPDX30_SCHEMA_URL $f
pyshacl -s $SPDX30_SHACL_URL -e $SPDX30_SHACL_URL $f
spdx3-validate -j $f
done

0 comments on commit e88f263

Please sign in to comment.