chore: disable dotnet telemetry (#6016)

This commit is contained in:
Marco Ferrari 2024-08-13 16:12:32 +02:00 committed by GitHub
parent 1d104357a5
commit 4854e774f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View file

@ -475,6 +475,7 @@ RUN apk add --no-cache \
# Install DotNet and Dependencies # # Install DotNet and Dependencies #
################################### ###################################
COPY --from=dotnet-sdk /usr/share/dotnet /usr/share/dotnet COPY --from=dotnet-sdk /usr/share/dotnet /usr/share/dotnet
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1
# Trigger first run experience by running arbitrary cmd # Trigger first run experience by running arbitrary cmd
RUN dotnet help RUN dotnet help

View file

@ -23,6 +23,9 @@ control "super-linter-environment-variables" do
end end
if (image == "standard") if (image == "standard")
describe os_env("DOTNET_CLI_TELEMETRY_OPTOUT") do
its("content") { should eq "1" }
end
describe os_env("POWERSHELL_TELEMETRY_OPTOUT") do describe os_env("POWERSHELL_TELEMETRY_OPTOUT") do
its("content") { should eq "1" } its("content") { should eq "1" }
end end