fix: add RENOVATE_X_IGNORE_RE2 env var to remove warning (#5986)

Renovate has an optional requirement for the RE2 package, and will warn if
it is not present.

Setting env variable RENOVATE_X_IGNORE_RE2=true will hide this warning.
(see https://github.com/renovatebot/renovate/pull/21391)
This commit is contained in:
Niel Markwick 2024-08-12 11:14:51 +02:00 committed by GitHub
parent 40410c2d60
commit ea16cd9a1b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View file

@ -413,6 +413,10 @@ ENV PATH="${PATH}:/node_modules/.bin"
ENV PATH="${PATH}:/usr/lib/go/bin" ENV PATH="${PATH}:/usr/lib/go/bin"
ENV PATH="${PATH}:${DART_SDK}/bin:/root/.pub-cache/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 # File to store linter versions
ENV VERSION_FILE="/action/linterVersions.txt" ENV VERSION_FILE="/action/linterVersions.txt"
RUN mkdir /action RUN mkdir /action

View file

@ -18,6 +18,10 @@ control "super-linter-environment-variables" do
its("content") { should match(/^(standard|slim)$/) } its("content") { should match(/^(standard|slim)$/) }
end end
describe os_env("RENOVATE_X_IGNORE_RE2") do
its("content") { should eq "true" }
end
if (image == "standard") if (image == "standard")
describe os_env("POWERSHELL_TELEMETRY_OPTOUT") do describe os_env("POWERSHELL_TELEMETRY_OPTOUT") do
its("content") { should eq "1" } its("content") { should eq "1" }