Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"

Expand All @@ -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
Expand Down Expand Up @@ -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"]
27 changes: 14 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) |
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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'
Expand Down