@enterprise-cmcs/macpro-security-hub-sync
Advanced tools
Comparing version 1.14.0 to 1.14.1
@@ -95,7 +95,13 @@ "use strict"; | ||
}; | ||
let params = { | ||
username: undefined, | ||
accountId: undefined, | ||
}; | ||
if (process.env.JIRA_HOST?.includes("jiraent")) { | ||
axiosHeader["Authorization"] = `Bearer ${process.env.JIRA_TOKEN}`; | ||
params["username"] = currentUser.name; | ||
} | ||
else { | ||
axiosHeader["Authorization"] = `Basic ${Buffer.from(`${process.env.JIRA_USERNAME}:${process.env.JIRA_TOKEN}`).toString("base64")}`; | ||
params["accountId"] = currentUser.accountId; | ||
} | ||
@@ -106,5 +112,3 @@ await (0, axios_1.default)({ | ||
headers: axiosHeader, | ||
params: { | ||
accountId: currentUser.accountId, | ||
}, | ||
params, | ||
}); | ||
@@ -111,0 +115,0 @@ } |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "1.14.0", | ||
"version": "1.14.1", | ||
"description": "NPM module to create Jira issues for all findings in Security Hub for the current AWS account..", | ||
@@ -10,0 +10,0 @@ "main": "./dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52710
951