페이지 트리

이 문서는 SonarQube Pull-request Decoration (GitHub Integration) 가이드를 공유하기 위해 작성되었다.


도구명Sonarqube Enterprise, Github
버전

Sonarqube: 8.9.8

비고




Github App 만들기

  • Github 상단 Profile → Settings 선택


  • Developer settings → New GitHub App 선택


  • 해당 값들 입력

  1. GitHub App Name : 임의
  2. Homepage URL : 회사 Url
  3. Callback URL : https://[Sonarqube.base.url]
  4. Webhook URL : https://[Sonarqube.base.url]
  5. 저장소 권한
  6. Where can this GitHub App be installed? - Any account


Github App 설정 및 연동

  • Github App 설정하기
  1. App ID, Client ID 저장
  2. Client Secrets: Generate a new client secret 선택 후 해당 값 저장
  3. Private Keys: Generate a Private Key 선택 후 해당 값 메모장에 복사


  • Github App 설치: Settings → Developer Settings → GitHub Apps → Install App 



  • Sonarqube 웹페이지 → Administration →  Configuration →  General Settings →  DevOps Platform Integrations →  GitHub
    Enterprise인 경우: Administration →  Configuration → ALM integrations
  1. Create configuration 선택
  2. Configuration Name (Enterprise and Data Center Edition only): 임의
    GitHub URL:  회사 Github: https://github.company.com/api/v3  공용 Github: https://api.github.com/ 
    GitHub App ID:   'Github App 설정하기` 의 App ID
    Client ID:   'Github App 설정하기` 의 Client ID
    Client secret:  'Github App 설정하기` 의 Client secret
    Private Key:  'Github App 설정하기` 의 Private Key


  • 확인

참조 링크

공식문서


  • 레이블 없음