Skip to content

Commit ea16cd9

Browse files
authored
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 renovatebot/renovate#21391)
1 parent 40410c2 commit ea16cd9

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Dockerfile

+4
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,10 @@ ENV PATH="${PATH}:/node_modules/.bin"
413413
ENV PATH="${PATH}:/usr/lib/go/bin"
414414
ENV PATH="${PATH}:${DART_SDK}/bin:/root/.pub-cache/bin"
415415

416+
# Renovate optionally requires re2, and will warn if its not present
417+
# Setting this envoronment variable disables this warning.
418+
ENV RENOVATE_X_IGNORE_RE2="true"
419+
416420
# File to store linter versions
417421
ENV VERSION_FILE="/action/linterVersions.txt"
418422
RUN mkdir /action

test/inspec/super-linter/controls/super_linter.rb

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
its("content") { should match(/^(standard|slim)$/) }
1919
end
2020

21+
describe os_env("RENOVATE_X_IGNORE_RE2") do
22+
its("content") { should eq "true" }
23+
end
24+
2125
if (image == "standard")
2226
describe os_env("POWERSHELL_TELEMETRY_OPTOUT") do
2327
its("content") { should eq "1" }

0 commit comments

Comments
 (0)