Some checks failed
CI / lint (push) Successful in 38s
CI / notebooks-smoke (push) Successful in 2m9s
Deploy / changes (push) Successful in 16s
Infra CI / notebooks (push) Successful in 59s
CI / test (push) Failing after 4m13s
Infra CI / zotero (push) Successful in 18s
Infra CI / docs (push) Successful in 1m12s
Infra CI / api (push) Successful in 1m17s
Infra CI / llm (push) Successful in 1m9s
Infra CI / mc (push) Successful in 14s
Deploy / notebooks (push) Has been skipped
Deploy / zotero (push) Has been skipped
Deploy / docs (push) Has been skipped
Infra CI / bcda (push) Successful in 1m58s
Deploy / api (push) Successful in 1m23s
Deploy / bcda (push) Successful in 1m37s
Deploy / mc (push) Has been skipped
Deploy / llm (push) Successful in 1m5s
Deploy / report (push) Successful in 14s
api.diag.ci opened a new issue on every red run and never closed it. A repeat now comments on the open issue and closes older copies. A green run closes that issue. The workflow step no longer syncs the repo just to file or close.
88 lines
3.2 KiB
YAML
88 lines
3.2 KiB
YAML
# DO NOT EDIT — generated by gen_config.py from stack.toml
|
|
# Re-generate: uv run python dev/scripts/gen_config.py
|
|
|
|
name: Package Supply Chain
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- "**/Dockerfile*"
|
|
- "pyproject.toml"
|
|
- "uv.lock"
|
|
- "docs/package.json"
|
|
- "docs/pnpm-lock.yaml"
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "0 6 * * *"
|
|
|
|
jobs:
|
|
pkg-supply-chain:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: https://github.com/actions/checkout@v4
|
|
|
|
- name: Set up uv
|
|
run: curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
env:
|
|
UV_INSTALL_DIR: /usr/local/bin
|
|
|
|
- name: Install dependencies
|
|
run: uv sync --no-dev
|
|
|
|
- name: Package inventory
|
|
run: uv run python dev/scripts/pkg_inventory.py
|
|
|
|
- name: Check manifest freshness
|
|
run: uv run python dev/scripts/pkg_inventory.py --check
|
|
|
|
- name: Sync to Gitea package registry
|
|
env:
|
|
GITEA_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
|
|
run: uv run python dev/scripts/pkg_mirror_sync.py
|
|
|
|
- name: Drift detection
|
|
run: uv run python dev/scripts/pkg_drift.py
|
|
|
|
- name: Install trivy
|
|
run: curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/v0.76.0/contrib/install.sh | sh -s -- -b /usr/local/bin v0.76.0
|
|
|
|
- name: Vulnerability scan
|
|
run: |
|
|
set -euo pipefail
|
|
trivy fs --scanners vuln --format json -o data/pkg-vulns.json uv.lock
|
|
trivy fs --scanners vuln --format json -o data/pkg-vulns-pyproject.json pyproject.toml
|
|
# The docs site's build toolchain — never scanned before (116 CVEs, 2026-10-27).
|
|
trivy fs --scanners vuln --format json -o data/pkg-vulns-docs.json docs/pnpm-lock.yaml
|
|
|
|
- name: Auto-create issues for drift and vulns
|
|
env:
|
|
GITEA_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
|
|
run: uv run python dev/scripts/pkg_issues.py
|
|
|
|
- name: File failure issue
|
|
if: failure() && !startsWith(github.head_ref || github.ref_name, 'renovate/')
|
|
env:
|
|
GITEA_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
|
|
run: |
|
|
py=python3
|
|
command -v python3 >/dev/null 2>&1 || { command -v uv >/dev/null 2>&1 || curl -LsSf https://astral.sh/uv/install.sh | sh; export PATH="$HOME/.local/bin:$PATH"; py="uv run --no-project python"; }
|
|
$py src/api/diag/ci.py \
|
|
--workflow "Package Supply Chain" --job "pkg-supply-chain" \
|
|
--run "${{ github.run_number }}" \
|
|
--sha "${{ github.sha }}" \
|
|
--ref "${{ github.ref }}" || true
|
|
- name: Close resolved issue
|
|
if: success() && !startsWith(github.head_ref || github.ref_name, 'renovate/')
|
|
env:
|
|
GITEA_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
|
|
run: |
|
|
py=python3
|
|
command -v python3 >/dev/null 2>&1 || { command -v uv >/dev/null 2>&1 || curl -LsSf https://astral.sh/uv/install.sh | sh; export PATH="$HOME/.local/bin:$PATH"; py="uv run --no-project python"; }
|
|
$py src/api/diag/ci.py \
|
|
--close \
|
|
--workflow "Package Supply Chain" --job "pkg-supply-chain" \
|
|
--run "${{ github.run_number }}" \
|
|
--sha "${{ github.sha }}" \
|
|
--ref "${{ github.ref }}" || true
|