Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.kohsuke</groupId>
<artifactId>cortexapps-github-api</artifactId>
<version>1.324</version>
<version>1.325</version>
<name>GitHub API for Java</name>
<url>https://github-api.kohsuke.org/</url>
<description>GitHub API for Java</description>
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/org/kohsuke/github/GHCodeScanningAlert.java
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ static class Rule {
private String full_description;
private String[] tags;
private String help;
private String security_severity_level;

/**
* Id of rule
Expand Down Expand Up @@ -229,6 +230,8 @@ public String[] getTags() {
public String getHelp() {
return help;
}

public String getSecuritySeverityLevel() { return security_severity_level; }
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public void testListCodeScanningAlerts() {
assertThat(rule.getId(), not((Object) null));
assertThat(rule.getName(), not((Object) null));
assertThat(rule.getSeverity(), not((Object) null));
assertThat(rule.getSecuritySeverityLevel(), not((Object) null));

// Act - Search by filtering on alert status
List<GHCodeScanningAlert> openAlerts = repo.listCodeScanningAlerts(GHCodeScanningAlertState.OPEN)
Expand Down
Loading