terraform-linters / setup-tflint

A GitHub action that installs Terraform linter TFLint
MIT License
149 stars 38 forks source link

disable `github_token` in GHES #193

Closed bendrucker closed 1 year ago

bendrucker commented 1 year ago

If GitHub Actions is running on a server other than github.com, this PR makes the github_token empty by default. This works by default for GHES users, instead of requiring them to override the default token which is mismatched.

I spotted this technique in https://github.com/actions/setup-node.

Replaces #186.