From ea16cd9a1b0667d203fca54e887108e658f8f73f Mon Sep 17 00:00:00 2001 From: Niel Markwick Date: Mon, 12 Aug 2024 11:14:51 +0200 Subject: [PATCH] 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) --- Dockerfile | 4 ++++ test/inspec/super-linter/controls/super_linter.rb | 4 ++++ 2 files changed, 8 insertions(+) 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" }