We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3e081a commit 495d874Copy full SHA for 495d874
.github/workflows/sonar.yml
@@ -0,0 +1,21 @@
1
+name: sonar
2
+
3
+on:
4
+ pull_request:
5
+ branches: [main]
6
+ push:
7
8
9
+jobs:
10
+ scan:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Checkout code
14
+ uses: actions/checkout@v4
15
16
+ - uses: sonarsource/sonarqube-scan-action@v6
17
+ with:
18
+ projectBaseDir: ${{ github.workspace }}
19
+ env:
20
+ SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
21
+ SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
sonar-project.properties
@@ -0,0 +1,4 @@
+sonar.projectKey=com.shell.peter-evans-create-pull-request-v7
+sonar.javascript.lcov.reportPaths=coverage/lcov.info
+sonar.sources=src
0 commit comments