Skip to content

workflows: bump reviewdog/action-tflint from 1.20.0 to 1.21.0 #212

workflows: bump reviewdog/action-tflint from 1.20.0 to 1.21.0

workflows: bump reviewdog/action-tflint from 1.20.0 to 1.21.0 #212

Workflow file for this run

name: Run linting on pull requests
on:
pull_request:
workflow_dispatch:
jobs:
# Runs 'tfsec': https://github.com/aquasecurity/tfsec-pr-commenter-action
tfsec:
name: tfsec PR commenter
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v4
- name: tfsec
if: ${{ github.event_name == 'pull_request' }}
uses: aquasecurity/[email protected]
with:
github_token: ${{ github.token }}
commenter_version: v0.1.10
- name: tfsec
if: ${{ github.event_name == 'workflow_dispatch' }}
run: docker run --rm -t -v "$(pwd):/src" aquasec/tfsec /src
tflint:
name: tflint PR commenter
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v4
- name: tflint
if: ${{ github.event_name == 'pull_request' }}
uses: reviewdog/[email protected]
with:
github_token: ${{ secrets.github_token }}
working_directory: terraform
fail_on_error: "true"
- name: tflint
if: ${{ github.event_name == 'workflow_dispatch' }}
run: docker run --rm -v "$(pwd)/terraform:/data" -t ghcr.io/terraform-linters/tflint