Linter configurations and GitHub workflows for linting source code.
Use this workflow if your repository consists of multiple file formats (e.g. Java, XML, Terraform). The Super Linter action is quite a beast but there is virtually nothing this action cannot lint.
Add a new workflow file like this one or add the following lines to a existing workflow:
call-lint-workflow:
uses: "riege/code-quality/.github/workflows/[email protected]"
The workflow terraform.yml
is intended for repositories consisting of Terraform files only. It's small and fast and properly checks Terraform configurations.
Usage:
jobs:
lint:
uses: riege/code-quality/.github/workflows/[email protected]
with:
skip_init: false
skip_validate: false
secrets: inherit
- use
skip_init: true
ifterraform init
doesn't work properly during workflow run. - use
skip_validate: true
ifterraform validate
doesn't work properly during workflow run. - use
secrets: inherit
if you need access to Terraform Cloud e.g. to use Terraform workspaces indata
sources.