added sonar

This commit is contained in:
Kevsl 2024-09-16 15:38:59 +02:00
parent 49d24515a3
commit f108be4235

View File

@ -42,9 +42,9 @@ jobs:
POSTGRES_PASSWORD: ${{ secrets.CI_DB_PASSWORD }} POSTGRES_PASSWORD: ${{ secrets.CI_DB_PASSWORD }}
POSTGRES_DB: testdb POSTGRES_DB: testdb
sonarqube: sonarqube:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
@ -52,4 +52,4 @@ jobs:
uses: sonarsource/sonarqube-scan-action@<action version> uses: sonarsource/sonarqube-scan-action@<action version>
env: env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }} SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }}