Skip to content

Commit

Permalink
Configures SonarQube
Browse files Browse the repository at this point in the history
Signed-off-by: Vasu1105 <[email protected]>
  • Loading branch information
Vasu1105 committed Jan 9, 2024
1 parent dfff5d9 commit 73193ab
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/sonarqube.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Sonarqube

on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]

jobs:
sonarqube:
name: SonarQube
runs-on: ubuntu-latest
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 }}
4 changes: 4 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
sonar.projectKey=inspec_magic-modules_AYztYbRUhXuvzhhRmNvE
sonar.projectName=Chef-Inspec-magic-modules

sonar.sources=.

0 comments on commit 73193ab

Please sign in to comment.