Skip to content

Configure output for sonar #458

@gessnerfl

Description

@gessnerfl

I try to configure golangci-lint-action to provide output in checkstyle format as required by SonarCloud (https://docs.sonarqube.org/latest/analysis/external-issues/). Therefore I added the following configuration to the project:

output:
  format: github-actions,checkstyle:golangci-lint-report.json

It seems that the configuration is not working as the output format is passed as CLI parameter to the action.
I tried to explicitly set the output format as args in the with configuration part of the action but this results in the error:

Error: Failed to run: Error: please, don't change out-format for golangci-lint: it can be broken in a future, Error: please, don't change out-format for golangci-lint: it can be broken in a future

I tried to configure both output formats (github action + checkstyle) to get the github annotations and in addition the checkstyle report for Sonar.

How can I adopt the output format?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions