aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorAurelien Poscia <aurelien.poscia@sonarsource.com>2023-01-12 10:45:29 +0100
committersonartech <sonartech@sonarsource.com>2023-01-13 20:02:47 +0000
commita6ba3ff821bbc2d5ed79f3bea5e78bd257c0cb37 (patch)
tree71e81e286a0f8dcf6c90097f56cdcb0f4595b359 /server
parentd201300a097e97361d6dd49a3054be3c5e532b1e (diff)
downloadsonarqube-a6ba3ff821bbc2d5ed79f3bea5e78bd257c0cb37.tar.gz
sonarqube-a6ba3ff821bbc2d5ed79f3bea5e78bd257c0cb37.zip
SONAR-12243 Do not require 'commit statuses' GitHub App permission
Diffstat (limited to 'server')
-rw-r--r--server/sonar-alm-client/src/main/java/org/sonar/alm/client/github/GithubApplicationClientImpl.java1
-rw-r--r--server/sonar-alm-client/src/test/java/org/sonar/alm/client/github/GithubApplicationClientImplTest.java2
2 files changed, 0 insertions, 3 deletions
diff --git a/server/sonar-alm-client/src/main/java/org/sonar/alm/client/github/GithubApplicationClientImpl.java b/server/sonar-alm-client/src/main/java/org/sonar/alm/client/github/GithubApplicationClientImpl.java
index 3ac26c2d00b..eb7a4718a34 100644
--- a/server/sonar-alm-client/src/main/java/org/sonar/alm/client/github/GithubApplicationClientImpl.java
+++ b/server/sonar-alm-client/src/main/java/org/sonar/alm/client/github/GithubApplicationClientImpl.java
@@ -100,7 +100,6 @@ public class GithubApplicationClientImpl implements GithubApplicationClient {
Map<String, String> permissions = new HashMap<>();
permissions.put("checks", WRITE_PERMISSION_NAME);
permissions.put("pull_requests", WRITE_PERMISSION_NAME);
- permissions.put("statuses", READ_PERMISSION_NAME);
permissions.put("metadata", READ_PERMISSION_NAME);
String endPoint = "/app";
diff --git a/server/sonar-alm-client/src/test/java/org/sonar/alm/client/github/GithubApplicationClientImplTest.java b/server/sonar-alm-client/src/test/java/org/sonar/alm/client/github/GithubApplicationClientImplTest.java
index fccb783fffd..ed823e73d4b 100644
--- a/server/sonar-alm-client/src/test/java/org/sonar/alm/client/github/GithubApplicationClientImplTest.java
+++ b/server/sonar-alm-client/src/test/java/org/sonar/alm/client/github/GithubApplicationClientImplTest.java
@@ -163,7 +163,6 @@ public class GithubApplicationClientImplTest {
+ " \"permissions\": {\n"
+ " \"checks\": \"read\",\n"
+ " \"metadata\": \"read\",\n"
- + " \"statuses\": \"read\",\n"
+ " \"pull_requests\": \"read\"\n"
+ " }\n"
+ "}";
@@ -183,7 +182,6 @@ public class GithubApplicationClientImplTest {
+ " \"permissions\": {\n"
+ " \"checks\": \"write\",\n"
+ " \"metadata\": \"read\",\n"
- + " \"statuses\": \"read\",\n"
+ " \"pull_requests\": \"write\"\n"
+ " }\n"
+ "}";