mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-24 07:01:11 -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 #
|
||||
###################################
|
||||
COPY --from=dotnet-sdk /usr/share/dotnet /usr/share/dotnet
|
||||
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1
|
||||
# Trigger first run experience by running arbitrary cmd
|
||||
RUN dotnet help
|
||||
|
||||
|
|
|
@ -23,6 +23,9 @@ control "super-linter-environment-variables" do
|
|||
end
|
||||
|
||||
if (image == "standard")
|
||||
describe os_env("DOTNET_CLI_TELEMETRY_OPTOUT") do
|
||||
its("content") { should eq "1" }
|
||||
end
|
||||
describe os_env("POWERSHELL_TELEMETRY_OPTOUT") do
|
||||
its("content") { should eq "1" }
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue