File tree Expand file tree Collapse file tree
.github/actions/sonarcloud Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,13 @@ inputs:
1010 description : SonarCloud token (SONAR_TOKEN secret).
1111 required : true
1212
13+ qualitygate-wait :
14+ description : >
15+ Wait for Quality Gate result and fail if new issues are introduced.
16+ Set to 'true' to block merges when new SonarQube issues are found.
17+ required : false
18+ default : ' true'
19+
1320 # ── Coverage Artifacts ──────────────────────────────────────────────────
1421 go-reports-artifact :
1522 description : Artifact name for Go reports (empty = skip).
@@ -183,6 +190,9 @@ runs:
183190 id : sonar
184191 uses : SonarSource/sonarqube-scan-action@v6
185192 continue-on-error : true
193+ with :
194+ args : >
195+ -Dsonar.qualitygate.wait=${{ inputs.qualitygate-wait }}
186196 env :
187197 GITHUB_TOKEN : ${{ env.GITHUB_TOKEN }}
188198 SONAR_TOKEN : ${{ inputs.sonar-token }}
@@ -206,3 +216,4 @@ runs:
206216 else
207217 echo "✅ SonarCloud Scan erfolgreich"
208218 fi
219+
You can’t perform that action at this time.
0 commit comments