Skip to content

Commit

Permalink
fix prcomment severities issue with extra spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
zaman-akib committed Nov 25, 2024
1 parent 7f6e798 commit a5e54fd
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 a5e54fd

Please sign in to comment.