phwt/SonarQube Quality Gate Report
Retrieve quality gate result of an analysis
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| sonar-project-key | SonarQube project key | yes | — |
| sonar-host-url | SonarQube server URL | yes | — |
| sonar-token | SonarQube token for retrieving quality gate result | yes | — |
| github-token | GitHub Token for commenting on the pull request - not required if `disable-pr-comment` is set to `true` | no | — |
| pr-comment-title | Title for the pull request comment | no | SonarQube Quality Gate Result |
| disable-pr-comment | Disable commenting the quality gate result on the pull request | no | false |
| disable-step-summary | Disable outputting the quality gate result to the GitHub Actions step summary | no | false |
| fail-on-quality-gate-error | Set the action status to failed when quality gate status is `ERROR` | no | false |
| branch | Branch name to retrieve the quality gate result, mutually exclusive with `pull-request` input | no | — |
| pull-request | Pull request id to retrieve the quality gate result, mutually exclusive with `branch` input | no | — |
Outputs
| name | description |
|---|---|
| project-status | Project's quality gate status either as `OK` or `ERROR` |
| quality-gate-result | Quality gate of the latest analysis in JSON format |