]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-12243 Do not require 'commit statuses' GitHub App permission 3317/head
authorAurelien Poscia <aurelien.poscia@sonarsource.com>
Thu, 12 Jan 2023 09:45:29 +0000 (10:45 +0100)
committersonartech <sonartech@sonarsource.com>
Fri, 13 Jan 2023 20:02:47 +0000 (20:02 +0000)
server/sonar-alm-client/src/main/java/org/sonar/alm/client/github/GithubApplicationClientImpl.java
server/sonar-alm-client/src/test/java/org/sonar/alm/client/github/GithubApplicationClientImplTest.java

index 3ac26c2d00bc1cb79ffda64ef5e501a9bcf04623..eb7a4718a34158d18dd710b0f0149d75c8def653 100644 (file)
@@ -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";
index fccb783fffdeac612dd70ac009e42ee8f1a0b680..ed823e73d4b09a9be9c108696d02a8de4c97c78d 100644 (file)
@@ -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"
       + "}";