Skip to content

Commit

Permalink
Merge pull request #4 from echoboomer/v1.0.5
Browse files Browse the repository at this point in the history
Final fix for parsing result of test incorrectly.
  • Loading branch information
echoboomer authored Sep 9, 2020
2 parents 852f895 + 60cfa81 commit 14eb5dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/command
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function terraform-opa-run() {
echo ""

# Fail the pipeline step entirely if the option is enabled to enforce that behavior.
if [[ ${OPA_PASS} == "false" ]]; then
if [[ $(echo ${OPA_PASS} | jq) == false ]]; then
if [[ "${FAIL_STEP}" == true ]]; then
echo -e "${cRed}[!] Terraform plan does not meet the policy requirements.${cNone}"
exit 1
Expand Down
1 change: 1 addition & 0 deletions plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ description: Runs Open Policy Agent against Terraform plans.
author: https://github.com/echoboomer
requirements:
- docker
- jq
configuration:
properties:
debug:
Expand Down

0 comments on commit 14eb5dc

Please sign in to comment.