reviewdog / action-shellcheck

Run shellcheck with reviewdog
https://github.com/marketplace?type=actions&query=reviewdog
MIT License
101 stars 20 forks source link

fatal: ls-files -i must be used with either -o or -c #21

Closed electronjoe closed 3 years ago

electronjoe commented 3 years ago

I'm actively exploring what's going on here - in Magma's GH Action execution of hadolint. This has started failing very recently with the below.

Error message.

 Running hadolint with reviewdog 🐶 ...
  reviewdog: This is Pull-Request from forked repository.
  GitHub token doesn't have write permission of Review API, so reviewdog will
  report results via logging command [1] and create annotations similar to
  github-pr-check reporter as a fallback.
  fatal: ls-files -i must be used with either -o or -c
  [1]: https://help.github.com/en/actions/automating-your-workflow-with-github-actions/development-tools-for-github-actions#logging-commands
  parse error: Invalid numeric literal at line 1, column 7
  reviewdog: parse error: failed to unmarshal rdjson (DiagnosticResult): proto: syntax error (line 1:1): unexpected token 
Error: Process completed with exit code 1.

Our GH Action.

name: reviewdog
on: [pull_request]
jobs:
  shellcheck:
    name: runner / shellcheck
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - name: shellcheck
        uses: reviewdog/action-shellcheck@v1
        with:
          github_token: ${{ secrets.github_token }}
          filter_mode: added # Any added or changed content.
          reporter: github-pr-review # Post code review comments. Falls back to Annotations.
          pattern: "*.sh" # Optional.
          # Other options omitted here but possible.
          # - fail_on_error
          # - path
          # - exclude
          # - shellcheck_flags
electronjoe commented 3 years ago

I was in the completely wrong repo - meant to scrape / post this issue in hadolint. Turns out there was a bug already and it's been addressed! Thanks to reviewdog/hadolint team!

electronjoe commented 3 years ago

See https://github.com/reviewdog/action-hadolint/issues/54