From 85416459c474ad85402067a02103c84c93e98a73 Mon Sep 17 00:00:00 2001 From: Wasaf Abbasi <95940455+Abbasi26@users.noreply.github.com> Date: Wed, 18 Nov 2026 10:10:05 +0300 Subject: [PATCH 1/2] Dependabot: weekly Python updates for the hash-pinned CI lock --- .github/dependabot.yml | 10 ++++++++++ CHANGELOG.md | 1 + requirements-ci.in | 4 ++++ requirements-ci.txt | 8 ++++---- 4 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 .github/dependabot.yml create mode 100644 requirements-ci.in diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..4f304f2 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +# Weekly Python dependency updates. +# The uv ecosystem updates the exact pins in pyproject.toml / requirements-ci.in and recompiles the +# hash-pinned requirements-ci.txt with the options recorded in its header (--universal, --python-version, --generate-hashes). +version: 2 +updates: + - package-ecosystem: uv + directory: / + schedule: + interval: weekly + open-pull-requests-limit: 5 diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b07c8f..c8266c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +- Dependabot: weekly Python updates (uv ecosystem) for `pyproject.toml`, `requirements-ci.in` and the hash-pinned `requirements-ci.txt`. `requirements-ci.txt` is now compiled from `requirements-ci.in` so Dependabot can recompile it with hashes. - Demo: fictional Oracle Java SE rows for CVE-2026-114938 (Java4Shell) with a recorded NVD document (status Received, official Oracle CVSS 3.1 8.1, CNA affected versions, no invented CPE ranges or EPSS). The CVE is not in the demo KEV catalog. `from_nvd_cve` now reads NVD `affected` / `affectedData` when present; CPE `configurations` still win when both exist. - Dependencies: runtime, dev and build requirements in `pyproject.toml` are pinned to exact versions (`==`). CI installs from the hash-pinned `requirements-ci.txt` (`pip install --require-hashes`), then the project itself with `--no-deps`. Prompted by the malicious `agent-framework` 1.26.1/1.26.2 releases on PyPI ([MAL-2026-20101](https://osv.dev/vulnerability/MAL-2026-20101)); none of these projects depend on it. - `--columns NAMES` with `--format csv` on `scan` and `demo`: write only the named columns, in the given order. Unknown or repeated names exit 2 before any request. diff --git a/requirements-ci.in b/requirements-ci.in new file mode 100644 index 0000000..8a06c67 --- /dev/null +++ b/requirements-ci.in @@ -0,0 +1,4 @@ +# Direct CI dependencies, same exact pins as pyproject.toml (runtime + dev extra). +# requirements-ci.txt is compiled from this file with uv; Dependabot (uv ecosystem) updates both. +PyYAML==6.0.3 +pytest==9.2.0 diff --git a/requirements-ci.txt b/requirements-ci.txt index 5902a95..4817774 100644 --- a/requirements-ci.txt +++ b/requirements-ci.txt @@ -1,5 +1,5 @@ -# Hash-pinned CI dependencies. Regenerate with: -# uv pip compile pyproject.toml --extra dev --universal --python-version 3.11 --generate-hashes --no-header -o requirements-ci.txt +# This file was autogenerated by uv via the following command: +# uv pip compile requirements-ci.in --universal --python-version 3.11 --generate-hashes --output-file requirements-ci.txt colorama==0.4.6 ; sys_platform == 'win32' \ --hash=sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44 \ --hash=sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6 @@ -23,7 +23,7 @@ pygments==2.21.0 \ pytest==9.2.0 \ --hash=sha256:07acdcf88ec174f907dc01af70bf52d49b014bbab03faeeade31c96b18c2e588 \ --hash=sha256:97c4f3b1f3c7414aa36465e09b8220f1d03627993bd51b1282e193753c80557b - # via patchorder (pyproject.toml) + # via -r requirements-ci.in pyyaml==6.0.3 \ --hash=sha256:00c4bdeba853cc34e7dd471f16b4114f4162dc03e6b7afcc2128711f0eca823c \ --hash=sha256:0150219816b6a1fa26fb4699fb7daa9caf09eb1999f3b70fb6e786805e80375a \ @@ -98,4 +98,4 @@ pyyaml==6.0.3 \ --hash=sha256:f7057c9a337546edc7973c0d3ba84ddcdf0daa14533c2065749c9075001090e6 \ --hash=sha256:fa160448684b4e94d80416c0fa4aac48967a969efe22931448d853ada8baf926 \ --hash=sha256:fc09d0aa354569bc501d4e787133afc08552722d3ab34836a80547331bb5d4a0 - # via patchorder (pyproject.toml) + # via -r requirements-ci.in From 5f95579a5ef63ddc7446e6b63a26f3a0758d8342 Mon Sep 17 00:00:00 2001 From: Wasaf Abbasi <95940455+Abbasi26@users.noreply.github.com> Date: Wed, 18 Nov 2026 10:13:21 +0300 Subject: [PATCH 2/2] Dependabot: 7-day cooldown --- .github/dependabot.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 4f304f2..59cf017 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,10 +1,14 @@ # Weekly Python dependency updates. # The uv ecosystem updates the exact pins in pyproject.toml / requirements-ci.in and recompiles the # hash-pinned requirements-ci.txt with the options recorded in its header (--universal, --python-version, --generate-hashes). +# Cooldown: a new release is proposed only after it has been public for 7 days, so a malicious +# release that PyPI pulls within hours (like agent-framework 1.26.1/1.26.2) never reaches a PR. version: 2 updates: - package-ecosystem: uv directory: / schedule: interval: weekly + cooldown: + default-days: 7 open-pull-requests-limit: 5