mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-09 02:23:39 -05:00
chore: disable dotnet telemetry (#6016)
This commit is contained in:
parent
1d104357a5
commit
4854e774f3
2 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue