Skip to content

Commit

Permalink
Merge pull request #21 from blackduck-inc/fix-prcomment-severities-issue
Browse files Browse the repository at this point in the history
Fix Polaris PrComment Issue with Extra Spaces in polaris_prComment_severities Input
  • Loading branch information
zaman-akib authored Nov 25, 2024
2 parents 2a90cf5 + 146ec5f commit 6a9bd2d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion blackduck-security-task/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2006,7 +2006,9 @@ class BridgeCliToolsParameter {
polData.data.polaris.prcomment = { severities: [], enabled: true };
if (inputs.POLARIS_PR_COMMENT_SEVERITIES) {
polData.data.polaris.prcomment.severities =
inputs.POLARIS_PR_COMMENT_SEVERITIES.filter((severity) => severity);
inputs.POLARIS_PR_COMMENT_SEVERITIES
.filter((severity) => severity)
.map((severity) => severity.trim());
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion blackduck-security-task/dist/index.js.map

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,9 @@ export class BridgeCliToolsParameter {

if (inputs.POLARIS_PR_COMMENT_SEVERITIES) {
polData.data.polaris.prcomment.severities =
inputs.POLARIS_PR_COMMENT_SEVERITIES.filter((severity) => severity);
inputs.POLARIS_PR_COMMENT_SEVERITIES
.filter((severity) => severity)
.map((severity) => severity.trim());
}
}
}
Expand Down

0 comments on commit 6a9bd2d

Please sign in to comment.