diff --git a/Dockerfile b/Dockerfile index 7bcc9eb4..09e5e25b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -413,6 +413,10 @@ ENV PATH="${PATH}:/node_modules/.bin" ENV PATH="${PATH}:/usr/lib/go/bin" ENV PATH="${PATH}:${DART_SDK}/bin:/root/.pub-cache/bin" +# Renovate optionally requires re2, and will warn if its not present +# Setting this envoronment variable disables this warning. +ENV RENOVATE_X_IGNORE_RE2="true" + # File to store linter versions ENV VERSION_FILE="/action/linterVersions.txt" RUN mkdir /action diff --git a/test/inspec/super-linter/controls/super_linter.rb b/test/inspec/super-linter/controls/super_linter.rb index 1cec3c13..25da4ec2 100644 --- a/test/inspec/super-linter/controls/super_linter.rb +++ b/test/inspec/super-linter/controls/super_linter.rb @@ -18,6 +18,10 @@ control "super-linter-environment-variables" do its("content") { should match(/^(standard|slim)$/) } end + describe os_env("RENOVATE_X_IGNORE_RE2") do + its("content") { should eq "true" } + end + if (image == "standard") describe os_env("POWERSHELL_TELEMETRY_OPTOUT") do its("content") { should eq "1" }