Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
maruloop committed Feb 10, 2024
1 parent e6153f6 commit fa58a9d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ inputs:
description: 'Additional reviewdog flags'
default: ''
### Variables for terraform validate ###
terraform_init_options:
description: 'options for terraform init to pass backend configuration and so on'
envvar:
description: 'Environment variables for terraform init'
description: 'Environment variables for terraform init to pass backend configuration'
terraform_version:
description: 'The terraform version to install and use. The default is `latest`'
runs:
Expand Down
4 changes: 3 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ echo "${INPUT_ENVVAR}" | while IFS= read -r line; do
export line
done

terraform init
printenv

terraform init ${INPUT_TERRAFORM_INIT_OPTIONS}
terraform validate -json \
| jq -r '.diagnostics[] | "\(.range.filename):\(.range.start.line):\(.range.start.column): \(.detail)"' \
| reviewdog -efm="%f:%l:%c:%m" \
Expand Down
2 changes: 0 additions & 2 deletions testdata/.gitignore

This file was deleted.

0 comments on commit fa58a9d

Please sign in to comment.