From a815d1b1a0e2a03b4f19addd35f8320d804b76fb Mon Sep 17 00:00:00 2001 From: spbolton Date: Thu, 5 Sep 2024 14:47:29 +0100 Subject: [PATCH] ci: Fix SonarQube timeout property (#29886) (#29887) ### Proposed Changes * Fix the action to the current commit https://github.com/sonarsource/sonarqube-quality-gate-action/tree/dc2f7b0dd95544cd550de3028f89193576e958b9 for reproducability instead of auto updting any change to master branch. Includes the timeout change in this PR https://github.com/SonarSource/sonarqube-quality-gate-action/pull/50 * * set the new pollingTimeoutSec to 600 (e.g. 10 minutes) To test, check the logs of the build run in the sonarqube step and it should show the timeout passed in as "600" instead of "300" ### Checklist - [ ] Tests - [ ] Translations - [ ] Security Implications Contemplated (add notes if applicable) ### Additional Info This PR resolves #29886 (Fix SonarQube timeout property). ### Screenshots Original | Updated :-------------------------:|:-------------------------: ** original screenshot ** | ** updated screenshot ** --- .github/workflows/cicd_comp_sonarqube-phase.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cicd_comp_sonarqube-phase.yml b/.github/workflows/cicd_comp_sonarqube-phase.yml index e3d50e811a9e..58e0a89087c6 100644 --- a/.github/workflows/cicd_comp_sonarqube-phase.yml +++ b/.github/workflows/cicd_comp_sonarqube-phase.yml @@ -55,10 +55,10 @@ jobs: # Check SonarQube Quality Gate status - name: SonarQube Quality Gate check id: sonarqube-quality-gate-check - uses: sonarsource/sonarqube-quality-gate-action@master + uses: sonarsource/sonarqube-quality-gate-action@dc2f7b0dd95544cd550de3028f89193576e958b9 continue-on-error: ${{ github.repository != 'dotCMS/core' }} - timeout-minutes: 10 # Force step to fail after specific time with: + pollingTimeoutSec: 600 # 10 minutes scanMetadataReportFile: target/sonar/report-task.txt env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}