diff options
author | Aurelien Poscia <aurelien.poscia@sonarsource.com> | 2023-08-23 21:34:04 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-08-24 20:03:09 +0000 |
commit | 36cd174168e89cf2b62a567c85d215d22869e729 (patch) | |
tree | e1fc223d6c19b8388cae6f797d39240e3d247a85 /sonar-ws/src | |
parent | 52294a5de285dfe587240633d9b4bcfd4caa2d09 (diff) | |
download | sonarqube-36cd174168e89cf2b62a567c85d215d22869e729.tar.gz sonarqube-36cd174168e89cf2b62a567c85d215d22869e729.zip |
SONAR-19759 fix SSF-423 + ITs
Diffstat (limited to 'sonar-ws/src')
-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; + } } |