mirror of
https://github.com/fkie-cad/nvd-json-data-feeds.git
synced 2025-06-07 21:46:48 +00:00
24 lines
626 B
YAML
24 lines
626 B
YAML
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
|