From 96795b009352c6684fecc25728f763238cb30ab0 Mon Sep 17 00:00:00 2001 From: "vault-token-factory-spectrocloud[bot]" <133815545+vault-token-factory-spectrocloud[bot]@users.noreply.github.com> Date: Fri, 10 Jan 2025 17:51:36 +0000 Subject: [PATCH] chore: fix tolowercase issue the disable_security_integrations env variable (#5338) (#5362) Co-authored-by: Karl Cardenas <29551334+karl-cardenas-coding@users.noreply.github.com> (cherry picked from commit 75135c14e45c177c12d7a2ac62a1ff863bfa4892) Co-authored-by: caroldelwing --- utils/cves/requests.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/cves/requests.js b/utils/cves/requests.js index f3c2bc6362..bcd3801412 100644 --- a/utils/cves/requests.js +++ b/utils/cves/requests.js @@ -7,10 +7,10 @@ const SECURITY_BULLETIN_URL = "https://dso.teams.spectrocloud.com"; // Ensure that the authentication token is available in the environment const authToken = process.env.DSO_AUTH_TOKEN; -const DISABLE_SECURITY_INTEGRATIONS = process.env.DISABLE_SECURITY_INTEGRATIONS.toLowerCase(); +const DISABLE_SECURITY_INTEGRATIONS = process.env.DISABLE_SECURITY_INTEGRATIONS || ""; // If the required environment variable is not set, throw an error -if (!authToken && DISABLE_SECURITY_INTEGRATIONS !== "true") { +if (!authToken && DISABLE_SECURITY_INTEGRATIONS.toLowerCase() !== "true") { throw new Error("DSO_AUTH_TOKEN must be set in the environment to use this plugin."); }