Skip to content

fix(ci): move NVD mirror to dedicated vig-os/nvd-mirror Pages host - #872

Merged
c-vigo merged 1 commit into
release/0.4.0from
bugfix/870-nvd-mirror
Jul 6, 2026
Merged

c-vigo merged 1 commit into
release/0.4.0from
bugfix/870-nvd-mirror

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 6, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up to #871 (already merged). Refs #870.

Why

#871 landed the mirror as release assets in this repo, but that approach is blocked by GitHub immutable releases: assets can't be updated/clobbered after creation, and once the nvd-mirror tag is used by an immutable release it's poisoned (can't recreate). The in-repo nvd-mirror-refresh.yml also can't run — a new workflow is only schedulable/dispatchable from the default branch, and main is still the pre-cutover Debian world.

So as merged, release/0.4.0 points vulnix --mirror at a release-asset URL that can't exist → the gate would fail.

Change

  • Remove the in-repo nvd-mirror-refresh.yml.
  • Point vulnix --mirror (in security-scan.yml and the release.yml vulnix-gate) at the dedicated public mirror vig-os/nvd-mirror, served on GitHub Pages: https://vig-os.github.io/nvd-mirror/.
  • Update docs + CHANGELOG.

The dedicated repo owns the one job that talks to NVD (its default branch, so it schedules/dispatches immediately — no cutover dependency). It is already live and serving all 7 feeds (nvdcve-2.0-{2021..2026}.json.gz + modified, 117 MB, HTTP 200 + valid gzip), bootstrapped from a known-good local copy.

Test plan

  • https://vig-os.github.io/nvd-mirror/nvdcve-2.0-*.json.gz → 200, valid gzip (all 7).
  • Dispatch security-scan.yml on this branch → passed in 97 s via the mirror (run 28792515788); NVD_MIRROR=https://vig-os.github.io/nvd-mirror/, gate green, no nvd.nist.gov cold-crawl.

GitHub immutable releases block updating a fixed release tag's assets
(and poison the tag once used), so the mirror cannot live on a release in
this repo. Host it in a dedicated public repo, vig-os/nvd-mirror, served
on GitHub Pages, and point vulnix --mirror at
https://vig-os.github.io/nvd-mirror/. Drop the in-repo
nvd-mirror-refresh.yml — that job now lives in the mirror repo.

Refs: #870
@c-vigo

c-vigo commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

Verified end-to-end on this branch. ✅

Dispatched security-scan.yml → run 28792515788:

  • NVD_MIRROR="https://vig-os.github.io/nvd-mirror/" — vulnix fetched from the dedicated Pages mirror.
  • Run vulnix completed in ~97 s (12:47:08 → 12:48:45) and passed; vulnix-gate green.
  • For contrast, cold runs against nvd.nist.gov today failed after 53 min (28781395405) and 68 min (28785412480) with ReadTimeoutError/IncompleteRead/404s.

The mirror is live and serving all 7 feeds (nvdcve-2.0-{2021..2026}.json.gz + modified) at https://vig-os.github.io/nvd-mirror/.

@c-vigo
c-vigo merged commit 5c16d58 into release/0.4.0 Jul 6, 2026
12 checks passed
@c-vigo
c-vigo deleted the bugfix/870-nvd-mirror branch July 6, 2026 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant