ci: fail-fast everywhere — no silent swallowing
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
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
This commit is contained in:
@@ -50,6 +50,7 @@ jobs:
|
|||||||
skinny-install:
|
skinny-install:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
|
fail-fast: true
|
||||||
matrix:
|
matrix:
|
||||||
extra: [conf, aco, api, bcda, bib, bls, ccw, cli, cms, opps, perf, pfs, rex]
|
extra: [conf, aco, api, bcda, bib, bls, ccw, cli, cms, opps, perf, pfs, rex]
|
||||||
steps:
|
steps:
|
||||||
@@ -70,7 +71,7 @@ jobs:
|
|||||||
- name: Run module tests
|
- name: Run module tests
|
||||||
run: |
|
run: |
|
||||||
if [ -d "tests/${{ matrix.extra }}" ]; then
|
if [ -d "tests/${{ matrix.extra }}" ]; then
|
||||||
uv run pytest "tests/${{ matrix.extra }}/" -x -q || true
|
uv run pytest "tests/${{ matrix.extra }}/" -x -q
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: File failure issue
|
- name: File failure issue
|
||||||
|
|||||||
@@ -79,16 +79,16 @@ jobs:
|
|||||||
crane push /tmp/mc.tar git:3000/homelab/stack/mc:latest --insecure
|
crane push /tmp/mc.tar git:3000/homelab/stack/mc:latest --insecure
|
||||||
|
|
||||||
- name: Scan notebooks
|
- name: Scan notebooks
|
||||||
run: trivy image --severity HIGH,CRITICAL --exit-code 0 --format json -o notebooks-scan.json local/notebooks:build
|
run: trivy image --severity HIGH,CRITICAL --exit-code 1 --format json -o notebooks-scan.json local/notebooks:build
|
||||||
|
|
||||||
- name: Scan zotero
|
- name: Scan zotero
|
||||||
run: trivy image --severity HIGH,CRITICAL --exit-code 0 --format json -o zotero-scan.json local/zotero:build
|
run: trivy image --severity HIGH,CRITICAL --exit-code 1 --format json -o zotero-scan.json local/zotero:build
|
||||||
|
|
||||||
- name: Scan docs
|
- name: Scan docs
|
||||||
run: trivy image --severity HIGH,CRITICAL --exit-code 0 --format json -o docs-scan.json local/docs:build
|
run: trivy image --severity HIGH,CRITICAL --exit-code 1 --format json -o docs-scan.json local/docs:build
|
||||||
|
|
||||||
- name: Scan api
|
- name: Scan api
|
||||||
run: trivy image --severity HIGH,CRITICAL --exit-code 0 --format json -o api-scan.json local/api:build
|
run: trivy image --severity HIGH,CRITICAL --exit-code 1 --format json -o api-scan.json local/api:build
|
||||||
|
|
||||||
- name: Report vulnerabilities
|
- name: Report vulnerabilities
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -77,16 +77,16 @@ jobs:
|
|||||||
crane push /tmp/mc.tar git:3000/homelab/stack/mc:latest --insecure
|
crane push /tmp/mc.tar git:3000/homelab/stack/mc:latest --insecure
|
||||||
|
|
||||||
- name: Scan notebooks
|
- name: Scan notebooks
|
||||||
run: trivy image --severity HIGH,CRITICAL --exit-code 0 --format json -o notebooks-scan.json local/notebooks:build
|
run: trivy image --severity HIGH,CRITICAL --exit-code 1 --format json -o notebooks-scan.json local/notebooks:build
|
||||||
|
|
||||||
- name: Scan zotero
|
- name: Scan zotero
|
||||||
run: trivy image --severity HIGH,CRITICAL --exit-code 0 --format json -o zotero-scan.json local/zotero:build
|
run: trivy image --severity HIGH,CRITICAL --exit-code 1 --format json -o zotero-scan.json local/zotero:build
|
||||||
|
|
||||||
- name: Scan docs
|
- name: Scan docs
|
||||||
run: trivy image --severity HIGH,CRITICAL --exit-code 0 --format json -o docs-scan.json local/docs:build
|
run: trivy image --severity HIGH,CRITICAL --exit-code 1 --format json -o docs-scan.json local/docs:build
|
||||||
|
|
||||||
- name: Scan api
|
- name: Scan api
|
||||||
run: trivy image --severity HIGH,CRITICAL --exit-code 0 --format json -o api-scan.json local/api:build
|
run: trivy image --severity HIGH,CRITICAL --exit-code 1 --format json -o api-scan.json local/api:build
|
||||||
|
|
||||||
- name: Close resolved or file new vuln issues
|
- name: Close resolved or file new vuln issues
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -49,8 +49,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Vulnerability scan
|
- name: Vulnerability scan
|
||||||
run: |
|
run: |
|
||||||
trivy fs --scanners vuln --format json -o data/pkg-vulns.json uv.lock || true
|
set -euo pipefail
|
||||||
trivy fs --scanners vuln --format json -o data/pkg-vulns-pyproject.json pyproject.toml || true
|
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
|
- name: Auto-create issues for drift and vulns
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -78,16 +78,16 @@ jobs:
|
|||||||
crane push /tmp/mc.tar git:3000/homelab/stack/mc:latest --insecure
|
crane push /tmp/mc.tar git:3000/homelab/stack/mc:latest --insecure
|
||||||
|
|
||||||
- name: Scan notebooks
|
- name: Scan notebooks
|
||||||
run: trivy image --severity HIGH,CRITICAL --exit-code 0 --format json -o notebooks-scan.json local/notebooks:build
|
run: trivy image --severity HIGH,CRITICAL --exit-code 1 --format json -o notebooks-scan.json local/notebooks:build
|
||||||
|
|
||||||
- name: Scan zotero
|
- name: Scan zotero
|
||||||
run: trivy image --severity HIGH,CRITICAL --exit-code 0 --format json -o zotero-scan.json local/zotero:build
|
run: trivy image --severity HIGH,CRITICAL --exit-code 1 --format json -o zotero-scan.json local/zotero:build
|
||||||
|
|
||||||
- name: Scan docs
|
- name: Scan docs
|
||||||
run: trivy image --severity HIGH,CRITICAL --exit-code 0 --format json -o docs-scan.json local/docs:build
|
run: trivy image --severity HIGH,CRITICAL --exit-code 1 --format json -o docs-scan.json local/docs:build
|
||||||
|
|
||||||
- name: Scan api
|
- name: Scan api
|
||||||
run: trivy image --severity HIGH,CRITICAL --exit-code 0 --format json -o api-scan.json local/api:build
|
run: trivy image --severity HIGH,CRITICAL --exit-code 1 --format json -o api-scan.json local/api:build
|
||||||
|
|
||||||
- name: Report vulnerabilities
|
- name: Report vulnerabilities
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user