mc1arke / sonarqube-community-branch-plugin

A plugin that allows branch analysis and pull request decoration in the Community version of Sonarqube

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No token could be found with access to the requested repository using the given application ID and key

winterrmute opened this issue · comments

Describe the bug
I am trying to configure the plugin in my sonarqube, but I can't figure out what is meant by this message. This is appearing while configuring the project for PR decoration.

To Reproduce
Steps to reproduce the behavior:

  1. Create github app
  2. import projects
  3. configure repository analyzing
  4. Message appears: "We've detected an issue with your configuration. Your SonarQube instance won't be able to perform any pull request decoration."
  5. Check the DevOps Platform Integration: Message appears: "You have the following errors in your configuration: No token could be found with access to the requested repository using the given application ID and key"

Expected behavior
PR decoration works as expected

Software Versions

  • SonarQube Version: 9.9-LTS
  • Plugin Version: 1.14.0
  • environment: self-hosted K3S

Web-Logs

2023.12.01 11:39:42 DEBUG web[AYwknzBDji14PlvBAAgv][s.n.w.p.h.HttpURLConnection] sun.net.www.MessageHeader@3dd82c6d20 pairs: {null: HTTP/1.1 200 OK}{Server: GitHub.com}{Date: Fri, 01 Dec 2023 10:39:42 GMT}{Content-Type: application/json; charset=utf-8}{Content-Length: 1692}{Cache-Control: public, max-age=60, s-maxage=60}{Vary: Accept}{ETag: "daf077e3e4e7e478adaa32919a4499e86602bfa69cd0b015a913fd370f9eb786"}{X-GitHub-Media-Type: github.v3; param=machine-man-preview; format=json}{x-github-api-version-selected: 2022-11-28}{Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset}{Access-Control-Allow-Origin: *}{Strict-Transport-Security: max-age=31536000; includeSubdomains; preload}{X-Frame-Options: deny}{X-Content-Type-Options: nosniff}{X-XSS-Protection: 0}{Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin}{Content-Security-Policy: default-src 'none'}{Vary: Accept-Encoding, Accept, X-Requested-With}{X-GitHub-Request-Id: C068:9157:203C2861:20A45951:6569B7EE}
2023.12.01 11:39:42 DEBUG web[AYwknzBDji14PlvBAAgv][s.n.w.p.h.HttpURLConnection] sun.net.www.MessageHeader@5853a9136 pairs: {POST /app/installations/44516443/access_tokens HTTP/1.1: null}{Accept: application/vnd.github.machine-man-preview+json}{Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE3MDE0MjcxNzIsImV4cCI6MTcwMTQyNzI5MiwiaXNzIjoiNjU1OTA1In0.Zkxza4oEIhWuNzu-taChOBqJpgxyAUKdmiDSKp4O9ZoOSFw3CuX00qQn720jxkgzH8qA2eAy0TjmnV5lEQpCdZ6hdHm8mO_56lC__zpPA96qvdqT91NISQWBMULj9-gYZjTVpwoza3WLCHx7KZlavnxEma1aHMU3p6dd1NfGvAehSJ03gj9gL9M-weQEEmjaaqiHK9_qKEl-xu5__sjy_hQDsODfqyKUBjbC7gWgUCc-fQlePAKpfdLQB-XG1_BZ1sIEfeyigTOGmyevG9hhlv1wqwG52R8jqQMdWh1w0kff20kmQzBZSQYcRT5s2ZSrl7giFzXawbtkidfoc6B5VA}{User-Agent: Java/17.0.9}{Host: api.github.com}{Connection: keep-alive}
2023.12.01 11:39:42 DEBUG web[AYwknzBDji14PlvBAAgv][s.n.w.p.h.HttpURLConnection] sun.net.www.MessageHeader@73c20d3c20 pairs: {null: HTTP/1.1 201 Created}{Server: GitHub.com}{Date: Fri, 01 Dec 2023 10:39:42 GMT}{Content-Type: application/json; charset=utf-8}{Content-Length: 257}{Cache-Control: public, max-age=60, s-maxage=60}{Vary: Accept}{ETag: "9a7ce247a8dae56bbb7ffe48ee56821862f9f64fcbbd625fcf7c78489fc5f9a6"}{X-GitHub-Media-Type: github.v3; param=machine-man-preview; format=json}{x-github-api-version-selected: 2022-11-28}{Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset}{Access-Control-Allow-Origin: *}{Strict-Transport-Security: max-age=31536000; includeSubdomains; preload}{X-Frame-Options: deny}{X-Content-Type-Options: nosniff}{X-XSS-Protection: 0}{Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin}{Content-Security-Policy: default-src 'none'}{Vary: Accept-Encoding, Accept, X-Requested-With}{X-GitHub-Request-Id: C068:9157:203C2929:20A45A06:6569B7EE}
2023.12.01 11:39:42 DEBUG web[AYwknzBDji14PlvBAAgv][s.n.w.p.h.HttpURLConnection] sun.net.www.MessageHeader@2032ef036 pairs: {GET /installation/repositories HTTP/1.1: null}{Accept: application/vnd.github.machine-man-preview+json}{Authorization: Bearer ghs_HVDgoILaEipVQA28z4PY4PqtPBC6Sx24EuPK}{User-Agent: Java/17.0.9}{Host: api.github.com}{Connection: keep-alive}
2023.12.01 11:39:42 DEBUG web[AYwknzBDji14PlvBAAgv][s.n.w.p.h.HttpURLConnection] sun.net.www.MessageHeader@5c75142c25 pairs: {null: HTTP/1.1 200 OK}{Server: GitHub.com}{Date: Fri, 01 Dec 2023 10:39:42 GMT}{Content-Type: application/json; charset=utf-8}{Content-Length: 69311}{Cache-Control: private, max-age=60, s-maxage=60}{Vary: Accept, Authorization, Cookie, X-GitHub-OTP}{ETag: "f77b1086ee2f43a9be24cec00fe5a7d1966e58cdbc230d6da4d6ad96ba264058"}{X-GitHub-Media-Type: github.v3; param=machine-man-preview; format=json}{x-github-api-version-selected: 2022-11-28}{X-RateLimit-Limit: 5000}{X-RateLimit-Remaining: 4982}{X-RateLimit-Reset: 1701429615}{X-RateLimit-Used: 18}{X-RateLimit-Resource: core}{Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset}{Access-Control-Allow-Origin: *}{Strict-Transport-Security: max-age=31536000; includeSubdomains; preload}{X-Frame-Options: deny}{X-Content-Type-Options: nosniff}{X-XSS-Protection: 0}{Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin}{Content-Security-Policy: default-src 'none'}{Vary: Accept-Encoding, Accept, X-Requested-With}{X-GitHub-Request-Id: C068:9157:203C29EC:20A45AE5:6569B7EE}

I appreciate any help! Thank you!

I had a typo in project name... sorry, can be closed