Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Diff api: Include scanner metadata in Diff API response #103

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

priyawadhwa
Copy link
Contributor

We want to return the scanner type and version in the response.

We want to return the scanner type and version in the response.

Signed-off-by: Priya Wadhwa <[email protected]>
@priyawadhwa priyawadhwa enabled auto-merge (squash) January 31, 2024 23:17
@priyawadhwa priyawadhwa merged commit 92100b8 into chainguard-dev:main Jan 31, 2024
10 checks passed
@priyawadhwa priyawadhwa deleted the grype-version branch January 31, 2024 23:19
@@ -404,6 +404,9 @@ message PackageReference {
message VulnerabilitiesDiff {
repeated VulnerabilityReference added = 1;
repeated VulnerabilityReference removed = 2;
chainguard.platform.tenant.Scanner scanner = 3;
// vulnerability_db_last_build_time holds the time when the vulnerability database was built last time.
google.protobuf.Timestamp vulnerability_db_last_build_time = 4;
Copy link
Member

@hectorj2f hectorj2f Feb 1, 2024

Choose a reason for hiding this comment

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

I was thinking more of having:

message VulnScannerDiff {
  ChangedVulnScanner changed = 1;
}

message ChangedVulnScanner {
  message ChangedVulnScannerName {
    string current = 1;
    string previous = 2;
  }
  ChangedVulnScannerName changedName = 1;

  message ChangedVulnScannerVersion {
    string current = 1;
    string previous = 2;
  }
  ChangedVulnScannerVersion changedVersion = 2;

  message ChangedVulnScannerVulnerabilityDbLastBuildTime {
    google.protobuf.Timestamp current = 1;
    google.protobuf.Timestamp previous = 2;
  }
  ChangedVulnScannerVulnerabilityDbLastBuildTime changedVulnerabilityDbLastBuildTime = 2;
}

where VulnScannerDiff is in VulnerabilitiesDiff .

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