feat (checks): add Known CVE and Known Bug rows from curated catalogs #1
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: cve-data-sync | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "data/cves.json" | |
| - "data/known_bugs.json" | |
| - "tools/generate_cve_sql.py" | |
| - "pgFirstAid.sql" | |
| - "view_pgFirstAid.sql" | |
| - "view_pgFirstAid_managed.sql" | |
| pull_request: | |
| paths: | |
| - "data/cves.json" | |
| - "data/known_bugs.json" | |
| - "tools/generate_cve_sql.py" | |
| - "pgFirstAid.sql" | |
| - "view_pgFirstAid.sql" | |
| - "view_pgFirstAid_managed.sql" | |
| jobs: | |
| drift-check: | |
| name: SQL files match data/*.json | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| cache: pip | |
| cache-dependency-path: pyproject.toml | |
| - name: Install uv (project uses uv) | |
| run: | | |
| curl -LsSf https://astral.sh/uv/install.sh | sh | |
| echo "$HOME/.local/bin" >> "$GITHUB_PATH" | |
| - name: Run generator in --check mode | |
| run: | | |
| uv sync --quiet | |
| uv run python tools/generate_cve_sql.py --check |