Add SCOPE-D delivery envelope validation #51
Workflow file for this run
This file contains hidden or 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: spec-contracts | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| jobs: | |
| validate-spec-contracts: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Validate JSON schemas | |
| run: | | |
| python -m json.tool docs/spec/jsonschema/ws-pty.v1.json >/dev/null | |
| python -m json.tool docs/spec/jsonschema/audit-event.v1.json >/dev/null | |
| - name: Check required contract files exist | |
| run: | | |
| test -f docs/spec/openapi/control-api.v1.yaml | |
| test -f docs/spec/state-machine-v0.md | |
| test -f docs/spec/security-threat-model-v0.md | |
| test -f docs/spec/runtime-isolation-v0.md | |
| - name: Print success summary | |
| run: | | |
| echo "Spec contract validation passed." |