Skip to content

Commit

Permalink
fix: sonarQube (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-perosa-zupit authored Apr 5, 2024
1 parent cead5d2 commit d7e70d5
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/actions/sonar/analyze/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ inputs:
WORKING_DIRECTORY:
required: true
type: string
SONAR_HOST_URL:
required: true
type: string
SONAR_TOKEN:
required: true
type: string
CHECK_QUALITY_GATE:
required: false
type: boolean
Expand Down Expand Up @@ -36,10 +42,10 @@ runs:
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
SONAR_TOKEN: ${{ inputs.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ inputs.SONAR_HOST_URL }}
with:
projectBaseDir: ${{ inputs.WORKING_DIRECTORY }}
args: >
-Dsonar.qualitygate.wait=${{ inputs.CHECK_QUALITY_GATE }}
-Dsonar.host.url=${{ secrets.SONAR_HOST_URL }} -Dsonar.login=${{ secrets.SONAR_TOKEN }}
-Dsonar.host.url=${{ inputs.SONAR_HOST_URL }} -Dsonar.login=${{ inputs.SONAR_TOKEN }}

0 comments on commit d7e70d5

Please sign in to comment.