mirror of
https://github.com/fkie-cad/nvd-json-data-feeds.git
synced 2026-10-29 01:30:49 +00:00
add schema validation workflow using ajv and provide wrapper script in new /_scripts folder
This commit is contained in:
1 parent
ee94b484c5
commit
3390fbf84c
7 files changed
+844
No files matched your search
@@ -0,0 +1,23 @@
|
||||
name: validate-schema
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "main"
|
||||
workflow_dispatch: {}
|
||||
jobs:
|
||||
validate-schema:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
REPOSITORY: ${{ github.repository }}
|
||||
BRANCH_NAME: ${{ github.ref_name }}
|
||||
- name: Install dependencies
|
||||
run: npm install -g ajv-cli && npm install -g ajv-formats
|
||||
- name: Run json schema validation via ajv
|
||||
run: bash _scripts/validate_schema-v2.0.bash
|
||||
shell: bash
|
||||
Reference in new issue
Block a user