docs(osv-linter): Add a README.md #44
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validate OSV JSON Schema | |
on: | |
pull_request: | |
branches: | |
- main | |
types: | |
- opened | |
- edited | |
- reopened | |
permissions: | |
pull-requests: read | |
jobs: | |
validate-osv-schema: | |
name: Validate OSV Schema | |
permissions: | |
contents: read | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check for changes to OSV Schema | |
id: check-for-changed-osv-schema | |
uses: tj-actions/changed-files@v45 | |
with: | |
files: | | |
validation/schema.json | |
- name: Validate OSV Schema | |
if: steps.check-for-changed-osv-schema.outputs.any_changed == 'true' | |
uses: dsanders11/[email protected] | |
with: | |
# https://github.com/marketplace/actions/json-schema-validate#validating-schema | |
schema: json-schema | |
files: validation/schema.json |