Skip to content

SonarCloud GitHub action fails if it is run from pull request #684

@mikir

Description

@mikir

If the SonarCloud GitHub action is run from the pull request, it fails with the following error:

ERROR: Error during SonarScanner execution
ERROR: A pull request analysis cannot have the branch analysis parameter 'sonar.branch.name'

Example of the failed GitHub action can be found here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingciGitHub actions

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions