mirror of
https://github.com/SonarSource/sonarqube-quality-gate-action.git
synced 2026-09-23 21:48:32 +00:00
GitHub actions yaml is invalid without the value definition. Second, the action does not return the output without this definition.
23 lines
684 B
YAML
23 lines
684 B
YAML
name: SonarQube Quality Gate Check
|
|
description: >
|
|
Check if a project / analysis passed the Quality Gate check
|
|
branding:
|
|
icon: check
|
|
color: green
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- id: quality-gate-check
|
|
run: $GITHUB_ACTION_PATH/script/check-quality-gate.sh ${{ inputs.scanMetadataReportFile }}
|
|
shell: bash
|
|
inputs:
|
|
scanMetadataReportFile:
|
|
description: Location of the scanner metadata report file
|
|
required: false
|
|
default: .scannerwork/report-task.txt
|
|
outputs:
|
|
quality-gate-status:
|
|
description: >
|
|
The resulting Quality Gate Status value of PASSED, WARN or FAILED
|
|
value: ${{ steps.quality-gate-check.outputs.quality-gate-status }}
|