chore: tooling convergence, dependency refresh, v2.5.6 (#86) #311
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: Security | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| osv-scan: | |
| name: Dependency Scan | |
| runs-on: blacksmith-2vcpu-ubuntu-2404-arm | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: useblacksmith/checkout@v1 | |
| - name: Install osv-scanner | |
| run: | | |
| curl -fsSL https://github.com/google/osv-scanner/releases/download/v2.4.0/osv-scanner_linux_arm64 -o osv-scanner | |
| chmod +x osv-scanner | |
| - name: Scan dependencies | |
| # `--config osv-scanner.toml` honors the in-repo allowlist (e.g. PYSEC-2025-183; | |
| # see the toml for justifications). Keep the pip-audit `--ignore-vuln` flags below | |
| # in sync with the same IDs. | |
| run: ./osv-scanner scan source --lockfile=uv.lock --config=osv-scanner.toml --format=table | |
| pip-audit: | |
| name: Python Audit | |
| runs-on: blacksmith-2vcpu-ubuntu-2404-arm | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: useblacksmith/checkout@v1 | |
| - uses: astral-sh/setup-uv@v8.3.2 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.13" | |
| - name: Install pip-audit | |
| run: pip install pip-audit | |
| - name: Audit dependencies | |
| # `--ignore-vuln` allowlist mirrors `osv-scanner.toml` (e.g. PYSEC-2025-183; | |
| # see that file for justifications). Keep both lists in sync. | |
| run: | | |
| uv export --format requirements-txt --no-hashes > requirements.txt | |
| pip-audit -r requirements.txt --disable-pip --no-deps \ | |
| --ignore-vuln PYSEC-2025-183 |