Skip to content

ci: add schema and format validation workflow #2

ci: add schema and format validation workflow

ci: add schema and format validation workflow #2

Workflow file for this run

name: "Validations"

Check failure on line 1 in .github/workflows/validations.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/validations.yaml

Invalid workflow file

(Line: 25, Col: 5): 'steps' is already defined
on:
# needed for publishing commit images on the main branch
push:
branches:
- main
# needed when running from forks
pull_request:
permissions:
contents: read
jobs:
validate-schema:
name: "Validate Schema"
runs-on: ubuntu-latest
container:
image: python:3.13-alpine
steps:
- name: Install OS dependencies
run: apk add --no-cache taplo
permissions:
contents: read
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
- name: Run schema validation
run: taplo validate --schema file:${PWD}/schema/0.1.0.schema.json data/**/ANCHORE-*.toml
- name: Run format validation
run: taplo format --check