Skip to content

Commit

Permalink
Add sonarqube integration
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaweedbrainCY committed Sep 15, 2023
1 parent 45f54b9 commit c49f7eb
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,23 @@ on:


jobs:
SonarQube:
name: Sonar Scan
runs-on: ubuntu-latest
permissions: read-all
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
- uses: sonarsource/sonarqube-quality-gate-action@master
timeout-minutes: 5
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

security_scan_analysis:
name: Security Scan Analysis
runs-on: ubuntu-latest
Expand Down

0 comments on commit c49f7eb

Please sign in to comment.