Skip to content

Load TFLint Config

Actions
Loads a TFlint configuration file from a remote GitHub repository
v2.0.0
Latest
Star (7)

tflint Load Config Action

GitHub Action for copying a TFLint configuration file from a remote repository.

Usage

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 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

npm version (major|minor|patch) && git push --follow-tags

Load TFLint Config is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Loads a TFlint configuration file from a remote GitHub repository
v2.0.0
Latest

Load TFLint Config is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.