diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml index 040160bf..176cd5cd 100644 --- a/.github/workflows/sonarqube.yml +++ b/.github/workflows/sonarqube.yml @@ -31,7 +31,6 @@ jobs: # previous LTS version SONAR_SERVER_VERSION: 9.9.7.96285 SONAR_PLUGIN_API_VERSION: 9.14.0.375 - SONAR_TOKEN: $SONAR_TOKEN steps: - name: Decide the ref to check out uses: haya14busa/action-cond@v1 @@ -65,6 +64,7 @@ jobs: -Dsonar.projectKey=com.github.spotbugs:sonar-findbugs-plugin \ -Dsonar.organization=spotbugs \ -Dsonar.host.url=https://sonarcloud.io \ + -Dsonar.token=$SONAR_TOKEN \ ${PR_NUMBER:+ -Dsonar.pullrequest.key=$PR_NUMBER -Dsonar.pullrequest.branch=$PR_BRANCH } env: GITHUB_TOKEN: ${{ secrets.PAT_TO_FORK }} diff --git a/pom.xml b/pom.xml index a7e3e1c2..7b62b6a7 100644 --- a/pom.xml +++ b/pom.xml @@ -71,16 +71,6 @@ 8 - - - - org.sonarsource.api.plugin - sonar-plugin-api - 9.14.0.375 - - - -