Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
toshi0607 opened this issue Apr 13, 2022 · 3 comments

Comments

@toshi0607
Copy link
Contributor

toshi0607 commented Apr 13, 2022

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
reviewdog/action-stylelint#78

@kimromi
Copy link

kimromi commented Apr 13, 2022

I hope this is helpful.
reviewdog/reviewdog#1158 (comment)

@haya14busa
Copy link
Member

@toshi0607
Copy link
Contributor Author

I confirmed action-yamllint worked properly after merging this PR.
#19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants