diff --git a/Dockerfile b/Dockerfile index 93d06d4..f32f1ed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ -FROM mcr.microsoft.com/dotnet/sdk:9.0.306 +FROM mcr.microsoft.com/dotnet/sdk:10.0 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=10.4.1 \ +ENV SONAR_SCANNER_DOTNET_TOOL_VERSION=11.0.0 \ DOTNETCORE_RUNTIME_VERSION=9.0 \ NODE_VERSION=22 \ JRE_VERSION=17 @@ -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"] diff --git a/README.md b/README.md index 49ad40e..968bc48 100644 --- a/README.md +++ b/README.md @@ -4,10 +4,11 @@ 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 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) | @@ -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.3 + - name: SonarScanner for .NET 10 with pull request decoration support + uses: highbyte/sonarscan-dotnet@v2.5.0 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.3 + - name: SonarScanner for .NET 10 with pull request decoration support + uses: highbyte/sonarscan-dotnet@v2.5.0 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.3 + - name: SonarScanner for .NET 10 with pull request decoration support + uses: highbyte/sonarscan-dotnet@v2.5.0 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.3 + - name: SonarScanner for .NET 10 with pull request decoration support + uses: highbyte/sonarscan-dotnet@v2.5.0 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.3 + - name: SonarScanner for .NET 10 with pull request decoration support + uses: highbyte/sonarscan-dotnet@v2.5.0 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.3 + - name: SonarScanner for .NET 10 with pull request decoration support + 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 62c61bd..8dad2c8 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.3" + image: "docker://ghcr.io/highbyte/sonarscan-dotnet:v2.5.0" branding: icon: 'check-square'