aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws/src
diff options
context:
space:
mode:
authorBelen Pruvost <belen.pruvost@sonarsource.com>2022-07-14 10:57:26 +0200
committersonartech <sonartech@sonarsource.com>2022-07-25 20:03:57 +0000
commit34e8dfb83433a7a2d016131c9f1be7373bffb7be (patch)
tree547fe118621e11536f32a7c6d74f68220844b7e5 /sonar-ws/src
parentd66a7c69cbef6ee9647ac0233d915b2863c06338 (diff)
downloadsonarqube-34e8dfb83433a7a2d016131c9f1be7373bffb7be.tar.gz
sonarqube-34e8dfb83433a7a2d016131c9f1be7373bffb7be.zip
SONAR-16371 - Implement pull_taint endpoint
Diffstat (limited to 'sonar-ws/src')
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/issue/IssuesWsParameters.java1
-rw-r--r--sonar-ws/src/main/protobuf/ws-issues.proto19
2 files changed, 20 insertions, 0 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/issue/IssuesWsParameters.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/issue/IssuesWsParameters.java
index 11663d66446..aee04974a89 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/issue/IssuesWsParameters.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/issue/IssuesWsParameters.java
@@ -39,6 +39,7 @@ public class IssuesWsParameters {
public static final String ACTION_SET_TYPE = "set_type";
public static final String ACTION_BULK_CHANGE = "bulk_change";
public static final String ACTION_PULL = "pull";
+ public static final String ACTION_PULL_TAINT = "pull_taint";
public static final String PARAM_ISSUE = "issue";
public static final String PARAM_COMMENT = "comment";
diff --git a/sonar-ws/src/main/protobuf/ws-issues.proto b/sonar-ws/src/main/protobuf/ws-issues.proto
index be5c462de27..d5ebfd2fe75 100644
--- a/sonar-ws/src/main/protobuf/ws-issues.proto
+++ b/sonar-ws/src/main/protobuf/ws-issues.proto
@@ -267,5 +267,24 @@ message IssueLite {
}
+// Response of GET api/issues/pull_taint
+message TaintVulnerabilityPullQueryTimestamp {
+ required int64 queryTimestamp = 1;
+}
+message TaintVulnerabilityLite {
+ required string key = 1;
+ optional int64 creationDate = 2;
+ optional bool resolved = 3;
+ optional string ruleKey = 4;
+ optional string severity = 5;
+ optional string type = 6;
+ optional Location mainLocation = 7;
+ optional bool closed = 8;
+ repeated Flow flows = 9;
+ optional bool assignedToSubscribedUser = 10;
+}
+message Flow {
+ repeated Location locations = 1;
+}