Updated build.yaml.
This commit is contained in:
+14
-20
@@ -1,29 +1,23 @@
|
|||||||
name: Build
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
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
|
||||||
with:
|
uses: actions/checkout@v4
|
||||||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
with:
|
||||||
- uses: sonarsource/sonarqube-scan-action@master
|
# Disabling shallow clone is recommended for improving relevancy of reporting
|
||||||
env:
|
fetch-depth: 0
|
||||||
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
|
- name: SonarQube Scan
|
||||||
SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }}
|
uses: kitabisa/sonarqube-action@v1.2.0
|
||||||
# If you wish to fail your job when the Quality Gate is red, uncomment the
|
with:
|
||||||
# following lines. This would typically be used to fail a deployment.
|
host: ${{ secrets.SONARQUBE_HOST }}
|
||||||
# We do not recommend to use this in a pull request. Prefer using pull request
|
login: ${{ secrets.SONARQUBE_TOKEN }}
|
||||||
# decoration instead.
|
|
||||||
# - uses: sonarsource/sonarqube-quality-gate-action@master
|
|
||||||
# timeout-minutes: 5
|
|
||||||
# env:
|
|
||||||
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
||||||
Reference in New Issue
Block a user