This commit is contained in:
@@ -0,0 +1,23 @@
|
|||||||
|
name: SonarQube Analysis
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
sonar:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- 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
|
||||||
Reference in New Issue
Block a user