Skip to content

Commit 86d1445

Browse files
committed
updated go.yml file
1 parent 89cab6c commit 86d1445

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/go.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,22 @@ jobs:
3838

3939
sonarcloud:
4040
runs-on: ubuntu-latest
41-
needs: build
41+
needs: build
4242

4343
steps:
4444
- name: Checkout code
4545
uses: actions/checkout@v3
4646

4747
- name: Run SonarCloud Scan
48-
uses: sonarsource/[email protected]
48+
uses: sonarsource/[email protected]
4949
with:
5050
projectBaseDir: .
51+
args: >
52+
-Dsonar.organization=${{ secrets.SONAR_ORG }}
53+
-Dsonar.projectKey=${{ secrets.SONAR_PROJECT_KEY }}
54+
-Dsonar.sources=.
55+
-Dsonar.go.coverage.reportPaths=coverage.out
56+
-Dsonar.verbose=true
5157
env:
5258
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
5359
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)