Skip to content

Commit

Permalink
added sonarqube.yml for github workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Nimit <nimit.jyotiana@hotmail.com>
  • Loading branch information
timin committed Jun 20, 2023
1 parent 91cf7da commit 8517b9b
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/sonarqube.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: SonarQube scan

on:
# Trigger analysis when pushing to your main branches, and when creating a pull request.
push:
branches:
- main
- develop
- 'release/**'
pull_request:
types: [opened, synchronize, reopened]

jobs:
sonarqube:
runs-on: ip-range-controlled
steps:
- uses: actions/checkout@v3
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

0 comments on commit 8517b9b

Please sign in to comment.