Compare commits

..

1 Commits

Author SHA1 Message Date
Peter Wieringa
d6b63b5f7d Merge remote-tracking branch 'origin/main' into new/initial_commit
Some checks failed
SonarQube Scan / sonar (pull_request) Failing after 30s
2025-12-28 17:09:50 +01:00
2 changed files with 6 additions and 7 deletions

View File

@ -1,16 +1,14 @@
name: SonarQube Scan name: SonarQube Scan
on: on:
push:
branches: [ main ]
pull_request: pull_request:
branches:
- main
jobs: jobs:
sonar: sonar:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -18,7 +16,7 @@ jobs:
- name: Run SonarQube scan - name: Run SonarQube scan
run: | run: |
docker run --rm \ docker run --rm \
-e SONAR_HOST_URL=$SONAR_HOST_URL \ -e SONAR_HOST_URL=${{ secrets.SONAR_HOST_URL }} \
-e SONAR_TOKEN=$SONAR_TOKEN \ -e SONAR_TOKEN=${{ secrets.SONAR_TOKEN }} \
-v "$PWD:/usr/src" \ -v "$PWD:/usr/src" \
sonarsource/sonar-scanner-cli sonarsource/sonar-scanner-cli

View File

@ -2,5 +2,6 @@ sonar.projectKey=schiphol
sonar.projectName=schiphol sonar.projectName=schiphol
sonar.sources=. sonar.sources=.
sonar.sourceEncoding=UTF-8 sonar.sourceEncoding=UTF-8
sonar.host.url=${SONAR_HOST_URL} sonar.host.url=${SONAR_HOST_URL}
sonar.login=${SONAR_TOKEN} sonar.login=${SONAR_TOKEN}