Skip to content

Commit e0bd51c

Browse files
committed
fix: correct golangci-lint v2 output format flag in sonar workflow
- Replace deprecated --out-format flag with --output.checkstyle.path - Fixes 'unknown flag: --out-format' error in golangci-lint v2
1 parent 7dfe0cd commit e0bd51c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/sonar.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
uses: golangci/golangci-lint-action@v8
4545
with:
4646
version: ${{ env.GOLANGCI_LINT_VERSION }}
47-
args: --timeout=5m --issues-exit-code=0 --out-format=checkstyle:golangci-lint-report.xml
47+
args: --timeout=5m --issues-exit-code=0 --output.checkstyle.path=golangci-lint-report.xml
4848

4949
- name: SonarCloud Scan
5050
uses: SonarSource/sonarcloud-github-action@master

0 commit comments

Comments
 (0)