This commit is contained in:
@@ -6,44 +6,25 @@ on:
|
|||||||
- main
|
- main
|
||||||
|
|
||||||
|
|
||||||
# jobs:
|
|
||||||
# build:
|
|
||||||
# name: Build and analyze
|
|
||||||
# runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
# steps:
|
|
||||||
# - uses: actions/checkout@v4
|
|
||||||
# with:
|
|
||||||
# fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
|
||||||
# - uses: sonarsource/sonarqube-scan-action@master
|
|
||||||
# env:
|
|
||||||
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
||||||
# SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
|
||||||
# # If you wish to fail your job when the Quality Gate is red, uncomment the
|
|
||||||
# # following lines. This would typically be used to fail a deployment.
|
|
||||||
# # - uses: sonarsource/sonarqube-quality-gate-action@master
|
|
||||||
# # timeout-minutes: 5
|
|
||||||
# # env:
|
|
||||||
# # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
sonarqube:
|
build:
|
||||||
name: SonarQube Trigger
|
name: Build and analyze
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- run: apt update
|
- uses: actions/checkout@v4
|
||||||
- run: apt install nodejs openjdk-21-jdk -y
|
|
||||||
- run: java --version
|
|
||||||
- run: update-alternatives --config java
|
|
||||||
- name: Checking out
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
with:
|
||||||
# Disabling shallow clone is recommended for improving relevancy of reporting
|
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
||||||
fetch-depth: 0
|
- uses: sonarsource/sonarqube-scan-action@master
|
||||||
- name: SonarQube Scan
|
env:
|
||||||
uses: https://github.com/kitabisa/sonarqube-action@v1.2.0
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
with:
|
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
||||||
host: ${{ secrets.SONARQUBE_HOST }}
|
# If you wish to fail your job when the Quality Gate is red, uncomment the
|
||||||
login: ${{ secrets.SONARQUBE_TOKEN }}
|
# following lines. This would typically be used to fail a deployment.
|
||||||
|
# - uses: sonarsource/sonarqube-quality-gate-action@master
|
||||||
|
# timeout-minutes: 5
|
||||||
|
# env:
|
||||||
|
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user