-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the Sonarqube quality gate action
- Loading branch information
1 parent
2a25639
commit 06df6dd
Showing
1 changed file
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,14 +62,16 @@ jobs: | |
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} | ||
- name: SonarQube Quality Gate check | ||
id: sonarqube-quality-gate-check | ||
uses: sonarsource/sonarqube-quality-gate-action@master | ||
uses: opsverseio/sonarqube-quality-gate-action@0.1.0 | ||
# Force to fail step after specific time. | ||
timeout-minutes: 5 | ||
env: | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} | ||
SET_SONAR_PROJECT_STATUS: true | ||
outputs: | ||
sonarcloud_output: ${{ steps.sonarqube-quality-gate-check.outputs.quality-gate-status }} | ||
quality_gate_project_status: ${{ steps.sonarqube-quality-gate-check.outputs.quality_gate_project_status }} | ||
|
||
opa: | ||
name: "🚧 Unit tests gate" | ||
|
@@ -80,7 +82,7 @@ jobs: | |
- sonarcloud | ||
steps: | ||
- name: "Print Output" | ||
run: echo ${{needs.sonarcloud.outputs.sonarcloud_output}} | ||
run: echo ${{needs.sonarcloud.outputs.quality_gate_project_status}} | ||
|
||
- name: "⏳ Validate quality using OPA" | ||
uses: OpsVerseIO/[email protected] | ||
|