reviewdog / action-yamllint

Run yamllint with reviewdog
https://github.com/marketplace?type=actions&query=reviewdog
MIT License
19 stars 13 forks source link

reviewdog: PullRequest needs 'git' command: failed to run 'git rev-parse --show-prefix': exit status 128 #18

Closed toshi0607 closed 2 years ago

toshi0607 commented 2 years ago

Start failing without any changes in YAML file

YAML

name: yamllint
on:
  pull_request:
    paths:
    - '**/*.yaml'
    - '**/*.yml'
jobs:
  yamllint:
    name: yamllint
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
    - uses: reviewdog/action-yamllint@v1
      with:
        github_token: ${{ secrets.github_token }}
        reporter: github-pr-review

Log

yamllint 1.26.3
reviewdog: PullRequest needs 'git' command: failed to run 'git rev-parse --show-prefix': exit status 128
Traceback (most recent call last):
  File "/usr/local/bin/yamllint", line 8, in <module>
    sys.exit(run())
  File "/usr/local/lib/python3.10/site-packages/yamllint/cli.py", line 210, in run
    prob_level = show_problems(problems, file, args_format=args.format,
  File "/usr/local/lib/python3.10/site-packages/yamllint/cli.py", line [11](https://github.com/xxxxxxx/releases/runs/yyyyyy?check_suite_focus=true#step:4:11)1, in show_problems
    print(Format.parsable(problem, file))
BrokenPipeError: [Errno 32] Broken pipe

similar error in reviewdog/action-stylelint https://github.com/reviewdog/action-stylelint/issues/78

kimromi commented 2 years ago

I hope this is helpful. https://github.com/reviewdog/reviewdog/issues/1158#issuecomment-1097649732

haya14busa commented 2 years ago

https://github.com/reviewdog/reviewdog/issues/1158#issue-1202862728

toshi0607 commented 2 years ago

I confirmed action-yamllint worked properly after merging this PR. https://github.com/reviewdog/action-yamllint/pull/19