Skip to content

feat(ci): add nvd-api-cvehistory - #207

Merged
MaineK00n merged 1 commit into
mainfrom
MaineK00n/fetch-nvd-api-cvehistory
Jul 31, 2026
Merged

feat(ci): add nvd-api-cvehistory#207
MaineK00n merged 1 commit into
mainfrom
MaineK00n/fetch-nvd-api-cvehistory

Conversation

@MaineK00n

Copy link
Copy Markdown
Contributor

What

Register nvd-api-cvehistory (NVD CVE Change History API 2.0) as a raw source in the CI matrices.

  • fetch-nvd-api.yml: add nvd-api-cvehistory to the workflow_dispatch choices
  • fetch-all.yml: add it to the fetch-nvd-api job matrix
  • archive-raw.yml / archive.yml: archive targets
  • backup-daily.yml / backup-weekly.yml / backup-monthly.yml: raw backup targets
  • gc-raw.yml: tag + pack-threads: 2 / pack-windowMemory: 4g (same as the other nvd-api-* entries)
  • gc.yml / restore-all.yml: raw target lists

Why

MaineK00n/vuls-data-update#899 adds vuls-data-update fetch nvd-api-cvehistory, which collects every CVE change event (~2.2M events as of now) from https://services.nvd.nist.gov/rest/json/cvehistory/2.0. This PR wires the resulting vuls-data-raw-nvd-api-cvehistory image into the same fetch / archive / backup / gc / restore flows the other nvd-api-* sources already use.

How

Follows the same shape as #202 (alma-updateinfo / rocky-updateinfo): one entry per matrix, inserted after nvd-api-cve in the alphabetically sorted lists and appended to the nvd-api fetch matrices.

extract-*.yml is intentionally untouched — there is no extractor for CVE change history yet (nvd-api-cpematch is likewise absent from those matrices).

Testing

  • All .github/workflows/*.yml parse cleanly (yaml.safe_load)
  • No workflow run yet — see the prerequisites below

Notes / prerequisites

  1. Initialize the image first. fetch-nvd-api.yml starts with dotgit pull ghcr.io/<repo>:vuls-data-raw-nvd-api-cvehistory, so the Initialize workflow must be run once with kind=raw, target=nvd-api-cvehistory before the first fetch.
  2. Depends on vuls-data-update main. This workflow checks out MaineK00n/vuls-data-update at ref: main. feat(fetch/nvd/api/cvehistory): add CVE change history fetcher MaineK00n/vuls-data-update#899 targets nightly, so the job will fail with an unknown command until that lands in main.
  3. Data volume. ~2.2M files (~9GB uncompressed). archive-raw.yml uses a 1024MB layer threshold; depending on the compressed size this may trip the check. Worth measuring after the first successful fetch and adjusting the threshold / gc parameters if needed.

Checklist

  • YAML syntax verified
  • vuls-data-raw-nvd-api-cvehistory image initialized
  • vuls-data-update fetch nvd-api-cvehistory available on main
  • First fetch run succeeds within the runner's disk / layer-size limits

Register vuls-data-raw-nvd-api-cvehistory in the fetch / archive / backup /
gc / restore matrices, alongside the existing nvd-api-* raw sources.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 31, 2026 03:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Registers the new raw source nvd-api-cvehistory (NVD CVE Change History API 2.0) across the repository’s GitHub Actions pipeline so it participates in the same fetch/archive/backup/gc/restore flows as the other nvd-api-* sources.

Changes:

  • Adds nvd-api-cvehistory to the NVD API fetch workflow (workflow_dispatch choices) and the fetch-all NVD API matrix.
  • Adds vuls-data-raw-nvd-api-cvehistory to archive, backup (daily/weekly/monthly), GC, and restore target lists.
  • Adds a gc-raw.yml entry for vuls-data-raw-nvd-api-cvehistory with the same pack settings as other nvd-api-* images.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.

Show a summary per file
File Description
.github/workflows/fetch-nvd-api.yml Adds nvd-api-cvehistory as an allowed workflow_dispatch target for the NVD API fetch workflow.
.github/workflows/fetch-all.yml Extends the fetch-nvd-api job matrix to include nvd-api-cvehistory.
.github/workflows/archive-raw.yml Adds nvd-api-cvehistory to the raw archive matrix.
.github/workflows/archive.yml Adds vuls-data-raw-nvd-api-cvehistory to the archived image list.
.github/workflows/backup-daily.yml Includes vuls-data-raw-nvd-api-cvehistory in daily raw backups.
.github/workflows/backup-weekly.yml Includes vuls-data-raw-nvd-api-cvehistory in weekly raw backups.
.github/workflows/backup-monthly.yml Includes vuls-data-raw-nvd-api-cvehistory in monthly raw backups.
.github/workflows/gc.yml Adds vuls-data-raw-nvd-api-cvehistory to the GC target list.
.github/workflows/gc-raw.yml Adds a GC raw pack configuration entry for vuls-data-raw-nvd-api-cvehistory.
.github/workflows/restore-all.yml Adds vuls-data-raw-nvd-api-cvehistory to the restore-all image list.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@MaineK00n
MaineK00n marked this pull request as ready for review July 31, 2026 03:52
@MaineK00n MaineK00n self-assigned this Jul 31, 2026
@MaineK00n
MaineK00n requested a review from shino July 31, 2026 03:53

@shino shino left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎊

@MaineK00n
MaineK00n merged commit efc84e3 into main Jul 31, 2026
1 check passed
@MaineK00n
MaineK00n deleted the MaineK00n/fetch-nvd-api-cvehistory branch July 31, 2026 06:41
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.

3 participants