reviewdog / action-tflint

Run tflint with reviewdog on pull requests to enforce best practices

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

reviewdog: failed to run 'git rev-parse --show-prefix': exit status 128

MariachiForHire opened this issue · comments

Hi -

I'm getting error: reviewdog: failed to run 'git rev-parse --show-prefix': exit status 128. Can someone help out?

Here is my action.yaml

name: reviewdog
on: [pull_request]
jobs:
  reviewdog:
    runs-on: ubuntu-latest
    steps:
     - name: Run tflint with reviewdog
       uses: reviewdog/action-tflint@master
       with:
        github_token: ${{ secrets.REVIEWDOGTOKEN}}
        level: warning # optional, default is error
        reporter: github-pr-check # optional, default is github-pr-check
        flags: --module # optional, default is --module

Hey!

You don't seem to have run actions/checkout at all. So you've got no code for reviewdog to run on.

Ahh thanks that worked. Do i have additional question, this only works for AWS, right?
I want to try it out in Azure.

Yay, glad that fixed the issue for you.

It looks like Azure support is experimental in tflint: terraform-linters/tflint#providers, but it's there