Some checks failed
CI / skinny-install (aco) (push) Successful in 1m11s
CI / skinny-install (api) (push) Successful in 31s
CI / skinny-install (bcda) (push) Successful in 35s
CI / skinny-install (bib) (push) Successful in 44s
CI / skinny-install (bls) (push) Successful in 31s
CI / skinny-install (ccw) (push) Successful in 35s
CI / skinny-install (cli) (push) Successful in 39s
CI / skinny-install (cms) (push) Successful in 35s
CI / skinny-install (conf) (push) Successful in 36s
CI / skinny-install (opps) (push) Successful in 35s
CI / skinny-install (perf) (push) Successful in 35s
CI / skinny-install (pfs) (push) Successful in 38s
CI / skinny-install (rex) (push) Successful in 32s
CI / lint-test (push) Failing after 11m32s
Deploy / build-scan-report (push) Has been cancelled
Package Supply Chain / pkg-supply-chain (push) Failing after 43s
- ci.yml: fail-fast: true on skinny-install matrix; remove || true from pytest so test failures actually propagate - deploy/harden/rebuild-all: trivy --exit-code 1 (was 0) — builds now fail on HIGH/CRITICAL vulns instead of silently logging them - pkg-supply-chain: set -euo pipefail + remove || true from trivy scan so vuln scan errors surface immediately
72 lines
2.1 KiB
YAML
72 lines
2.1 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/main/contrib/install.sh | sh -s -- -b /usr/local/bin
|
|
|
|
- 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
|
|
|
|
- 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()
|
|
env:
|
|
GITEA_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
|
|
run: |
|
|
uv sync --no-dev --quiet 2>/dev/null || true
|
|
uv run python -m api.diag.ci \
|
|
--workflow "Package Supply Chain" --job "pkg-supply-chain" \
|
|
--run "${{ github.run_number }}" \
|
|
--sha "${{ github.sha }}" \
|
|
--ref "${{ github.ref }}" || true
|