Skip to content

Commit

Permalink
fix: add RENOVATE_X_IGNORE_RE2 env var to remove warning (#5986)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
nielm authored Aug 12, 2024
1 parent 40410c2 commit ea16cd9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions test/inspec/super-linter/controls/super_linter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
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" }
Expand Down

0 comments on commit ea16cd9

Please sign in to comment.