diff --git a/dist/index.js b/dist/index.js index 9de95d7..16749fc 100644 --- a/dist/index.js +++ b/dist/index.js @@ -38660,7 +38660,7 @@ function runAction(options) { const repo = repository.split("/"); const commentID = (_b = context.payload.pull_request) === null || _b === void 0 ? void 0 : _b.number; let commentBody = '
![](https://www.veracode.com/sites/default/files/2022-04/logo_1.svg)
'; - commentBody += "
Veraocde SCA Scan finished with exit code " + code + "\n";
+                        commentBody += "
Veracode SCA Scan finished with exit code " + code + "\n";
                         commentBody += '\n
Veracode SCA Scan details

\n'; commentBody += output; //.replace(/ /g, '    '); commentBody += '

\n
'; @@ -38680,7 +38680,7 @@ function runAction(options) { } // if scan was set to fail the pipeline should fail and show a summary of the scan results if (code != null && code > 0) { - let summary_info = "Veraocde SCA Scan failed with exit code " + code + "\n" + output; + let summary_info = "Veracode SCA Scan failed with exit code " + code + "\n" + output; core.setFailed(summary_info); } //run(options,core.info); @@ -40653,4 +40653,4 @@ module.exports = JSON.parse('[[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"] /******/ module.exports = __webpack_exports__; /******/ /******/ })() -; \ No newline at end of file +; diff --git a/src/srcclr.ts b/src/srcclr.ts index 268ef51..aa5a718 100644 --- a/src/srcclr.ts +++ b/src/srcclr.ts @@ -202,7 +202,7 @@ export async function runAction (options: Options) { let commentBody = '
![](https://www.veracode.com/sites/default/files/2022-04/logo_1.svg)
' - commentBody += "
Veraocde SCA Scan finished with exit code "+code+"\n"
+                    commentBody += "
Veracode SCA Scan finished with exit code "+code+"\n"
                     commentBody += '\n
Veracode SCA Scan details

\n' commentBody += output //.replace(/ /g, '    '); commentBody += '

\n
' @@ -231,7 +231,7 @@ export async function runAction (options: Options) { // if scan was set to fail the pipeline should fail and show a summary of the scan results if ( code != null && code > 0 ){ - let summary_info = "Veraocde SCA Scan failed with exit code "+code+"\n"+output + let summary_info = "Veracode SCA Scan failed with exit code "+code+"\n"+output core.setFailed(summary_info) } //run(options,core.info);