Update .forgejo/workflows/sonar.yml
Some checks failed
SonarQube Scan / SonarQube Trigger (push) Failing after 13s
Some checks failed
SonarQube Scan / SonarQube Trigger (push) Failing after 13s
This commit is contained in:
parent
a7e933ca95
commit
2ca757213e
1 changed files with 16 additions and 1 deletions
|
@ -25,3 +25,18 @@ jobs:
|
||||||
env:
|
env:
|
||||||
SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }}
|
SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }}
|
||||||
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
|
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
|
||||||
|
# Check the Quality Gate status.
|
||||||
|
- name: SonarQube Quality Gate check
|
||||||
|
id: sonarqube-quality-gate-check
|
||||||
|
uses: sonarsource/sonarqube-quality-gate-action@master
|
||||||
|
with:
|
||||||
|
pollingTimeoutSec: 600
|
||||||
|
env:
|
||||||
|
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
|
||||||
|
SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }} #OPTIONAL
|
||||||
|
|
||||||
|
# Optionally you can use the output from the Quality Gate in another step.
|
||||||
|
# The possible outputs of the `quality-gate-status` variable are `PASSED`, `WARN` or `FAILED`.
|
||||||
|
- name: "Show SonarQube Quality Gate Status value"
|
||||||
|
run: echo "The Quality Gate status is ${{ steps.sonarqube-quality-gate-check.outputs.quality-gate-status }}"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue