https://github.com/terraform-linters/tflint-load-config-action
GitHub Action for loading TFLint configuration from a GitHub repository
https://github.com/terraform-linters/tflint-load-config-action
Last synced: 5 months ago
JSON representation
GitHub Action for loading TFLint configuration from a GitHub repository
- Host: GitHub
- URL: https://github.com/terraform-linters/tflint-load-config-action
- Owner: terraform-linters
- License: mpl-2.0
- Created: 2021-07-13T19:02:37.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-19T19:49:02.000Z (9 months ago)
- Last Synced: 2025-07-05T14:16:26.745Z (5 months ago)
- Language: TypeScript
- Size: 2.67 MB
- Stars: 8
- Watchers: 4
- Forks: 2
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tflint Load Config Action
GitHub Action for copying a [TFLint](https://github.com/terraform-linters/tflint) configuration file from a remote repository.
## Usage
```yaml
name: TFLint
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: terraform-linters/tflint-load-config-action@v1
with:
source-repo: me/tflint-config
- uses: terraform-linters/setup-tflint@v4
- run: tflint --format compact
```
### Action inputs
| Name | Description | Default |
| --- | --- | --- |
| `source-repo` | (Required) The repository from which the configuration will be copied. Format: `owner/name` ||
| `source-path` | Path to the configuration file in the remote repository | `.tflint.hcl` |
| `source-ref` | Ref or branch of the remote repository to target | |
| `destination-path` | Path where configuration file will be written locally | `$HOME/.tflint.hcl` |
| `token` | Github personal access token, [required](https://docs.github.com/en/actions/reference/authentication-in-a-workflow#granting-additional-permissions) for reading from private repositories. ||
### Action outputs
The following outputs can be used by subsequent workflow steps.
| Name | Description |
| --- | --- |
| `path` | Path to the configuration file |
## Releasing
```sh
npm version (major|minor|patch) && git push --follow-tags
```