bompage 2.2.3__tar.gz → 2.2.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {bompage-2.2.3 → bompage-2.2.5}/.gitignore +2 -1
- {bompage-2.2.3 → bompage-2.2.5}/.gitlab-ci.yml +62 -82
- bompage-2.2.5/.python-version +1 -0
- {bompage-2.2.3 → bompage-2.2.5}/CONTRIBUTING.md +3 -3
- {bompage-2.2.3 → bompage-2.2.5}/PKG-INFO +10 -5
- {bompage-2.2.3 → bompage-2.2.5}/README.md +7 -1
- {bompage-2.2.3 → bompage-2.2.5}/Taskfile.project.yml +3 -5
- {bompage-2.2.3 → bompage-2.2.5}/biome.json +1 -1
- {bompage-2.2.3 → bompage-2.2.5}/deploy/.gitlab-ci.yml +5 -2
- {bompage-2.2.3 → bompage-2.2.5}/docs/index.md +1 -1
- {bompage-2.2.3 → bompage-2.2.5}/docs/scan.md +5 -0
- {bompage-2.2.3 → bompage-2.2.5}/package.json +2 -2
- {bompage-2.2.3 → bompage-2.2.5}/pnpm-lock.yaml +274 -254
- {bompage-2.2.3 → bompage-2.2.5}/pyproject.toml +10 -13
- {bompage-2.2.3 → bompage-2.2.5}/renovate.json +13 -1
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/scan.py +1 -1
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/vulnerabilities.py +146 -5
- bompage-2.2.3/src/bompage/web/assets/index-DRORAtgH.css → bompage-2.2.5/src/bompage/web/assets/index-BFbKbO1s.css +1 -1
- bompage-2.2.3/src/bompage/web/assets/index-l2gw7pOZ.js → bompage-2.2.5/src/bompage/web/assets/index-Bm2mo1Vg.js +2 -2
- bompage-2.2.5/src/bompage/web/assets/material-symbols-outlined-DzTrJqFk.woff2 +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/web/index.html +2 -2
- {bompage-2.2.3 → bompage-2.2.5}/tests/analysis/test_freshness.py +1 -1
- {bompage-2.2.3 → bompage-2.2.5}/tests/parsers/test_base.py +4 -2
- {bompage-2.2.3 → bompage-2.2.5}/tests/test_attest.py +8 -4
- {bompage-2.2.3 → bompage-2.2.5}/tests/test_bompage.py +12 -5
- {bompage-2.2.3 → bompage-2.2.5}/tests/test_build.py +3 -2
- {bompage-2.2.3 → bompage-2.2.5}/tests/test_metadata.py +3 -2
- {bompage-2.2.3 → bompage-2.2.5}/tests/test_scan_report.py +77 -4
- {bompage-2.2.3 → bompage-2.2.5}/tests/test_time.py +1 -1
- {bompage-2.2.3 → bompage-2.2.5}/tests/test_vulnerabilities.py +323 -2
- bompage-2.2.5/uv.lock +1203 -0
- bompage-2.2.3/.python-version +0 -1
- bompage-2.2.3/src/bompage/web/assets/material-symbols-outlined-CbWsDl0D.woff2 +0 -0
- bompage-2.2.3/uv.lock +0 -1495
- {bompage-2.2.3 → bompage-2.2.5}/.gitleaks.toml +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/.markdownlint.yaml +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/.node-version +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/.pre-commit-config.yaml +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/.releaserc +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/.yamllint +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/LICENSE +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/SECURITY.md +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/Taskfile.yml +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/deploy/README.md +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/deploy/reports/example-component/.gitkeep +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/deploy/trust/allowed_signers +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/deploy/web/.gitkeep +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/docs/analysis/drift.md +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/docs/analysis/freshness.md +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/docs/analysis/inventory.md +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/docs/analysis/timeline.md +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/docs/bompage.md +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/docs/build.md +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/docs/check.md +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/docs/cli.md +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/docs/dashboard.md +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/docs/discovery.md +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/docs/metadata.md +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/docs/models.md +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/docs/parsers/base.md +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/docs/parsers/cyclonedx.md +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/docs/parsers/spdx.md +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/docs/prune.md +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/docs/push.md +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/docs/render/api.md +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/docs/render/data.md +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/docs/render/web.md +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/docs/verify.md +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/lychee.toml +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/mkdocs.yml +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/pnpm-workspace.yaml +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/scripts/gen-demo-data.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/scripts/merge_sbom_licenses.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/scripts/subset-icons.mjs +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/__init__.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/_git.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/_paths.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/_time.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/_version.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/analysis/__init__.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/analysis/drift.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/analysis/freshness.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/analysis/inventory.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/analysis/timeline.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/attest.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/bompage.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/build.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/check.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/discovery.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/metadata.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/models.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/parsers/__init__.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/parsers/base.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/parsers/cyclonedx.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/parsers/spdx.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/prune.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/push.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/py.typed +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/render/__init__.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/render/api.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/render/data.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/render/web.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/web/android-chrome-192x192.png +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/web/android-chrome-512x512.png +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/web/apple-touch-icon.png +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/web/assets/bompage-D8Wv-XTb.png +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/web/assets/roboto-latin-ext-wght-normal-DYIxWhlt.woff2 +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/web/assets/roboto-latin-wght-normal-ccAYIvAh.woff2 +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/web/favicon-16x16.png +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/web/favicon-32x32.png +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/web/favicon.ico +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/src/bompage/web/site.webmanifest +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/tests/__init__.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/tests/analysis/__init__.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/tests/analysis/test_drift.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/tests/analysis/test_inventory.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/tests/analysis/test_timeline.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/tests/conftest.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/tests/files/cyclonedx/simple.cdx.json +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/tests/files/reports/app-api/sbom-20260115.json +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/tests/files/spdx/simple.spdx.json +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/tests/files/spdx/web-frontend.spdx.json +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/tests/files/version_sort_parity.json +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/tests/parsers/__init__.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/tests/parsers/test_cyclonedx.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/tests/parsers/test_spdx.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/tests/render/__init__.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/tests/render/test_data.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/tests/render/test_web.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/tests/scripts/test_merge_sbom_licenses.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/tests/test_check.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/tests/test_dashboard_e2e.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/tests/test_discovery.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/tests/test_models.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/tests/test_prune.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/tests/test_prune_report.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/tests/test_push_report.py +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/tsconfig.json +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/vite.config.ts +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/vitest.config.ts +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/web-src/app.test.ts +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/web-src/app.ts +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/web-src/bompage.png +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/web-src/index.html +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/web-src/lib.test.ts +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/web-src/lib.ts +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/web-src/public/android-chrome-192x192.png +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/web-src/public/android-chrome-512x512.png +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/web-src/public/apple-touch-icon.png +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/web-src/public/favicon-16x16.png +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/web-src/public/favicon-32x32.png +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/web-src/public/favicon.ico +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/web-src/public/site.webmanifest +0 -0
- {bompage-2.2.3 → bompage-2.2.5}/web-src/theme.css +0 -0
|
@@ -17,12 +17,13 @@ workflow:
|
|
|
17
17
|
variables:
|
|
18
18
|
# The tagged commit was linted and tested by its branch pipeline before
|
|
19
19
|
# semantic-release created the tag. On the tag pipeline only the release
|
|
20
|
-
# jobs matter, and none of them gate on lint/test anyway (
|
|
21
|
-
#
|
|
20
|
+
# jobs matter, and none of them gate on lint/test anyway (an explicit
|
|
21
|
+
# `needs:`, or `publish-pypi-uv`'s stage order, which only sees the jobs
|
|
22
|
+
# that run). DISABLE_JOBS switches off every op_so lint/test
|
|
22
23
|
# job; the jobs the release needs re-enable themselves below
|
|
23
24
|
# (prepare-uv:sync, publish-pypi-uv, pages, generate-sbom, bompage-push).
|
|
24
25
|
# build-web is NOT gated by DISABLE_JOBS (see its own `rules:`): the
|
|
25
|
-
# wheel built by publish-pypi-uv
|
|
26
|
+
# wheel built by publish-pypi-uv takes its artifact even here.
|
|
26
27
|
DISABLE_JOBS: "true"
|
|
27
28
|
- if: $CI_COMMIT_BRANCH
|
|
28
29
|
# Superseded pipelines abandon their still-running interruptible jobs when a
|
|
@@ -40,79 +41,79 @@ default:
|
|
|
40
41
|
when:
|
|
41
42
|
- api_failure
|
|
42
43
|
- runner_system_failure
|
|
43
|
-
-
|
|
44
|
+
- stuck_pending_with_matching_runners
|
|
45
|
+
- stuck_pending_no_matching_runners
|
|
46
|
+
- no_updates_running
|
|
47
|
+
- no_updates_canceling
|
|
44
48
|
- scheduler_failure
|
|
45
49
|
|
|
46
50
|
variables:
|
|
47
|
-
# The Python the project develops and releases on (see the note on `include:`
|
|
48
|
-
# below for why the component inputs still hard-code it). It is NOT the floor:
|
|
49
|
-
# `requires-python` in pyproject.toml is >=3.12, and `test-floor` below runs
|
|
50
|
-
# the suite on every supported minor so that bound stays a checked claim.
|
|
51
|
-
PYTHON_VERSION: "3.14"
|
|
52
51
|
# Pinned go-task release fetched by `.install-task` (floating "latest" would
|
|
53
52
|
# make release jobs non-reproducible). Bump deliberately.
|
|
54
53
|
TASK_VERSION: "v3.54.0"
|
|
55
|
-
|
|
54
|
+
# Same default image as the python-uv components: uv without Python, which uv
|
|
55
|
+
# downloads from `.python-version` into the shared cache (`.uv-python`).
|
|
56
|
+
IMAGE_UV: ghcr.io/astral-sh/uv:trixie-slim
|
|
56
57
|
IMAGE_NODE: node:24-trixie-slim
|
|
57
58
|
# Trivy generates bompage's own release SBOM in the `generate-sbom` job. Pinned
|
|
58
59
|
# so re-running an old tag is reproducible; Renovate bumps it (custom manager
|
|
59
60
|
# in renovate.json).
|
|
60
|
-
TRIVY_VERSION: "0.
|
|
61
|
-
# Node binary installed directly in the `generate-sbom` job (a
|
|
61
|
+
TRIVY_VERSION: "0.76.1"
|
|
62
|
+
# Node binary installed directly in the `generate-sbom` job (a uv-image job):
|
|
62
63
|
# Trivy's pnpm analyzer only reads license data from an installed
|
|
63
64
|
# `node_modules`, not from `pnpm-lock.yaml` alone. Pinned like TRIVY_VERSION
|
|
64
65
|
# above; Renovate bumps it (custom manager in renovate.json). pnpm itself
|
|
65
66
|
# comes from `package.json`'s `packageManager` field via corepack.
|
|
66
|
-
NODE_VERSION: "
|
|
67
|
+
NODE_VERSION: "26.13.0"
|
|
67
68
|
# uv installed directly in the `test-e2e` job (it runs on the Playwright image,
|
|
68
69
|
# not on IMAGE_UV). Pinned like TRIVY_VERSION / NODE_VERSION above: a floating
|
|
69
70
|
# installer would make the only browser test in the pipeline non-reproducible
|
|
70
71
|
# and let a breaking uv major land with no MR. Renovate bumps it (custom
|
|
71
72
|
# manager in renovate.json).
|
|
72
|
-
UV_VERSION: "0.13.
|
|
73
|
+
UV_VERSION: "0.13.6"
|
|
73
74
|
|
|
74
|
-
#
|
|
75
|
-
# `inputs
|
|
76
|
-
#
|
|
77
|
-
#
|
|
75
|
+
# The Python version of the prepare, lint and publish jobs comes from `.python-version`
|
|
76
|
+
# (their `*_python_version` inputs are left empty), and so does test-e2e below. It is the
|
|
77
|
+
# one the project develops and releases on, NOT the floor: `requires-python` in
|
|
78
|
+
# pyproject.toml is >=3.13,<3.15, and `test-uv` runs the suite on every supported minor
|
|
79
|
+
# (`test_uv_python_versions`) so that range stays a checked claim. The minor is bumped by
|
|
80
|
+
# hand, together with `test_uv_python_versions`, that range, and the "Python 3.14 to
|
|
81
|
+
# develop" prose in CONTRIBUTING.md / AGENTS.md; Renovate only bumps the patch of the
|
|
82
|
+
# file (see renovate.json).
|
|
78
83
|
include:
|
|
79
84
|
- component: gitlab.com/op_so/components/core/lint@v2.0.4
|
|
80
85
|
inputs:
|
|
81
86
|
lint_vale: true
|
|
82
87
|
lint_markdown_glob: '"**/*.md" "#docs"'
|
|
83
|
-
- component: gitlab.com/op_so/components/python-uv/prepare-uv@
|
|
88
|
+
- component: gitlab.com/op_so/components/python-uv/prepare-uv@v2.2.0
|
|
89
|
+
- component: gitlab.com/op_so/components/python-uv/lint-uv@v2.2.0
|
|
84
90
|
inputs:
|
|
85
|
-
prepare_uv_python_version: "3.14"
|
|
86
|
-
- component: gitlab.com/op_so/components/python-uv/lint-uv@v1.4.0
|
|
87
|
-
inputs:
|
|
88
|
-
lint_uv_python_version: "3.14"
|
|
89
|
-
lint_uv_isort: true
|
|
90
91
|
lint_uv_mypy: true
|
|
91
92
|
lint_uv_mypy_args: "--strict src/ tests/"
|
|
92
93
|
lint_uv_pyrefly: true
|
|
93
94
|
# Coverage is on by default and reads `[tool.coverage.run] source` from
|
|
94
95
|
# pyproject.toml, since the component passes `--cov` without an argument.
|
|
95
|
-
- component: gitlab.com/op_so/components/python-uv/test-uv@
|
|
96
|
+
- component: gitlab.com/op_so/components/python-uv/test-uv@v2.2.0
|
|
96
97
|
inputs:
|
|
97
|
-
|
|
98
|
+
test_uv_python_versions: ["3.13", "3.14"]
|
|
98
99
|
- component: gitlab.com/op_so/components/core/semantic-release@v2.0.4
|
|
99
100
|
# Only runs on a scheduled pipeline setting RENOVATE=true, and needs a
|
|
100
101
|
# RENOVATE_TOKEN CI/CD variable.
|
|
101
102
|
- component: gitlab.com/op_so/components/core/renovate@v2.0.4
|
|
102
|
-
- component: gitlab.com/op_so/components/python-uv/publish-pypi-uv@
|
|
103
|
+
- component: gitlab.com/op_so/components/python-uv/publish-pypi-uv@v2.2.0
|
|
103
104
|
inputs:
|
|
104
|
-
publish_pypi_uv_python_version: "3.14"
|
|
105
105
|
publish_pypi_uv_stage: pypi-release
|
|
106
|
+
# Stamps the version from the tag (`uv version --frozen`): the repo carries 0.0.0.
|
|
107
|
+
publish_pypi_uv_version_from_tag: "v[0-9]*.[0-9]*.[0-9]*"
|
|
106
108
|
# `bompage-push` component only: the publish side (`pages` + `bompage-prune`)
|
|
107
109
|
# belongs to the central sbom-bompage repo's own inclusion
|
|
108
110
|
# (deploy/.gitlab-ci.yml), so it is simply not included here -- no `pages`
|
|
109
111
|
# job collision with the mkdocs one below, no `bompage-prune` firing on this
|
|
110
112
|
# repo's scheduled Renovate pipeline.
|
|
111
113
|
#
|
|
112
|
-
# `bompage_push_repo` is a literal, not `${VARIABLE}`:
|
|
113
|
-
#
|
|
114
|
-
|
|
115
|
-
- component: gitlab.com/op_so/components/pages/bompage-push@v1.3.1
|
|
114
|
+
# `bompage_push_repo` is a literal, not `${VARIABLE}`: `include: inputs:` is
|
|
115
|
+
# evaluated before, and so cannot reference, this file's own `variables:` block.
|
|
116
|
+
- component: gitlab.com/op_so/components/pages/bompage-push@v1.3.4
|
|
116
117
|
inputs:
|
|
117
118
|
bompage_push_stage: sbom-release
|
|
118
119
|
bompage_push_repo: "https://gitlab.com/op_so/pages/sbom-bompage.git"
|
|
@@ -212,13 +213,13 @@ build-web:
|
|
|
212
213
|
stage: build-web
|
|
213
214
|
# Deliberately its own rules, not `*skip-when-jobs-disabled` / DISABLE_JOBS:
|
|
214
215
|
# - it must survive the tag pipeline, where DISABLE_JOBS is "true" but
|
|
215
|
-
# publish-pypi-uv still
|
|
216
|
-
# on DISABLE_JOBS there made it vanish from that pipeline while
|
|
217
|
-
# publish-pypi-uv still
|
|
218
|
-
#
|
|
216
|
+
# publish-pypi-uv still lists this job in `dependencies` for the wheel --
|
|
217
|
+
# gating on DISABLE_JOBS there made it vanish from that pipeline while
|
|
218
|
+
# publish-pypi-uv still referenced it, which GitLab rejects as a
|
|
219
|
+
# `dependencies` entry naming a job that does not exist.
|
|
219
220
|
# - it must NOT run on the schedule pipeline (Renovate's cron): nothing there
|
|
220
221
|
# needs a dashboard build, so skip on that source explicitly instead.
|
|
221
|
-
# test-
|
|
222
|
+
# test-e2e / test-uv:pytest also `needs` build-web, but they
|
|
222
223
|
# stay on the shared DISABLE_JOBS gate (now also set for `schedule`, above)
|
|
223
224
|
# so they are skipped there too -- otherwise they would hit the same
|
|
224
225
|
# "job does not exist" error build-web itself just did.
|
|
@@ -240,33 +241,11 @@ build-web:
|
|
|
240
241
|
- apt-get update -qq
|
|
241
242
|
- DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends git openssh-client
|
|
242
243
|
|
|
243
|
-
# `requires-python = ">=3.12"` is only checked on PYTHON_VERSION by the op_so
|
|
244
|
-
# test-uv component: this runs the suite on the older minors so the floor stays
|
|
245
|
-
# a tested claim. Standalone (`needs: build-web` only, no `.abstract-uv`): the
|
|
246
|
-
# prepare-uv cache holds a PYTHON_VERSION `.venv` that would clash with the
|
|
247
|
-
# matrix interpreter.
|
|
248
|
-
test-floor:
|
|
249
|
-
stage: tests
|
|
250
|
-
image: ghcr.io/astral-sh/uv:python${PY}-trixie-slim
|
|
251
|
-
needs:
|
|
252
|
-
- job: build-web
|
|
253
|
-
artifacts: true
|
|
254
|
-
parallel:
|
|
255
|
-
matrix:
|
|
256
|
-
- PY: ["3.12", "3.13"]
|
|
257
|
-
rules: *skip-when-jobs-disabled
|
|
258
|
-
variables:
|
|
259
|
-
UV_CACHE_DIR: .uv-cache
|
|
260
|
-
before_script:
|
|
261
|
-
- *install-git
|
|
262
|
-
script:
|
|
263
|
-
- uv run --frozen --python "$PY" --group dev pytest
|
|
264
|
-
|
|
265
244
|
# Browser smoke of the built dashboard. The image tag must match the
|
|
266
245
|
# `playwright` version locked in uv.lock; the guard in `script:` enforces it.
|
|
267
246
|
test-e2e:
|
|
268
247
|
stage: tests
|
|
269
|
-
image: mcr.microsoft.com/playwright/python:v1.
|
|
248
|
+
image: mcr.microsoft.com/playwright/python:v1.64.1
|
|
270
249
|
needs:
|
|
271
250
|
- job: build-web
|
|
272
251
|
artifacts: true
|
|
@@ -285,6 +264,11 @@ test-e2e:
|
|
|
285
264
|
tar -xzf /tmp/uv.tgz -C /usr/local/bin --strip-components=1 \
|
|
286
265
|
"uv-${UARCH}-unknown-linux-gnu/uv" "uv-${UARCH}-unknown-linux-gnu/uvx"
|
|
287
266
|
uv --version
|
|
267
|
+
# This image ships Python 3.12, so uv fetches an interpreter. Without this it
|
|
268
|
+
# reads the exact patch in `.python-version`, which the pinned UV_VERSION may not
|
|
269
|
+
# know yet (the download then fails): ask for the minor only.
|
|
270
|
+
UV_PYTHON="$(cut -d. -f1,2 .python-version)"
|
|
271
|
+
export UV_PYTHON
|
|
288
272
|
script:
|
|
289
273
|
# The image ships the browsers of ONE playwright version, uv.lock pins
|
|
290
274
|
# another: a mismatch surfaces as an opaque browser crash. Compare the locked
|
|
@@ -322,24 +306,28 @@ test-e2e:
|
|
|
322
306
|
tar -xzf /tmp/task.tgz -C /usr/local/bin task
|
|
323
307
|
task --version
|
|
324
308
|
|
|
325
|
-
# The cache block must stay identical to the
|
|
326
|
-
# components: they share a single key and any divergence
|
|
309
|
+
# The cache block (key, paths) and `UV_PYTHON_INSTALL_DIR` must stay identical to the
|
|
310
|
+
# ones used by the python-uv components: they share a single key and any divergence
|
|
311
|
+
# silently splits it. A patch bump of `.python-version` refreshes the cache (expected).
|
|
327
312
|
.abstract-uv:
|
|
328
313
|
image: $IMAGE_UV
|
|
329
314
|
needs: ["prepare-uv:sync"]
|
|
330
315
|
variables:
|
|
331
316
|
UV_CACHE_DIR: .uv-cache
|
|
317
|
+
UV_PYTHON_INSTALL_DIR: .uv-python
|
|
332
318
|
cache:
|
|
333
319
|
key:
|
|
334
320
|
files:
|
|
335
321
|
- uv.lock
|
|
322
|
+
- .python-version
|
|
336
323
|
prefix: prepare-uv-${CI_DEFAULT_BRANCH}
|
|
337
324
|
paths:
|
|
338
325
|
- .uv-cache
|
|
326
|
+
- .uv-python
|
|
339
327
|
- .venv
|
|
340
328
|
policy: pull
|
|
341
329
|
|
|
342
|
-
# Required by
|
|
330
|
+
# Required by pages / generate-sbom, so it must survive the
|
|
343
331
|
# DISABLE_JOBS switch the tag pipeline sets in `workflow:` above (the component
|
|
344
332
|
# ships `- if: $DISABLE_JOBS == "true" when: never` as its first rule).
|
|
345
333
|
prepare-uv:sync:
|
|
@@ -368,21 +356,17 @@ semantic-release:
|
|
|
368
356
|
- npx semantic-release --dry-run --no-ci
|
|
369
357
|
- if [ -s .VERSION ]; then task 00:800-project-set-version VERSION=$(cat .VERSION); fi
|
|
370
358
|
|
|
371
|
-
# The
|
|
372
|
-
#
|
|
373
|
-
#
|
|
359
|
+
# The wheel needs the build-web artifact (`[tool.hatch.build.targets.wheel] artifacts`
|
|
360
|
+
# in pyproject.toml). No `needs`, like the component (stage order gates the
|
|
361
|
+
# upload behind lint and tests): `dependencies` narrows the component's
|
|
362
|
+
# `dependencies: []` to the build-web artifact only.
|
|
374
363
|
publish-pypi-uv:
|
|
375
364
|
# Uploads to PyPI: not interruptible.
|
|
376
365
|
interruptible: false
|
|
377
|
-
|
|
378
|
-
-
|
|
379
|
-
artifacts: true
|
|
380
|
-
- job: build-web
|
|
381
|
-
artifacts: true
|
|
366
|
+
dependencies:
|
|
367
|
+
- build-web
|
|
382
368
|
before_script:
|
|
383
|
-
- *install-task
|
|
384
369
|
- test -f src/bompage/web/index.html # fail loudly if the artifact is missing
|
|
385
|
-
- task 00:800-project-set-version VERSION="${CI_COMMIT_TAG#v}"
|
|
386
370
|
# Overrides the component's DISABLE_JOBS guard: the release must run on tags.
|
|
387
371
|
rules:
|
|
388
372
|
- if: $CI_COMMIT_TAG
|
|
@@ -392,11 +376,8 @@ publish-pypi-uv:
|
|
|
392
376
|
pages:
|
|
393
377
|
extends: .abstract-uv
|
|
394
378
|
stage: pages-release
|
|
395
|
-
# Deploys GitLab Pages. `needs`
|
|
379
|
+
# Deploys GitLab Pages. `needs` comes from `.abstract-uv`; no build-web needed.
|
|
396
380
|
interruptible: false
|
|
397
|
-
needs:
|
|
398
|
-
- job: "prepare-uv:sync"
|
|
399
|
-
artifacts: true
|
|
400
381
|
before_script:
|
|
401
382
|
- *install-task
|
|
402
383
|
- uv sync --frozen
|
|
@@ -418,9 +399,6 @@ pages:
|
|
|
418
399
|
generate-sbom:
|
|
419
400
|
extends: .abstract-uv
|
|
420
401
|
stage: sbom-release
|
|
421
|
-
needs:
|
|
422
|
-
- job: "prepare-uv:sync"
|
|
423
|
-
artifacts: true
|
|
424
402
|
before_script:
|
|
425
403
|
- *install-task # curl + ca-certificates + task
|
|
426
404
|
- DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends xz-utils
|
|
@@ -467,11 +445,13 @@ generate-sbom:
|
|
|
467
445
|
# The output still carries a fresh `serialNumber` / `metadata.timestamp` on
|
|
468
446
|
# every run, so push_report's byte-compare anti-noise filter does not fire on
|
|
469
447
|
# it. Trivy's pnpm parser already excludes devDependencies.
|
|
470
|
-
-
|
|
448
|
+
# `--skip-dirs`: the cache directories hold the interpreter uv downloads
|
|
449
|
+
# (`.uv-python`, with its own pip) and the uv download cache; neither is part of the project.
|
|
450
|
+
- trivy fs --quiet --format cyclonedx --scanners license --offline-scan --skip-dirs .uv-python,.uv-cache --output sbom-fs.cdx.json .
|
|
471
451
|
# uv.lock carries no licenses: `trivy rootfs` reads the installed `.venv`
|
|
472
452
|
# metadata instead. `merge_sbom_licenses.py` borrows only its `licenses` (by
|
|
473
453
|
# purl) for packages the `fs` scan kept, since rootfs also reports dev deps.
|
|
474
|
-
- trivy rootfs --quiet --format cyclonedx --scanners license --offline-scan --output sbom-rootfs.cdx.json .
|
|
454
|
+
- trivy rootfs --quiet --format cyclonedx --scanners license --offline-scan --skip-dirs .uv-python,.uv-cache --output sbom-rootfs.cdx.json .
|
|
475
455
|
- uv run --no-sync python scripts/merge_sbom_licenses.py sbom-fs.cdx.json sbom-rootfs.cdx.json --output sbom.cdx.json
|
|
476
456
|
artifacts:
|
|
477
457
|
paths:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.14.10
|
|
@@ -38,7 +38,7 @@ Three invariants to keep in mind before changing anything:
|
|
|
38
38
|
|
|
39
39
|
| Tool | Used for | Version |
|
|
40
40
|
| --- | --- | --- |
|
|
41
|
-
| [uv](https://docs.astral.sh/uv/) | Python dependencies (`uv.lock`) | Python
|
|
41
|
+
| [uv](https://docs.astral.sh/uv/) | Python dependencies (`uv.lock`) | Python 3.14 to develop; the package supports 3.13 and 3.14 (`>=3.13,<3.15`) |
|
|
42
42
|
| [pnpm](https://pnpm.io) | dashboard dependencies (`pnpm-lock.yaml`) | Node ≥ 24 (`.node-version`) |
|
|
43
43
|
| [go-task](https://taskfile.dev) | every project command | — |
|
|
44
44
|
|
|
@@ -89,8 +89,8 @@ needs the test that reaches it in the same change.
|
|
|
89
89
|
## Quality gates
|
|
90
90
|
|
|
91
91
|
```bash
|
|
92
|
-
task 00:110-format #
|
|
93
|
-
task 00:120-lint # ruff check + ruff format --check
|
|
92
|
+
task 00:110-format # ruff --fix + ruff format
|
|
93
|
+
task 00:120-lint # ruff check + ruff format --check
|
|
94
94
|
task 00:130-type-check # mypy --strict + pyrefly, both must pass
|
|
95
95
|
|
|
96
96
|
task 00:015-check-web # Biome + tsc + vitest on web-src/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: bompage
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.5
|
|
4
4
|
Summary: A generic, server-less system to track SBOM history of N components and publish a static dashboard
|
|
5
5
|
Project-URL: Homepage, https://gitlab.com/op_so/pages/bompage
|
|
6
6
|
Project-URL: Documentation, https://op_so.gitlab.io/pages/bompage/
|
|
@@ -16,14 +16,13 @@ Classifier: Intended Audience :: Developers
|
|
|
16
16
|
Classifier: Intended Audience :: System Administrators
|
|
17
17
|
Classifier: Operating System :: OS Independent
|
|
18
18
|
Classifier: Programming Language :: Python :: 3
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
20
19
|
Classifier: Programming Language :: Python :: 3.13
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.14
|
|
22
21
|
Classifier: Topic :: Security
|
|
23
22
|
Classifier: Topic :: Software Development :: Quality Assurance
|
|
24
23
|
Classifier: Typing :: Typed
|
|
25
|
-
Requires-Python:
|
|
26
|
-
Requires-Dist: pydantic>=2.14.
|
|
24
|
+
Requires-Python: <3.15,>=3.13
|
|
25
|
+
Requires-Dist: pydantic>=2.14.2
|
|
27
26
|
Requires-Dist: typer>=0.27.3
|
|
28
27
|
Description-Content-Type: text/markdown
|
|
29
28
|
|
|
@@ -82,7 +81,7 @@ Syft, the CycloneDX Maven plugin…) will work.
|
|
|
82
81
|
|
|
83
82
|
## Install
|
|
84
83
|
|
|
85
|
-
Python 3.
|
|
84
|
+
Python 3.13 or 3.14:
|
|
86
85
|
|
|
87
86
|
```bash
|
|
88
87
|
python3 -m pip install bompage
|
|
@@ -217,6 +216,12 @@ alongside `bompage prune` (see `deploy/README.md`).
|
|
|
217
216
|
|
|
218
217
|
Notes:
|
|
219
218
|
|
|
219
|
+
- Syft's SPDX output declares no operating system, so Trivy would skip every
|
|
220
|
+
apk/deb/rpm package. When all of an SPDX SBOM's OS packages share one
|
|
221
|
+
recognised `distro=<id>-<version>` purl qualifier (e.g. `alpine-3.24.2`),
|
|
222
|
+
`scan` scans a temporary copy with the matching `OPERATING-SYSTEM` package
|
|
223
|
+
added; the stored, signed SBOM is never modified. An unrecognised or mixed
|
|
224
|
+
distro is warned about and scanned as it is. CycloneDX needs none of this.
|
|
220
225
|
- Findings are matched to packages by purl, tolerating differences Trivy may
|
|
221
226
|
introduce (qualifiers, percent-encoding), then by `name@version`. A finding
|
|
222
227
|
that still matches no package of the latest snapshot is dropped with a
|
|
@@ -53,7 +53,7 @@ Syft, the CycloneDX Maven plugin…) will work.
|
|
|
53
53
|
|
|
54
54
|
## Install
|
|
55
55
|
|
|
56
|
-
Python 3.
|
|
56
|
+
Python 3.13 or 3.14:
|
|
57
57
|
|
|
58
58
|
```bash
|
|
59
59
|
python3 -m pip install bompage
|
|
@@ -188,6 +188,12 @@ alongside `bompage prune` (see `deploy/README.md`).
|
|
|
188
188
|
|
|
189
189
|
Notes:
|
|
190
190
|
|
|
191
|
+
- Syft's SPDX output declares no operating system, so Trivy would skip every
|
|
192
|
+
apk/deb/rpm package. When all of an SPDX SBOM's OS packages share one
|
|
193
|
+
recognised `distro=<id>-<version>` purl qualifier (e.g. `alpine-3.24.2`),
|
|
194
|
+
`scan` scans a temporary copy with the matching `OPERATING-SYSTEM` package
|
|
195
|
+
added; the stored, signed SBOM is never modified. An unrecognised or mixed
|
|
196
|
+
distro is warned about and scanned as it is. CycloneDX needs none of this.
|
|
191
197
|
- Findings are matched to packages by purl, tolerating differences Trivy may
|
|
192
198
|
introduce (qualifiers, percent-encoding), then by `name@version`. A finding
|
|
193
199
|
that still matches no package of the latest snapshot is dropped with a
|
|
@@ -51,19 +51,17 @@ tasks:
|
|
|
51
51
|
silent: true
|
|
52
52
|
|
|
53
53
|
110-format:
|
|
54
|
-
desc: "[PROJECT] Python format with
|
|
54
|
+
desc: "[PROJECT] Python format with Ruff."
|
|
55
55
|
cmds:
|
|
56
|
-
- uv run isort . --gitignore
|
|
57
56
|
- uv run ruff check --fix
|
|
58
57
|
- uv run ruff format
|
|
59
58
|
silent: true
|
|
60
59
|
|
|
61
60
|
120-lint:
|
|
62
|
-
desc: "[PROJECT] Python lint: Ruff (check
|
|
61
|
+
desc: "[PROJECT] Python lint: Ruff (check, import order, format)."
|
|
63
62
|
cmds:
|
|
64
63
|
- uv run ruff check
|
|
65
64
|
- uv run ruff format --check
|
|
66
|
-
- uv run isort . --check-only --gitignore
|
|
67
65
|
silent: true
|
|
68
66
|
|
|
69
67
|
130-type-check:
|
|
@@ -81,7 +79,7 @@ tasks:
|
|
|
81
79
|
- uv run --with pip-audit pip-audit --desc
|
|
82
80
|
|
|
83
81
|
190-check:
|
|
84
|
-
desc: "[PROJECT] Static control suite: web build + Biome/tsc, Ruff
|
|
82
|
+
desc: "[PROJECT] Static control suite: web build + Biome/tsc, Ruff, mypy/pyrefly, uv lock."
|
|
85
83
|
cmds:
|
|
86
84
|
- echo "Web (build + Biome + tsc):" && echo "=========================="
|
|
87
85
|
- task 00:010-build-web
|
|
@@ -35,11 +35,14 @@ default:
|
|
|
35
35
|
when:
|
|
36
36
|
- api_failure
|
|
37
37
|
- runner_system_failure
|
|
38
|
-
-
|
|
38
|
+
- stuck_pending_with_matching_runners
|
|
39
|
+
- stuck_pending_no_matching_runners
|
|
40
|
+
- no_updates_running
|
|
41
|
+
- no_updates_canceling
|
|
39
42
|
- scheduler_failure
|
|
40
43
|
|
|
41
44
|
include:
|
|
42
|
-
- component: gitlab.com/op_so/components/pages/bompage-publish@v1.3.
|
|
45
|
+
- component: gitlab.com/op_so/components/pages/bompage-publish@v1.3.4
|
|
43
46
|
inputs:
|
|
44
47
|
# This repository's trust root (attestation spec section 5), shared by
|
|
45
48
|
# bompage-check (the gate) and the pages job's `bompage build` (the
|
|
@@ -8,6 +8,11 @@ component whose scan fails is warned about and skipped: one bad component never
|
|
|
8
8
|
aborts the run. `bompage build` reads the sidecars and shows the findings on the
|
|
9
9
|
dashboard.
|
|
10
10
|
|
|
11
|
+
An SPDX SBOM that names no operating system (syft's does not) is scanned
|
|
12
|
+
through a temporary copy with the OS deduced from its packages' `distro` purl
|
|
13
|
+
qualifier added, so Trivy covers the apk/deb/rpm packages; the stored SBOM is
|
|
14
|
+
never modified.
|
|
15
|
+
|
|
11
16
|
::: src.bompage.scan
|
|
12
17
|
|
|
13
18
|
## Matching findings to packages
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Constant Material Web (M3) dashboard for bompage; consumes the generated data/ tree at runtime.",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"packageManager": "pnpm@12.
|
|
7
|
+
"packageManager": "pnpm@12.16.1",
|
|
8
8
|
"engines": {
|
|
9
9
|
"node": ">=24",
|
|
10
10
|
"pnpm": ">=11"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@biomejs/biome": "^2.5.12",
|
|
29
|
-
"happy-dom": "^
|
|
29
|
+
"happy-dom": "^21.0.0",
|
|
30
30
|
"subset-font": "^2.7.0",
|
|
31
31
|
"typescript": "^7.0.2",
|
|
32
32
|
"vite": "^8.2.2",
|