Updated build.yaml.

This commit is contained in:
2024-10-26 23:17:07 -04:00
parent d442a4bee6
commit 3e1651dc7d
+12 -18
View File
@@ -1,5 +1,3 @@
name: Build
on: on:
push: push:
branches: branches:
@@ -7,23 +5,19 @@ on:
pull_request: pull_request:
types: [opened, synchronize, reopened] types: [opened, synchronize, reopened]
name: SonarQube Scan
jobs: jobs:
build: sonarqube:
name: Build name: SonarQube Trigger
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - name: Checking out
uses: actions/checkout@v4
with: with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis # Disabling shallow clone is recommended for improving relevancy of reporting
- uses: sonarsource/sonarqube-scan-action@master fetch-depth: 0
env: - name: SonarQube Scan
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }} uses: kitabisa/sonarqube-action@v1.2.0
SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }} with:
# If you wish to fail your job when the Quality Gate is red, uncomment the host: ${{ secrets.SONARQUBE_HOST }}
# following lines. This would typically be used to fail a deployment. login: ${{ secrets.SONARQUBE_TOKEN }}
# We do not recommend to use this in a pull request. Prefer using pull request
# decoration instead.
# - uses: sonarsource/sonarqube-quality-gate-action@master
# timeout-minutes: 5
# env:
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}