diff options
author | Aurelien Poscia <aurelien.poscia@sonarsource.com> | 2023-08-23 21:34:04 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-09-12 20:02:36 +0000 |
commit | 1dac34a098ade16d53bea8d72046f88b533d2ee2 (patch) | |
tree | a492f389ba8fb0a83ee741ccf24a0c01fad387af | |
parent | dbbae03edaec34168ecdea5508f07509f9f47cd8 (diff) | |
download | sonarqube-1dac34a098ade16d53bea8d72046f88b533d2ee2.tar.gz sonarqube-1dac34a098ade16d53bea8d72046f88b533d2ee2.zip |
SONAR-20452 SONAR-19759 fix SSF-423 + ITs
(cherry picked from commit 08141530600898864c20c2999831d0250ff431ad)
-rw-r--r-- | sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/AlmSettingsService.java | 1 | ||||
-rw-r--r-- | sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/CreateGithubRequest.java | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/AlmSettingsService.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/AlmSettingsService.java index b9d8597a6e2..4edec9b9c7b 100644 --- a/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/AlmSettingsService.java +++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/AlmSettingsService.java @@ -125,6 +125,7 @@ public class AlmSettingsService extends BaseService { .setParam("url", request.getUrl()) .setParam("clientId", request.getClientId()) .setParam("clientSecret", request.getClientSecret()) + .setParam("webhookSecret", request.getWebhookSecret()) .setMediaType(MediaTypes.JSON)).content(); } diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/CreateGithubRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/CreateGithubRequest.java index ef02ef668b2..843ab8306d0 100644 --- a/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/CreateGithubRequest.java +++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/CreateGithubRequest.java @@ -37,6 +37,7 @@ public class CreateGithubRequest { private String url; private String clientId; private String clientSecret; + private String webhookSecret; /** * This is a mandatory parameter. @@ -105,4 +106,14 @@ public class CreateGithubRequest { public String getClientSecret() { return clientSecret; } + + public CreateGithubRequest setWebhookSecret(@Nullable String webhookSecret) { + this.webhookSecret = webhookSecret; + return this; + } + + @CheckForNull + public String getWebhookSecret() { + return webhookSecret; + } } |