Skip to content

Apply changes from Codex patch #324

Apply changes from Codex patch

Apply changes from Codex patch #324

Workflow file for this run

name: model-check
on:
push:
branches:
- main
- feature/**
pull_request:
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install deps
run: |
python -m pip install -U pip
pip install -r requirements.txt
- name: Train & evaluate (CI mode)
run: |
python scripts/train_eval.py --config policies/training.yaml --ci
- name: Guard generalization
run: |
python scripts/guard_generalization.py
- name: Static analysis (Semgrep)
run: |
python -m pip install semgrep
semgrep --config auto
- name: Generate SBOM
run: |
python -m pip install cyclonedx-bom
python -m cyclonedx_py requirements requirements.txt --of JSON --output-file sbom.json