Update sonar-project.properties #10
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: | |
push: | |
branches: | |
- main | |
jobs: | |
sonarqube-analysis: | |
name: SonarQube Analysis | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Java | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'temurin' # Puedes cambiar a 'zulu' u otra distribución si lo prefieres | |
java-version: '11' | |
- name: SonarQube Scan | |
uses: sonarsource/sonarqube-scan-action@master | |
env: | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
SONAR_HOST_URL: http://20.55.20.115:9000 | |
# Si deseas fallar el job cuando la Puerta de Calidad (Quality Gate) falle, descomenta las siguientes líneas. | |
# Esto normalmente se utilizaría para evitar un despliegue si el análisis no pasa el control de calidad. | |
# - name: SonarQube Quality Gate | |
# uses: sonarsource/sonarqube-quality-gate-action@master | |
# timeout-minutes: 5 | |
# env: | |
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |