Add SonarQube

This commit is contained in:
2024-05-24 23:27:13 +01:00
parent f1119f65b7
commit 6b473da0e6
2 changed files with 13 additions and 0 deletions

View File

@@ -5,6 +5,18 @@ on:
branches: [master] branches: [master]
jobs: jobs:
analyse:
name: SonarQube
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 }}
build: build:
name: GitHub Container Registry name: GitHub Container Registry
runs-on: ubuntu-latest runs-on: ubuntu-latest

1
sonar-project.properties Normal file
View File

@@ -0,0 +1 @@
sonar.projectKey=luketainton_docker-radius_e37b9305-5bf9-4f67-97d9-85eee00bb9d0