Skip to content

Commit

Permalink
Feature/use sonar token (#25)
Browse files Browse the repository at this point in the history
* Change Sonar property sonar.login
to sonar.token
  • Loading branch information
highbyte authored Oct 10, 2023
1 parent a3ec960 commit 1e04b16
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The current version supports .NET 7

``` yaml
- name: SonarScanner for .NET 7 with pull request decoration support
uses: highbyte/[email protected].4
uses: highbyte/[email protected].5
with:
# The key of the SonarQube project
sonarProjectKey: your_projectkey
Expand All @@ -35,7 +35,7 @@ Also includes test results.
``` yaml
- name: SonarScanner for .NET 7 with pull request decoration support
uses: highbyte/[email protected].4
uses: highbyte/[email protected].5
with:
# The key of the SonarQube project
sonarProjectKey: your_projectkey
Expand All @@ -58,7 +58,7 @@ Also includes test results.
``` yaml
- name: SonarScanner for .NET 7 with pull request decoration support
uses: highbyte/[email protected].4
uses: highbyte/[email protected].5
with:
# The key of the SonarQube project
sonarProjectKey: your_projectkey
Expand All @@ -82,7 +82,7 @@ Also includes test results.
``` yaml
- name: SonarScanner for .NET 7 with pull request decoration support
uses: highbyte/[email protected].4
uses: highbyte/[email protected].5
with:
# The key of the SonarQube project
sonarProjectKey: your_projectkey
Expand All @@ -102,7 +102,7 @@ Also includes test results.
``` yaml
- name: SonarScanner for .NET 7 with pull request decoration support
uses: highbyte/[email protected].4
uses: highbyte/[email protected].5
with:
# The key of the SonarQube project
sonarProjectKey: your_projectkey
Expand All @@ -124,7 +124,7 @@ Also includes test results.
``` yaml
- name: SonarScanner for .NET 7 with pull request decoration support
uses: highbyte/[email protected].4
uses: highbyte/[email protected].5
with:
# The key of the SonarQube project
sonarProjectKey: your_projectkey
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ inputs:

runs:
using: "docker"
image: "docker://ghcr.io/highbyte/sonarscan-dotnet:v2.2.4"
image: "docker://ghcr.io/highbyte/sonarscan-dotnet:v2.2.5"

branding:
icon: 'check-square'
Expand Down
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ echo "INPUT_SONARHOSTNAME: $INPUT_SONARHOSTNAME"
#-----------------------------------
# Build Sonarscanner begin command
#-----------------------------------
sonar_begin_cmd="/dotnet-sonarscanner begin /k:\"${INPUT_SONARPROJECTKEY}\" /n:\"${INPUT_SONARPROJECTNAME}\" /d:sonar.login=\"${SONAR_TOKEN}\" /d:sonar.host.url=\"${INPUT_SONARHOSTNAME}\""
sonar_begin_cmd="/dotnet-sonarscanner begin /k:\"${INPUT_SONARPROJECTKEY}\" /n:\"${INPUT_SONARPROJECTNAME}\" /d:sonar.token=\"${SONAR_TOKEN}\" /d:sonar.host.url=\"${INPUT_SONARHOSTNAME}\""
if [ -n "$INPUT_SONARORGANIZATION" ]; then
sonar_begin_cmd="$sonar_begin_cmd /o:\"${INPUT_SONARORGANIZATION}\""
fi
Expand All @@ -109,7 +109,7 @@ fi
#-----------------------------------
# Build Sonarscanner end command
#-----------------------------------
sonar_end_cmd="/dotnet-sonarscanner end /d:sonar.login=\"${SONAR_TOKEN}\""
sonar_end_cmd="/dotnet-sonarscanner end /d:sonar.token=\"${SONAR_TOKEN}\""

#-----------------------------------
# Build pre build command
Expand Down

0 comments on commit 1e04b16

Please sign in to comment.