vk26 / action-fasterer

Github Action to run fasterer with reviewdog 🐶
MIT License
12 stars 6 forks source link

Git failure #6

Open antarr opened 1 year ago

antarr commented 1 year ago

I'm getting the failure below when running my job.

error

reviewdog: GitHubPullRequest needs 'git' command: failed to run 'git rev-parse --show-prefix': exit status 128
/usr/local/bundle/gems/fasterer-0.10.1/lib/fasterer/file_traverser.rb:86:in `write': Broken pipe @ io_write - <STDOUT> (Errno::EPIPE)

quality.yml

name: "Quality"
on:
  # push:
  #   branches: [ "main" ]
  pull_request:
    branches: [ "main" ]
permissions:
  contents: read
  pull-requests: write
concurrency:
  group: quality-${{ github.ref }}
  cancel-in-progress: true
env:
  SIMPLE_COV_REVIEW: true
jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v3
      - name: Set up Ruby
        run: echo 2.7.7 > .ruby-version
      - name: Install Ruby and gems
        uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
        with:
          bundler-cache: true
      # - name: Install Extra Gems
      #   run: gem install simplecov-json simplecov-review --no-document
      # - name: Fetch main for comparison
      #   run: git fetch origin main:refs/remotes/origin/main
      - name: fasterer
        uses: vk26/action-fasterer@v1
        with:
          github_token: ${{ secrets.github_token }}
          reporter: github-pr-review # Default is github-pr-check
      - name: Brakeman via Reviewdog
        uses: reviewdog/action-brakeman@v2
        with:
          brakeman_version: 5.4.1
          reporter: github-pr-review # Default is github-pr-check
      - name: Rubocop via Reviewdog
        uses: reviewdog/action-rubocop@v2
        with:
          rubocop_version: gemfile
          rubocop_extensions: rubocop-rails:gemfile rubocop-rspec:gemfile rubocop-performance:gemfile rubocop-faker:gemfile
          reporter: github-pr-review # Default is github-pr-check
recoder commented 1 year ago

I am also seeing this issue:

Run vk[2](https://github.com/recoder/{repo}/actions/runs/6276767889/job/17047165358?pr=2#step:11:2)6/action-fasterer@v1
  with:
    reporter: github-pr-review
    github_token: ***
    tool_name: fasterer
    level: error
/usr/bin/docker run --name ba111f2bbafaf467db6ec4f90044dd0ac_164bf[3](https://github.com/recoder/{repo}/actions/runs/6276767889/job/17047165358?pr=2#step:11:3) --label 9[4](https://github.com/recoder/{repo}/actions/runs/6276767889/job/17047165358?pr=2#step:11:4)3[5](https://github.com/recoder/{repo}/actions/runs/6276767889/job/17047165358?pr=2#step:11:5)1b --workdir /github/workspace --rm -e "INPUT_REPORTER" -e "INPUT_GITHUB_TOKEN" -e "INPUT_TOOL_NAME" -e "INPUT_LEVEL" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_ENVIRONMENT" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/{repo}/{repo}":"/github/workspace" 94351b:a111f2bbafaf4[6](https://github.com/recoder/{repo}/actions/runs/6276767889/job/17047165358?pr=2#step:11:6)[7](https://github.com/recoder/{repo}/actions/runs/6276767889/job/17047165358?pr=2#step:11:8)db6ec4f90044dd0ac  "***" "fasterer" "error" "github-pr-review"
reviewdog: GitHubPullRequest needs 'git' command: failed to run 'git rev-parse --show-prefix': exit status 12[8](https://github.com/recoder/{repo}/actions/runs/6276767889/job/17047165358?pr=2#step:11:9)
/usr/local/bundle/gems/fasterer-0.10.1/lib/fasterer/file_traverser.rb:86:in `write': Broken pipe @ io_write - <STDOUT> (Errno::EPIPE)