Skip to content

Commit

Permalink
feat: try without complete path
Browse files Browse the repository at this point in the history
  • Loading branch information
triat committed Nov 7, 2020
1 parent c0e5a92 commit 18162dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The action requires the https://github.com/actions/checkout before to download t
## Inputs

* `tfsec_actions_comment` - (Optional) Whether or not to comment on GitHub pull requests. Defaults to `true`.
* `tfsec_actions_working_dir` - (Optional) Terraform working directory location. Defaults to `'.'`.
* `tfsec_actions_working_dir` - (Optional) Terraform working directory location. Multiple folders allowed, separated by spaces. Defaults to `'.'`.
* `tfsec_exclude` - (Optional) Provide checks via `,` without space to exclude from run. No default
* `tfsec_version` - (Optional) Specify the version of tfsec to install. Defaults to the latest

Expand Down
6 changes: 3 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/bash

# Comment on the pull request if necessary.
# Add specific directory if any
if [ "${INPUT_TFSEC_ACTIONS_WORKING_DIR}" != "" ] && [ "${INPUT_TFSEC_ACTIONS_WORKING_DIR}" != "." ]; then
TFSEC_WORKING_DIR="/github/workspace/${INPUT_TFSEC_ACTIONS_WORKING_DIR}"
TFSEC_WORKING_DIR="${INPUT_TFSEC_ACTIONS_WORKING_DIR}"
else
TFSEC_WORKING_DIR="/github/workspace/"
TFSEC_WORKING_DIR="."
fi

# grab tfsec from GitHub (taken from README.md)
Expand Down

0 comments on commit 18162dc

Please sign in to comment.