diff --git a/.github/actions/sonar/analyze/action.yml b/.github/actions/sonar/analyze/action.yml index c1042feb..2d8fe2f7 100644 --- a/.github/actions/sonar/analyze/action.yml +++ b/.github/actions/sonar/analyze/action.yml @@ -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 @@ -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 }}