Skip to content

Commit 10fee6e

Browse files
[ANALYZE] Use the build action to perform the analysis
1 parent 1d429f2 commit 10fee6e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,11 @@ jobs:
200200
env:
201201
SONAR_HOST_URL: ${{ fromJSON(steps.secrets.outputs.vault).SONAR_HOST_URL }}
202202
SONAR_TOKEN: ${{ fromJSON(steps.secrets.outputs.vault).SONAR_TOKEN }}
203-
run: |
204-
PULL_REQUEST_SHA=$GIT_SHA1 mvn clean verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar --batch-mode --activate-profiles coverage --define maven.deploy.skip=true
203+
uses: SonarSource/ci-github-actions/build-maven@v1
204+
with:
205+
deploy: false
206+
artifactory-reader-role: private-reader # Override default public-reader
207+
artifactory-deployer-role: qa-deployer # Override default public-deployer
205208
- name: Build Java Custom Rules Example
206209
env:
207210
SONAR_HOST_URL: ${{ fromJSON(steps.secrets.outputs.vault).SONAR_HOST_URL }}

0 commit comments

Comments
 (0)