Skip to content

Commit

Permalink
Added exit code flag in report cmd to fail pipeline on eval criteria …
Browse files Browse the repository at this point in the history
…failure (#45)
  • Loading branch information
sarthak77 authored Aug 13, 2024
1 parent c3c54c6 commit 638dd92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ runs:
then
export TRACEABLE_CLI_KEY_FILE_NAME=/tmp/ca_key.crt
fi
${GITHUB_WORKSPACE}/traceable ast scan report --output-format '${{ inputs.output_format }}' | sed 1,2d >> $GITHUB_STEP_SUMMARY
${GITHUB_WORKSPACE}/traceable ast scan report --exit-code --output-format '${{ inputs.output_format }}' | sed 1,2d >> $GITHUB_STEP_SUMMARY
shell: bash
- name: Stop scan
id: stop_scan
Expand All @@ -359,4 +359,4 @@ runs:
export TRACEABLE_CLI_KEY_FILE_NAME=/tmp/ca_key.crt
fi
${GITHUB_WORKSPACE}/traceable ast scan stop >/dev/null || true
shell: bash
shell: bash

0 comments on commit 638dd92

Please sign in to comment.