Skip to content

Ingest upstream vex sources#2035

Open
Dboy0ZDev wants to merge 10 commits into
mainfrom
Ingest-Upstream-VEX-sources
Open

Ingest upstream vex sources#2035
Dboy0ZDev wants to merge 10 commits into
mainfrom
Ingest-Upstream-VEX-sources

Conversation

@Dboy0ZDev

Copy link
Copy Markdown
Collaborator

Related to Issue: #1977

Copilot AI review requested due to automatic review settings May 20, 2026 20:12

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

This PR adds initial support for ingesting upstream OpenVEX sources by (1) fetching OpenVEX JSON documents from a GitHub repository and (2) transforming OpenVEX statements into DevGuard VEX rules, alongside a small adjustment to CycloneDX VEX rule path-pattern creation.

Changes:

  • Add OpenVEX-to-VEXRule transformation logic and event-type mapping in VEXRuleService.
  • Add GitHub repository crawling + raw-file download to collect OpenVEX JSON documents in scanService.
  • Introduce a normalized VexReportOpenVEX wrapper with validation helpers.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
services/vex_rule_service.go Adds OpenVEX parsing + status mapping; adjusts CycloneDX-derived path-pattern building
services/vex_rule_service_test.go Adds unit tests for OpenVEX parsing behavior
services/scan_service.go Adds GitHub repo traversal and raw download helper to fetch OpenVEX JSON files
services/scan_service_test.go Adds tests for GitHub OpenVEX fetching via a mocked GitHub API
normalize/sbom_graph.go Introduces VexReportOpenVEX and basic OpenVEX report validation

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

Comment thread services/vex_rule_service.go
Comment thread services/vex_rule_service.go
Comment thread services/vex_rule_service.go Outdated
Comment thread services/vex_rule_service.go Outdated
Comment thread normalize/sbom_graph.go
Comment thread services/scan_service.go Outdated
Comment thread services/scan_service.go Outdated
Comment thread services/scan_service.go Outdated
Comment thread services/scan_service.go Outdated
@Dboy0ZDev Dboy0ZDev requested a review from timbastin May 21, 2026 10:42
Comment thread services/scan_service.go Outdated
Comment thread normalize/sbom_graph.go
@Dboy0ZDev Dboy0ZDev force-pushed the Ingest-Upstream-VEX-sources branch 2 times, most recently from 64ed7d2 to fa8a50f Compare June 1, 2026 07:43
@Dboy0ZDev Dboy0ZDev force-pushed the Ingest-Upstream-VEX-sources branch from f6ff53a to a80aca4 Compare June 22, 2026 11:51
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