| `tflint-github-token` / `TF_TFLINT_GITHUB_TOKEN` | Github token used to access to Github API to download `tflint plugins` on GitHub avoiding hitting GitHub’s rate limit for anonymous API requests. | `$GITHUB_TOKEN` |
In addition to a textual report in the console, this job produces the following reports, kept for one day:
@@ -570,6 +571,8 @@ In addition to a textual report in the console, this job produces the following
| `$TF_PROJECT_DIR/reports/tflint.xunit.xml` | [xUnit](https://en.wikipedia.org/wiki/XUnit) test report(s) | [GitLab integration](https://docs.gitlab.com/ci/yaml/artifacts_reports/#artifactsreportsjunit) |
When the project does not contains the file `.tflint.hcl` or provide a `TF_TFLINT_CONFIG_FILE`, the default lint configuration is built using tflint plugings `tflint-ruleset-aws`, `tflint-ruleset-azurerm` and `tflint-ruleset-google`.
### `tf-tftest` job
[tftest](https://developer.hashicorp.com/terraform/language/tests) is a native Terraform testing framework and uses the following variables:
"description":"tflint [configuration file](https://github.com/terraform-linters/tflint/blob/master/docs/user-guide/config.md) (relative to `$TF_PROJECT_DIR`)",
"default":".tflint.hcl"
},
{
"name":"TF_TFLINT_GITHUB_TOKEN",
"description":"Github token used to access to Github API to download `tflint plugins` on GitHub avoiding hitting GitHub’s rate limit for anonymous API requests. *Note* default installed tflint pluging are `tflint-ruleset-aws`, `tflint-ruleset-azurerm` and `tflint-ruleset-google`.",
description:tflint [configuration file](https://github.com/terraform-linters/tflint/blob/master/docs/user-guide/config.md) (relative to `$TF_PROJECT_DIR`)
default:.tflint.hcl
tflint-github-token:
description:Github token used to access to Github API to download `tflint plugins` on GitHub avoiding hitting GitHub’s rate limit for anonymous API requests.