Skip to content

Commit

Permalink
Update the Sonarqube quality gate action
Browse files Browse the repository at this point in the history
  • Loading branch information
aravind-opsverse authored Feb 15, 2024
1 parent 2a25639 commit 06df6dd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci-cd-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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]
Expand Down

0 comments on commit 06df6dd

Please sign in to comment.