Update python:3.13.1-slim-bookworm Docker digest to f41a75c #926
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: SonarQube analysis | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
jobs: | |
sonarqube: | |
runs-on: ubuntu-latest | |
if: "${{ github.event.pull_request.head.repo.full_name == 'simao-silva/noip-renewer' }}" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.2.2 | |
with: | |
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | |
# Triggering SonarQube analysis as results of it are required by Quality Gate check | |
- uses: sonarsource/sonarqube-scan-action@v4.1.0 | |
env: | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} | |
# Check the Quality Gate status | |
- uses: sonarsource/sonarqube-quality-gate-action@v1.1.0 | |
timeout-minutes: 5 | |
env: | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} | |
# Output from the Quality Gate | |
# The possible outputs of the "quality-gate-status" variable are "PASSED", "WARN" or "FAILED" | |
- name: "Show SonarQube Quality Gate Status value" | |
if: always() # Run even if Quality Gate check failed | |
run: echo "The Quality Gate status is ${{ steps.sonarqube-quality-gate-check.outputs.quality-gate-status }}" |