Skip to content

Commit

Permalink
Merge pull request #41 from synopsys-sig/SIGINT-115-bug_new_detect_ac…
Browse files Browse the repository at this point in the history
…tion_ignores_detect-trust-cert

Fix Certificate issue
  • Loading branch information
kishorikumar authored Nov 25, 2022
2 parents 04a4dd3 + f0d14b1 commit 58681e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,7 @@ function runWithPolicyCheck(blackduckPolicyCheck) {
(0, core_1.info)(`scan-mode: ${inputs_1.SCAN_MODE}`);
//Setting process environment for certificate issue fix
if (!process.env['NODE_TLS_REJECT_UNAUTHORIZED']) {
(0, core_1.info)('NODE_TLS_REJECT_UNAUTHORIZED is not set, disabling strict certificate check');
process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = '0';
}
const runnerTemp = process.env.RUNNER_TEMP;
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export async function runWithPolicyCheck(blackduckPolicyCheck: GitHubCheck): Pro

//Setting process environment for certificate issue fix
if (!process.env['NODE_TLS_REJECT_UNAUTHORIZED']) {
info('NODE_TLS_REJECT_UNAUTHORIZED is not set, disabling strict certificate check')
process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = '0'
}

Expand Down

0 comments on commit 58681e1

Please sign in to comment.