This commit is contained in:
@@ -8,6 +8,8 @@ on:
|
||||
jobs:
|
||||
sonar:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: sonarsource/sonar-scanner-cli:latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
@@ -24,12 +26,9 @@ jobs:
|
||||
|
||||
- name: Run SonarScanner
|
||||
run: |
|
||||
docker run --rm \
|
||||
--network dev-platform_default \
|
||||
-e SONAR_HOST_URL="${{ vars.SONAR_HOST_URL }}" \
|
||||
-e SONAR_TOKEN="${{ secrets.SONAR_TOKEN }}" \
|
||||
-v "$PWD:/usr/src" \
|
||||
sonarsource/sonar-scanner-cli \
|
||||
sonar-scanner \
|
||||
-Dsonar.host.url="${{ vars.SONAR_HOST_URL }}" \
|
||||
-Dsonar.token="${{ secrets.SONAR_TOKEN }}" \
|
||||
-Dsonar.projectKey="${{ vars.SONAR_PROJECT_KEY }}" \
|
||||
-Dsonar.projectName="${{ vars.SONAR_PROJECT_KEY }}" \
|
||||
-Dsonar.sources=. \
|
||||
|
||||
Reference in New Issue
Block a user