Open lukasz-mitka opened 1 year ago
cache
Doable, PR welcome
token
Not sure about this. This is not the same situation as setup-terraform
, which can accept Terraform credentials and write them somewhere where they will only influence Terraform.
Accomplishing this means writing out GITHUB_TOKEN
to $GITHUB_ENV
. Which then affects other programs potentially using that environment variable.
I'd only be inclined to do something like this by default with an alternative env var, e.g. TFLINT_GITHUB_TOKEN
, which will require an upstream change to the CLI and won't be backwards compatible with any existing versions.
version - just run it
Doesn't seem like a suitable default. Printing debug logs on which version was downloaded, sure, and maybe even an output based on that. setup-terraform
doesn't call terraform version
. And tflint --version
outputs human-readable text, not JSON, so it's not suitable for programmatic usage.
I'd only be inclined to do something like this by default with an alternative env var
Clarifying: it probably makes sense to offer this as an input, just not on by default. At least not without a major version bump.
Instead of requiring users to setup cache and call init just do it as part of this action.
Could become
terraform-linters/setup-tflint
action