Skip to content

ci: add supply-chain dependency vulnerability scan (advisory) (#2395) - #2396

Open
matedev01 wants to merge 1 commit into
testfrom
ci/supply-chain-scan-2395
Open

ci: add supply-chain dependency vulnerability scan (advisory) (#2395)#2396
matedev01 wants to merge 1 commit into
testfrom
ci/supply-chain-scan-2395

Conversation

@matedev01

Copy link
Copy Markdown
Member

Closes part of #2395 — the first "adopt Hermes's strong engineering" item (the CI-hardening half; persist-before-side-effects is noted on #2388).

What

.github/workflows/supply-chain.yml: audits the pinned uv.lock resolution against the PyPA/OSV advisory database via pip-audit (uv export --frozenpip-audit -r).

  • Triggers: PRs touching pyproject.toml/uv.lock/the workflow, pushes to test/main, and a weekly schedule (so a newly-disclosed CVE in an already-pinned dependency surfaces without a dep change).
  • permissions: contents: read only.
  • Matches repo CI conventions (actions/checkout@v7, actions/setup-python@v6, Python 3.12, tools via pip install).

Why

The agent installs dependencies and the attested eval image (docker/eval.Dockerfile) is the TCB the "verify don't trust" story rests on — a known-vulnerable or poisoned dependency undermines the attestation (a score honestly bound by #2386, computed by a compromised TCB).

Rollout

Advisory (continue-on-error) to establish a clean baseline without blocking merges; the first CI run here validates the workflow live. The follow-up on #2395 flips it to blocking (drop continue-on-error + add to required checks) once the baseline is green.

Purely additive (a new, non-required workflow). CI/infra change — for human review/merge.

Closes part of #2395. The agent installs dependencies and the attested eval image
is the TCB the "verify don't trust" story rests on, so a known-vulnerable or poisoned
dependency must surface in CI.

.github/workflows/supply-chain.yml: audits the pinned uv.lock resolution against the
PyPA/OSV advisory database via pip-audit (uv export --frozen -> pip-audit -r), on PRs
that touch pyproject.toml/uv.lock, pushes to test/main, and a weekly schedule (so a
newly-disclosed CVE in an already-pinned dep surfaces without a dep change).
permissions: contents: read only.

Rollout is ADVISORY (continue-on-error) to establish a clean baseline without blocking
merges; the follow-up on #2395 flips it to blocking (drop continue-on-error + add to
required checks) once green. First of the "adopt Hermes's strong engineering" items
(the CI/hardening half; persist-before-side-effects is noted on #2388).
@github-actions github-actions Bot added the ci CI / tooling / workflows label Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci CI / tooling / workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant