Skip to content

Feature Request: Support for sonarEndArguments #40

@manishalankala

Description

@manishalankala

Description:
Currently, the highbyte/sonarscan-dotnet GitHub Action supports passing extra arguments only to the SonarScanner begin step via the sonarBeginArguments input

There is no equivalent input for the end step, which limits the ability to pass important parameters such as /d:sonar.qualitygate.wait=true.

Request:
Please add a sonarEndArguments input to the action, allowing users to pass custom arguments to the dotnet-sonarscanner end step

Note:
Using .Net 8 with GitHub Actions for CI
Modifications need to introduce in entrypoint.sh

INPUT_SONARENDARGUMENTS="${INPUT_SONARENDARGUMENTS:-}"

sonar_end_cmd="/dotnet-sonarscanner end /d:sonar.token=\"${SONAR_TOKEN}\""
if [ -n "$INPUT_SONARENDARGUMENTS" ]; then
  sonar_end_cmd="$sonar_end_cmd $INPUT_SONARENDARGUMENTS"
fi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions