Compare commits
1 Commits
2d733137d2
...
d6b63b5f7d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d6b63b5f7d |
@ -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
|
||||||
|
|||||||
@ -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}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user