Skip to content

Commit

Permalink
chore: fix tolowercase issue the disable_security_integrations env va…
Browse files Browse the repository at this point in the history
…riable (#5338)

Co-authored-by: Karl Cardenas <[email protected]>
  • Loading branch information
caroldelwing and karl-cardenas-coding authored Jan 10, 2025
1 parent 53300b6 commit 75135c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/cves/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}

Expand Down

0 comments on commit 75135c1

Please sign in to comment.