Skip to content

Commit

Permalink
add break pipeline support
Browse files Browse the repository at this point in the history
  • Loading branch information
julz0815 committed Nov 14, 2022
1 parent 8658244 commit 8cd01d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions importer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//

const fs = require('fs');
const core = require('@actions/core');
//const core = require('@actions/core');
const processPipelineFlaws = require('./pipeline').processPipelineFlaws;
const processPolicyFlaws = require('./policy').processPolicyFlaws;
const label = require('./label');
Expand Down Expand Up @@ -82,7 +82,7 @@ async function importFlaws(options) {
// add break build functionality
if ( fail_build == "true" ){
if ( internal_flaw_count > 0 ){
core.info('There are Veracode flaws found that require the build to fail, please review generated GitHub issues')
console.log('There are Veracode flaws found that require the build to fail, please review generated GitHub issues')
core.setFailed('There are Veracode flaws found that require the build to fail, please review generated GitHub issues')
}
}
Expand Down

0 comments on commit 8cd01d9

Please sign in to comment.