This commit is contained in:
@@ -1,5 +0,0 @@
|
|||||||
sonar.projectKey=sqp_6999f73c459923e45f140e7e46f9768b2c1ad9da
|
|
||||||
|
|
||||||
# relative paths to source directories. More details and properties are described
|
|
||||||
# at https://docs.sonarqube.org/latest/project-administration/narrowing-the-focus/
|
|
||||||
sonar.sources=.
|
|
||||||
@@ -1,31 +1,27 @@
|
|||||||
|
name: Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
# pull_request:
|
|
||||||
# types: [opened, synchronize, reopened]
|
|
||||||
|
|
||||||
name: SonarQube Scan
|
|
||||||
jobs:
|
jobs:
|
||||||
sonarqube:
|
build:
|
||||||
name: SonarQube Trigger
|
name: Build and analyze
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# - run: apk add --no-cache nodejs docker
|
- uses: actions/checkout@v4
|
||||||
- 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
|
||||||
- uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: 'temurin' # See 'Supported distributions' for available options
|
|
||||||
java-version: '21'
|
|
||||||
- name: SonarQube Scan
|
|
||||||
uses: sonarsource/sonarqube-scan-action@v2.1.0
|
|
||||||
env:
|
env:
|
||||||
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }}
|
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
||||||
# 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 }}
|
# - uses: sonarsource/sonarqube-quality-gate-action@master
|
||||||
|
# timeout-minutes: 5
|
||||||
|
# env:
|
||||||
|
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
Reference in New Issue
Block a user