Skip to content

Commit

Permalink
feat: tf token support (#33)
Browse files Browse the repository at this point in the history
Co-authored-by: Johnnie Ho <[email protected]>
  • Loading branch information
tjespers and Silvest89 authored Jul 1, 2024
1 parent 45eb4c5 commit b5e694c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ inputs:
workdir:
description: 'Working directory relative to the root directory.'
default: '.'
terraform_cloud_token:
description: 'The terraform token for authentication with private registries.'
default: ''
### Flags for reviewdog ###
level:
description: 'Report level for reviewdog [info,warning,error]'
Expand Down
1 change: 1 addition & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ wget -q https://releases.hashicorp.com/terraform/"${TERRAFORM_VERSION}"/terrafor
&& rm -rf ./terraform_"${TERRAFORM_VERSION}"_linux_amd64.zip

export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}"
export TF_TOKEN_app_terraform_io="${INPUT_TERRAFORM_CLOUD_TOKEN}"

jq_script='
.diagnostics[]
Expand Down

0 comments on commit b5e694c

Please sign in to comment.