mirror of
https://github.com/SonarSource/sonarqube-quality-gate-action.git
synced 2026-09-23 13:38:32 +00:00
Add a polling timeout (#50)
The property timeout-minutes in a GitHub step is not supported in composed actions. So the workaround to stop the waiting for finishing the sonar scan is not working in such cases. To fix this issue, a polling timeout variable was introduced, which stops the waiting if the timeout is reached.
This commit is contained in:
+5
-1
@@ -8,13 +8,17 @@ runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- id: quality-gate-check
|
||||
run: $GITHUB_ACTION_PATH/script/check-quality-gate.sh ${{ inputs.scanMetadataReportFile }}
|
||||
run: $GITHUB_ACTION_PATH/script/check-quality-gate.sh "${{ inputs.scanMetadataReportFile }}" "${{ inputs.pollingTimeoutSec }}"
|
||||
shell: bash
|
||||
inputs:
|
||||
scanMetadataReportFile:
|
||||
description: Location of the scanner metadata report file
|
||||
required: false
|
||||
default: .scannerwork/report-task.txt
|
||||
pollingTimeoutSec:
|
||||
description: "The maximum time (in seconds) to poll for SonarQube's Quality Gate status. Default: 300."
|
||||
required: false
|
||||
default: "300"
|
||||
outputs:
|
||||
quality-gate-status:
|
||||
description: >
|
||||
|
||||
Reference in New Issue
Block a user