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

WAC-1884 : add ignored vulnerabilities to agent-api v2.9.9.87 #93

Merged
merged 2 commits into from
Aug 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import java.io.Serializable;
import java.util.Collection;
import java.util.HashSet;
import java.util.LinkedList;

/**
Expand All @@ -46,6 +47,12 @@ public class ResourceInfo implements Serializable {
*/
private String sha1;
private Collection<VulnerabilityInfo> vulnerabilities;
/**
*
* @since 2.9.9.87
*/
private Collection<String> ignoredVulnerabilities;

private String homepageUrl;
private String description;
/**
Expand All @@ -68,6 +75,7 @@ public class ResourceInfo implements Serializable {
public ResourceInfo() {
licenses = new LinkedList<>();
vulnerabilities = new LinkedList<>();
ignoredVulnerabilities = new HashSet<>();
}

/**
Expand Down Expand Up @@ -158,6 +166,14 @@ public void setVulnerabilities(Collection<VulnerabilityInfo> vulnerabilities) {
this.vulnerabilities = vulnerabilities;
}

public Collection<String> getIgnoredVulnerabilities() {
return ignoredVulnerabilities;
}

public void setIgnoredVulnerabilities(Collection<String> ignoredVulnerabilities) {
this.ignoredVulnerabilities = ignoredVulnerabilities;
}

public String getHomepageUrl() {
return homepageUrl;
}
Expand Down