Skip to content

Conditionally run SonarCloud step #255

Closed
@s1hofmann

Description

@s1hofmann

Short overview
Only try to send results to SonarCloud when SONAR_TOKEN is set

Use case
Avoid failing dependabot pull requests due to SonarCloud

Detailed description
Whenever dependabot opens a new pull request it fail to run since it can't access the required SONAR_TOKEN secret.
Since we're not interested in Sonar analyses for dependabot PRs, we should not run this step if the token is not set.

CI runs for PRs of outside contributers have to be started manually, so we wont have a problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DONEImplementation is done, but not yet merged into masterenhancementEnhancement to existing features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions