Skip to content

Commit

Permalink
update sonarqube.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Pikay93 committed Feb 4, 2024
1 parent c92cd10 commit ecbe7f4
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/sonarqube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ jobs:
Analysis:
runs-on: ubuntu-latest

services:
mongodb:
image: mongo:4.4
ports:
- 27017:27017

steps:
- uses: actions/checkout@v2
with:
Expand All @@ -51,9 +57,10 @@ jobs:
# uses: SonarSource/[email protected]
uses: SonarSource/sonarqube-scan-action@7295e71c9583053f5bf40e9d4068a0c974603ec8
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # Generate a token on SonarQube, add it to the secrets of this repo with the name SONAR_TOKEN (Settings > Secrets > Actions > add new repository secret)
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} # add the URL of your instance to the secrets of this repo with the name SONAR_HOST_URL (Settings > Secrets > Actions > add new repository secret)
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # Generate a token on SonarQube, add it to the secrets of this repo with the name SONAR_TOKEN (Settings > Secrets > Actions > add new repository secret)
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
SONAR_ROOT_CERT: ${{ vars.SONAR_ROOT_CERT }}
with:
# Additional arguments for the sonarcloud scanner
args:
Expand Down

0 comments on commit ecbe7f4

Please sign in to comment.