Hello!
I’m trying to setup Github PR decoration but I do not see any option for ALM integration. It’s not showing up under DevOps Platform Intergration configuration.
We have the Github app configured and installed and added the yaml file for PR. I’m not sure what we are missing to have the ALM option show in Sonarqube. Any thoughts on why this is missing?
- Sonarqube 9.5 Developer’s Edition
- Helm chart installed on K8 cluster
analyze-pr.yaml
name: Analyze pull request
on:
pull_request:
types: [opened, edited, reopened, synchronize]
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup sonarqube
uses: warchant/setup-sonar-scanner@v1
- name: 'Checkout repository on branch: ${{ github.REF }}'
uses: actions/checkout@v2
with:
ref: ${{ github.HEAD_REF }}
- name: Retrieve entire repository history
run: |
git fetch --prune --unshallow
- name: Run an analysis of the PR
env:
# to get access to secrets.SONAR_TOKEN, provide GITHUB_TOKEN
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: sonar-scanner
-Dsonar.host.url=${{ secrets.SONAR_URL }}
-Dsonar.login=${{ secrets.SONAR_TOKEN }}
-Dsonar.projectKey=${{ secrets.SONAR_PROJECT_KEY }}
-Dsonar.pullrequest.key=${{ github.event.number }}
-Dsonar.pullrequest.branch=${{ github.HEAD_REF }}
-Dsonar.pullrequest.base=${{ github.BASE_REF }}
-Dsonar.pullrequest.github.repository=${{ github.repository }}
-Dsonar.scm.provider=git
-Dsonar.java.binaries=/tmp