diff --git a/.github/workflows/lint-vocab.yml b/.github/workflows/lint-vocab.yml new file mode 100644 index 0000000..03218e8 --- /dev/null +++ b/.github/workflows/lint-vocab.yml @@ -0,0 +1,22 @@ +name: Lint VC Vocabulary +on: + pull_request: + paths: + - 'vocab/security/vocabulary.yml' + - 'vocab/security/template.html' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Setup environment + uses: actions/checkout/@v3 + - name: Setup Node 16 + uses: actions/setup-node@v3 + with: + node-version: 16 + - name: Lint Security Vocabulary + run: | + npm install yml2vocab + npm update yml2vocab + ./node_modules/.bin/yml2vocab -v vocab/vocabulary.yml -t vocab/template.html