Skip to content

Commit f2941fe

Browse files
Merge pull request #32 from cortexapps/make-severity-public
Make security level public
2 parents ab4ae18 + ce4b788 commit f2941fe

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<modelVersion>4.0.0</modelVersion>
33
<groupId>org.kohsuke</groupId>
44
<artifactId>cortexapps-github-api</artifactId>
5-
<version>1.325</version>
5+
<version>1.326</version>
66
<name>GitHub API for Java</name>
77
<url>https://github-api.kohsuke.org/</url>
88
<description>GitHub API for Java</description>

src/main/java/org/kohsuke/github/GHCodeScanningAlert.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,15 @@ public String getRuleName() {
130130
return rule.name;
131131
}
132132

133+
/**
134+
* Get the code scanning security severity level
135+
*
136+
* @return the scanningSecurityLevel
137+
*/
138+
public String getScanningSecurityLevel() {
139+
return rule.security_severity_level;
140+
}
141+
133142
/**
134143
* Most recent instance of the alert
135144
*

0 commit comments

Comments
 (0)