Skip to content

feat: add build-time OSV and GHSA feed generator and schema validation - #1

Merged
kwkwan merged 1 commit into
mainfrom
kwkwan/phase2-stage3-osv-feeds
Nov 24, 2026
Merged

kwkwan merged 1 commit into
mainfrom
kwkwan/phase2-stage3-osv-feeds

Conversation

@kwkwan

@kwkwan kwkwan commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

This pull request implements Phase 2, Stage 3 (riboseinc/provenance#8, under master issue riboseinc/provenance#1).

Summary

  • Adds the tracked-package registry in _data/packages.yml covering Tier A packages (rnpgp/rnp, metanorma/metanorma, riboseinc/cla, ribosei/identity) with PURLs and feed paths aligned with ribosei/provenance-instance.
  • Adds scripts/generate_feeds.rb to emit OSV-schema JSON records (/feeds/osv/<CVE-ID>.json), per-package OSV feeds (/feeds/osv/<package>.json), per-package GHSA feeds (/feeds/ghsa/<package>.json), and index manifests (/feeds/osv/index.json, /feeds/ghsa/index.json) from _data/cves, _advisories, and _data/packages.yml.
  • Vendors the official OSV JSON Schema in schemas/osv-schema.json and adds scripts/validate_feeds.rb using json_schemer so malformed advisories fail the build before publication.
  • Wires feed generation, schema validation, and test/test_feeds.rb into Makefile and .github/workflows/build_deploy.yml.

@kwkwan
kwkwan merged commit fcc4eed into main Nov 24, 2026
3 checks passed
@kwkwan
kwkwan deleted the kwkwan/phase2-stage3-osv-feeds branch November 24, 2026 05:04
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