Compare commits
1 Commits
600f786900
...
83025826bc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
83025826bc |
@ -6,20 +6,20 @@ on:
|
|||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
sonarqube:
|
sonar:
|
||||||
name: SonarQube Trigger
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
||||||
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checking out
|
- name: Checkout code
|
||||||
uses: actions/checkout@master
|
uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
# Disabling shallow clone is recommended for improving relevancy of reporting
|
|
||||||
fetch-depth: 0
|
|
||||||
- name: SonarQube Scan
|
|
||||||
uses: kitabisa/sonarqube-action@v1.2.0
|
|
||||||
with:
|
|
||||||
host: ${{ secrets.SONARQUBE_HOST_URL }}
|
|
||||||
login: ${{ secrets.SONARQUBE_TOKEN }}
|
|
||||||
projectKey: "schiphol"
|
|
||||||
projectName: "schiphol"
|
|
||||||
|
|
||||||
|
- name: Run SonarQube scan
|
||||||
|
run: |
|
||||||
|
docker run --rm \
|
||||||
|
-e SONAR_HOST_URL=$SONAR_HOST_URL \
|
||||||
|
-e SONAR_TOKEN=$SONAR_TOKEN \
|
||||||
|
-v "$PWD:/usr/src" \
|
||||||
|
-w /usr/src \
|
||||||
|
sonarsource/sonar-scanner-cli
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user