Skip to content

Commit

Permalink
Feature/2.3 bump dependencies (#36)
Browse files Browse the repository at this point in the history
* Update .NET 8 SDK to 8.0.403.

* Update to SonarScanner v9.0.1

* Update to Node v22
  • Loading branch information
highbyte authored Nov 13, 2024
1 parent 527fed5 commit 826c783
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0.201
FROM mcr.microsoft.com/dotnet/sdk:8.0.403

LABEL "com.github.actions.name"="sonarscan-dotnet"
LABEL "com.github.actions.description"="Sonarscanner for .NET 8 with pull request decoration support."
LABEL "com.github.actions.description"="SonarScanner for .NET 8 with pull request decoration support."
LABEL "com.github.actions.icon"="check-square"
LABEL "com.github.actions.color"="blue"

Expand All @@ -12,9 +12,9 @@ LABEL "homepage"="https://github.com/highbyte"
LABEL "maintainer"="Highbyte"

# Version numbers of used software
ENV SONAR_SCANNER_DOTNET_TOOL_VERSION=6.2 \
ENV SONAR_SCANNER_DOTNET_TOOL_VERSION=9.0.1 \
DOTNETCORE_RUNTIME_VERSION=8.0 \
NODE_VERSION=20 \
NODE_VERSION=22 \
JRE_VERSION=17

# Add Microsoft Debian apt-get feed
Expand Down
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

SonarScanner for .NET for use in Github Actions, with automatic pull request detection, analysis and decoration.

The current version supports .NET 8
This version supports .NET 8
- For .NET 9, use version [2.4.0](https://github.com/marketplace/actions/sonarscan-dotnet?version=v2.4.0)
- For .NET 7, use version [2.2.6](https://github.com/marketplace/actions/sonarscan-dotnet?version=v2.2.6)
- For .NET 6, use version [2.1.5](https://github.com/marketplace/actions/sonarscan-dotnet?version=v2.1.5)
- For .NET 5, use version [2.0](https://github.com/marketplace/actions/sonarscan-dotnet?version=2.0)
Expand All @@ -17,7 +18,7 @@ The current version supports .NET 8

``` yaml
- name: SonarScanner for .NET 8 with pull request decoration support
uses: highbyte/[email protected].2
uses: highbyte/[email protected].3
with:
# The key of the SonarQube project
sonarProjectKey: your_projectkey
Expand All @@ -36,7 +37,7 @@ Also includes test results.
``` yaml
- name: SonarScanner for .NET 8 with pull request decoration support
uses: highbyte/[email protected].2
uses: highbyte/[email protected].3
with:
# The key of the SonarQube project
sonarProjectKey: your_projectkey
Expand All @@ -59,7 +60,7 @@ Also includes test results.
``` yaml
- name: SonarScanner for .NET 8 with pull request decoration support
uses: highbyte/[email protected].2
uses: highbyte/[email protected].3
with:
# The key of the SonarQube project
sonarProjectKey: your_projectkey
Expand All @@ -83,7 +84,7 @@ Also includes test results.
``` yaml
- name: SonarScanner for .NET 8 with pull request decoration support
uses: highbyte/[email protected].2
uses: highbyte/[email protected].3
with:
# The key of the SonarQube project
sonarProjectKey: your_projectkey
Expand All @@ -103,7 +104,7 @@ Also includes test results.
``` yaml
- name: SonarScanner for .NET 8 with pull request decoration support
uses: highbyte/[email protected].2
uses: highbyte/[email protected].3
with:
# The key of the SonarQube project
sonarProjectKey: your_projectkey
Expand All @@ -125,7 +126,7 @@ Also includes test results.
``` yaml
- name: SonarScanner for .NET 8 with pull request decoration support
uses: highbyte/[email protected].2
uses: highbyte/[email protected].3
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.3.2"
image: "docker://ghcr.io/highbyte/sonarscan-dotnet:v2.3.3"

branding:
icon: 'check-square'
Expand Down
3 changes: 3 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ if [[ $GITHUB_EVENT_NAME == 'pull_request' ]]; then

fi

#Skip JRE provisioning in SonarScanner for MSBuild v7.0+. Instead use the JRE provided by the Docker image (which must be in the PATH).
sonar_begin_cmd="$sonar_begin_cmd /d:sonar.scanner.skipJreProvisioning=true"

#-----------------------------------
# Build Sonarscanner end command
#-----------------------------------
Expand Down

0 comments on commit 826c783

Please sign in to comment.