Skip to content

Commit

Permalink
ci: Fix SonarQube timeout property (#29886) (#29887)
Browse files Browse the repository at this point in the history
### 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
SonarSource/sonarqube-quality-gate-action#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 **
  • Loading branch information
spbolton authored and dsolistorres committed Sep 18, 2024
1 parent 9eee65d commit a815d1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cicd_comp_sonarqube-phase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit a815d1b

Please sign in to comment.