Skip to content

Commit

Permalink
Create sonar-scan.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
WaqarAhmedVC authored Jun 14, 2024
1 parent 5b81864 commit b1aa57d
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/sonar-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: PR Sonar Scan

on:
push:
branches:
- main
- sonar-integration
pull_request:

jobs:
sonar-scan:
name: Sonar Scan
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: >
-Dsonar.verbose=false
-Dsonar.branch.name=${{ github.head_ref || github.ref_name }}

0 comments on commit b1aa57d

Please sign in to comment.