Skip to content

Commit 9d6cf34

Browse files
committed
Use dotnet 3.0, update sonarscanner tool
1 parent 4b4ed1c commit 9d6cf34

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

Dockerfile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/dotnet/core/sdk:2.2-stretch
1+
FROM mcr.microsoft.com/dotnet/core/sdk
22

33
LABEL "com.github.actions.name"="dotnet-sonarscanner"
44
LABEL "com.github.actions.description"="sonarscanner for dotnet core"
@@ -10,14 +10,20 @@ LABEL "homepage"="https://github.com/Secbyte/dotnet-sonarscanner"
1010
LABEL "maintainer"="Joshua Duffy <mail@joshuaduffy.org>"
1111

1212
RUN echo "deb http://http.us.debian.org/debian/ testing contrib main" >> /etc/apt/sources.list && \
13+
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg && \
14+
mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/ && \
15+
wget -q https://packages.microsoft.com/config/debian/10/prod.list && \
16+
mv prod.list /etc/apt/sources.list.d/microsoft-prod.list && \
17+
chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg && \
18+
chown root:root /etc/apt/sources.list.d/microsoft-prod.list && \
1319
apt-get update && \
14-
apt-get install -y --no-install-recommends default-jre && \
20+
apt-get install -y --no-install-recommends default-jre apt-transport-https aspnetcore-runtime-2.1 && \
1521
apt-get -t testing install -y --no-install-recommends python3.7 python3-distutils && \
1622
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
1723
python3.7 get-pip.py && \
1824
rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* && \
1925
apt-get autoremove -y && \
20-
dotnet tool install dotnet-sonarscanner --tool-path . --version 4.6.2
26+
dotnet tool install dotnet-sonarscanner --tool-path . --version 4.7.1
2127

2228
ADD entrypoint.sh /entrypoint.sh
2329

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ _Currently does not support username/password authentication and presumes you ar
88

99
```yaml
1010
- name: Sonarscanner for dotnet
11-
uses: Secbyte/dotnet-sonarscanner@v1.1
11+
uses: Secbyte/dotnet-sonarscanner@v1.2
1212
with:
1313
buildCommand: dotnet build .
1414
testCommand: dotnet test .

0 commit comments

Comments
 (0)