From 043c7d8bc74becdc25e4918895ce9f02253526f5 Mon Sep 17 00:00:00 2001 From: Highbyte Date: Tue, 14 Oct 2025 17:37:32 +0200 Subject: [PATCH 1/5] Update to .NET 10 RC1 --- Dockerfile | 6 +++--- README.md | 29 +++++++++++++++-------------- action.yml | 4 ++-- 3 files changed, 20 insertions(+), 19 deletions(-) diff --git a/Dockerfile b/Dockerfile index dc31668..a16c65b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ -FROM mcr.microsoft.com/dotnet/sdk:9.0.201 +FROM mcr.microsoft.com/dotnet/sdk:10.0.100-rc.1 LABEL "com.github.actions.name"="sonarscan-dotnet" -LABEL "com.github.actions.description"="SonarScanner for .NET 9 with pull request decoration support." +LABEL "com.github.actions.description"="SonarScanner for .NET 10 with pull request decoration support." LABEL "com.github.actions.icon"="check-square" LABEL "com.github.actions.color"="blue" @@ -12,7 +12,7 @@ LABEL "homepage"="https://github.com/highbyte" LABEL "maintainer"="Highbyte" # Version numbers of used software -ENV SONAR_SCANNER_DOTNET_TOOL_VERSION=9.2.1 \ +ENV SONAR_SCANNER_DOTNET_TOOL_VERSION=10.4.1 \ DOTNETCORE_RUNTIME_VERSION=9.0 \ NODE_VERSION=22 \ JRE_VERSION=17 diff --git a/README.md b/README.md index e51cf64..e5d63b8 100644 --- a/README.md +++ b/README.md @@ -4,11 +4,12 @@ SonarScanner for .NET for use in Github Actions, with automatic pull request detection, analysis and decoration. > [!NOTE] -> This version supports `.NET 9`. +> This version supports `.NET 10`. | Other .NET versions | GitHub Action version | |------------------|-------------------------------------------------------------------------------------| -| `.NET 8` | [`2.3.3`](https://github.com/marketplace/actions/sonarscan-dotnet?version=v2.3.3) or later `2.3` version | +| `.NET 9` | [`2.4.3`](https://github.com/marketplace/actions/sonarscan-dotnet?version=v2.4.3) or later `2.4` version | +| `.NET 8` | [`2.3.4`](https://github.com/marketplace/actions/sonarscan-dotnet?version=v2.3.4) or later `2.3` version | | `.NET 7` | [`2.2.6`](https://github.com/marketplace/actions/sonarscan-dotnet?version=v2.2.6) | | `.NET 6` | [`2.1.5`](https://github.com/marketplace/actions/sonarscan-dotnet?version=v2.1.5) | | `.NET 5` | [`2.0`](https://github.com/marketplace/actions/sonarscan-dotnet?version=2.0) | @@ -21,8 +22,8 @@ SonarScanner for .NET for use in Github Actions, with automatic pull request det ## Simple use with SonarCloud ``` yaml - - name: SonarScanner for .NET 9 with pull request decoration support - uses: highbyte/sonarscan-dotnet@v2.4.2 + - name: SonarScanner for .NET 10 with pull request decoration support + uses: highbyte/sonarscan-dotnet@v2.5.0-beta with: # The key of the SonarQube project sonarProjectKey: your_projectkey @@ -40,8 +41,8 @@ SonarScanner for .NET for use in Github Actions, with automatic pull request det Also includes test results. ``` yaml - - name: SonarScanner for .NET 9 with pull request decoration support - uses: highbyte/sonarscan-dotnet@v2.4.2 + - name: SonarScanner for .NET 10 with pull request decoration support + uses: highbyte/sonarscan-dotnet@v2.5.0-beta with: # The key of the SonarQube project sonarProjectKey: your_projectkey @@ -63,8 +64,8 @@ Also includes test results. Also includes test results. ``` yaml - - name: SonarScanner for .NET 9 with pull request decoration support - uses: highbyte/sonarscan-dotnet@v2.4.2 + - name: SonarScanner for .NET 10 with pull request decoration support + uses: highbyte/sonarscan-dotnet@v2.5.0-beta with: # The key of the SonarQube project sonarProjectKey: your_projectkey @@ -87,8 +88,8 @@ Also includes test results. ## Skip tests ``` yaml - - name: SonarScanner for .NET 9 with pull request decoration support - uses: highbyte/sonarscan-dotnet@v2.4.2 + - name: SonarScanner for .NET 10 with pull request decoration support + uses: highbyte/sonarscan-dotnet@v2.5.0-beta with: # The key of the SonarQube project sonarProjectKey: your_projectkey @@ -107,8 +108,8 @@ Also includes test results. ## Use pre-build command to add a custom NuGet repository ``` yaml - - name: SonarScanner for .NET 9 with pull request decoration support - uses: highbyte/sonarscan-dotnet@v2.4.2 + - name: SonarScanner for .NET 10 with pull request decoration support + uses: highbyte/sonarscan-dotnet@v2.5.0-beta with: # The key of the SonarQube project sonarProjectKey: your_projectkey @@ -129,8 +130,8 @@ Also includes test results. ## Use with self-hosted SonarQube ``` yaml - - name: SonarScanner for .NET 9 with pull request decoration support - uses: highbyte/sonarscan-dotnet@v2.4.2 + - name: SonarScanner for .NET 10 with pull request decoration support + uses: highbyte/sonarscan-dotnet@v2.5.0-beta with: # The key of the SonarQube project sonarProjectKey: your_projectkey diff --git a/action.yml b/action.yml index 0b6cfbb..db48b63 100644 --- a/action.yml +++ b/action.yml @@ -1,5 +1,5 @@ name: "sonarscan-dotnet" -description: "SonarScanner for .NET 9 with pull request decoration support." +description: "SonarScanner for .NET 10 with pull request decoration support." author: "Highbyte" inputs: @@ -34,7 +34,7 @@ inputs: runs: using: "docker" - image: "docker://ghcr.io/highbyte/sonarscan-dotnet:v2.4.2" + image: "docker://ghcr.io/highbyte/sonarscan-dotnet:v2.5.0-beta" branding: icon: 'check-square' From d88535b9226eefefcd51beaa4ad7ae6f30e28ecc Mon Sep 17 00:00:00 2001 From: Highbyte Date: Tue, 14 Oct 2025 18:09:31 +0200 Subject: [PATCH 2/5] Fix for Dockerfile entrypoint.sh that may be copied from Windows system when building the Docker image. --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index a16c65b..602fea8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -53,4 +53,8 @@ RUN apt-get -q -y autoremove \ COPY entrypoint.sh /entrypoint.sh +# Fix potential Windows line endings issue and ensure script is executable +RUN chmod +x /entrypoint.sh && \ + sed -i 's/\r$//' /entrypoint.sh + ENTRYPOINT ["/entrypoint.sh"] From af3b65082a87ebb86ebda2dfbd994a51a8130bb3 Mon Sep 17 00:00:00 2001 From: Highbyte Date: Wed, 15 Oct 2025 19:13:03 +0200 Subject: [PATCH 3/5] Bump .NET 10 from rc1 to rc2 --- Dockerfile | 2 +- action.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 602fea8..b76a640 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/dotnet/sdk:10.0.100-rc.1 +FROM mcr.microsoft.com/dotnet/sdk:10.0.100-rc.2 LABEL "com.github.actions.name"="sonarscan-dotnet" LABEL "com.github.actions.description"="SonarScanner for .NET 10 with pull request decoration support." diff --git a/action.yml b/action.yml index db48b63..727889c 100644 --- a/action.yml +++ b/action.yml @@ -34,7 +34,7 @@ inputs: runs: using: "docker" - image: "docker://ghcr.io/highbyte/sonarscan-dotnet:v2.5.0-beta" + image: "docker://ghcr.io/highbyte/sonarscan-dotnet:v2.5.0-beta2" branding: icon: 'check-square' From 784b373e8ce9061c13f1676e48427344ae7de7b8 Mon Sep 17 00:00:00 2001 From: Highbyte Date: Tue, 11 Nov 2025 18:01:18 +0100 Subject: [PATCH 4/5] Update to SonarScanner DotNet tool to 11.0.0. Bump Docker image version using .NET 10.0 release. --- Dockerfile | 4 ++-- README.md | 12 ++++++------ action.yml | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index b76a640..f32f1ed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/dotnet/sdk:10.0.100-rc.2 +FROM mcr.microsoft.com/dotnet/sdk:10.0 LABEL "com.github.actions.name"="sonarscan-dotnet" LABEL "com.github.actions.description"="SonarScanner for .NET 10 with pull request decoration support." @@ -12,7 +12,7 @@ LABEL "homepage"="https://github.com/highbyte" LABEL "maintainer"="Highbyte" # Version numbers of used software -ENV SONAR_SCANNER_DOTNET_TOOL_VERSION=10.4.1 \ +ENV SONAR_SCANNER_DOTNET_TOOL_VERSION=11.0.0 \ DOTNETCORE_RUNTIME_VERSION=9.0 \ NODE_VERSION=22 \ JRE_VERSION=17 diff --git a/README.md b/README.md index e5d63b8..1919fd0 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ SonarScanner for .NET for use in Github Actions, with automatic pull request det ``` yaml - name: SonarScanner for .NET 10 with pull request decoration support - uses: highbyte/sonarscan-dotnet@v2.5.0-beta + uses: highbyte/sonarscan-dotnet@v2.5.0-beta3 with: # The key of the SonarQube project sonarProjectKey: your_projectkey @@ -42,7 +42,7 @@ Also includes test results. ``` yaml - name: SonarScanner for .NET 10 with pull request decoration support - uses: highbyte/sonarscan-dotnet@v2.5.0-beta + uses: highbyte/sonarscan-dotnet@v2.5.0-beta3 with: # The key of the SonarQube project sonarProjectKey: your_projectkey @@ -65,7 +65,7 @@ Also includes test results. ``` yaml - name: SonarScanner for .NET 10 with pull request decoration support - uses: highbyte/sonarscan-dotnet@v2.5.0-beta + uses: highbyte/sonarscan-dotnet@v2.5.0-beta3 with: # The key of the SonarQube project sonarProjectKey: your_projectkey @@ -89,7 +89,7 @@ Also includes test results. ``` yaml - name: SonarScanner for .NET 10 with pull request decoration support - uses: highbyte/sonarscan-dotnet@v2.5.0-beta + uses: highbyte/sonarscan-dotnet@v2.5.0-beta3 with: # The key of the SonarQube project sonarProjectKey: your_projectkey @@ -109,7 +109,7 @@ Also includes test results. ``` yaml - name: SonarScanner for .NET 10 with pull request decoration support - uses: highbyte/sonarscan-dotnet@v2.5.0-beta + uses: highbyte/sonarscan-dotnet@v2.5.0-beta3 with: # The key of the SonarQube project sonarProjectKey: your_projectkey @@ -131,7 +131,7 @@ Also includes test results. ``` yaml - name: SonarScanner for .NET 10 with pull request decoration support - uses: highbyte/sonarscan-dotnet@v2.5.0-beta + uses: highbyte/sonarscan-dotnet@v2.5.0-beta3 with: # The key of the SonarQube project sonarProjectKey: your_projectkey diff --git a/action.yml b/action.yml index 727889c..f3e4975 100644 --- a/action.yml +++ b/action.yml @@ -34,7 +34,7 @@ inputs: runs: using: "docker" - image: "docker://ghcr.io/highbyte/sonarscan-dotnet:v2.5.0-beta2" + image: "docker://ghcr.io/highbyte/sonarscan-dotnet:v2.5.0-beta3" branding: icon: 'check-square' From 6fad371944ee1d30290d260ca6509b6d25120d76 Mon Sep 17 00:00:00 2001 From: Highbyte Date: Tue, 11 Nov 2025 18:13:55 +0100 Subject: [PATCH 5/5] Update action version to v2.5.0 (.NET 10.0) --- README.md | 12 ++++++------ action.yml | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 1919fd0..968bc48 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ SonarScanner for .NET for use in Github Actions, with automatic pull request det ``` yaml - name: SonarScanner for .NET 10 with pull request decoration support - uses: highbyte/sonarscan-dotnet@v2.5.0-beta3 + uses: highbyte/sonarscan-dotnet@v2.5.0 with: # The key of the SonarQube project sonarProjectKey: your_projectkey @@ -42,7 +42,7 @@ Also includes test results. ``` yaml - name: SonarScanner for .NET 10 with pull request decoration support - uses: highbyte/sonarscan-dotnet@v2.5.0-beta3 + uses: highbyte/sonarscan-dotnet@v2.5.0 with: # The key of the SonarQube project sonarProjectKey: your_projectkey @@ -65,7 +65,7 @@ Also includes test results. ``` yaml - name: SonarScanner for .NET 10 with pull request decoration support - uses: highbyte/sonarscan-dotnet@v2.5.0-beta3 + uses: highbyte/sonarscan-dotnet@v2.5.0 with: # The key of the SonarQube project sonarProjectKey: your_projectkey @@ -89,7 +89,7 @@ Also includes test results. ``` yaml - name: SonarScanner for .NET 10 with pull request decoration support - uses: highbyte/sonarscan-dotnet@v2.5.0-beta3 + uses: highbyte/sonarscan-dotnet@v2.5.0 with: # The key of the SonarQube project sonarProjectKey: your_projectkey @@ -109,7 +109,7 @@ Also includes test results. ``` yaml - name: SonarScanner for .NET 10 with pull request decoration support - uses: highbyte/sonarscan-dotnet@v2.5.0-beta3 + uses: highbyte/sonarscan-dotnet@v2.5.0 with: # The key of the SonarQube project sonarProjectKey: your_projectkey @@ -131,7 +131,7 @@ Also includes test results. ``` yaml - name: SonarScanner for .NET 10 with pull request decoration support - uses: highbyte/sonarscan-dotnet@v2.5.0-beta3 + uses: highbyte/sonarscan-dotnet@v2.5.0 with: # The key of the SonarQube project sonarProjectKey: your_projectkey diff --git a/action.yml b/action.yml index f3e4975..8dad2c8 100644 --- a/action.yml +++ b/action.yml @@ -34,7 +34,7 @@ inputs: runs: using: "docker" - image: "docker://ghcr.io/highbyte/sonarscan-dotnet:v2.5.0-beta3" + image: "docker://ghcr.io/highbyte/sonarscan-dotnet:v2.5.0" branding: icon: 'check-square'