Workflow failed
maxbaluev opened this issue · comments
Codereviewer workflow failed with obscure error. I have the same problem with public and private forks.
My config:
name: AI Code Reviewer
on:
pull_request:
types:
- opened
- synchronize
permissions: write-all
jobs:
review:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: AI Code Reviewer
uses: freeedcom/ai-codereviewer@main
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENAI_API_MODEL: "gpt-4" # Optional: defaults to "gpt-4"
exclude: "**/*.json, **/*.md" # Optional: exclude patterns separated by commas
I am also experiencing the same error.
me too
@villesau Can you help us?
Getting the same error but I'm using API key for chatGPT 3.5 not sure if it is related (will it even work with 3.5?)
Does it fail already on pull request open or with subsequent commits?
Does it fail already on pull request open or with subsequent commits?
In both cases it crashes.
Same Error
Unfortunately I'm not able to reproduce this so I would really need help to understand this better.
I am facing the same issue. It looks like it fails on private repos which should not be the case since it uses GITHUB_TOKEN for auth.
Could it be some sort of permission issue? I'm successfully using this on private repos my self.
I'm successfully using this on private repos my self.
@villesau Are you using GITHUB_TOKEN
that is automatically generated by GitHub during every action or a manually generated access token?
It seems like it fails at the diff. The diff url gives a 404 page not found error.
Could it be some sort of permission issue?
I am not sure, even on one of my repos that I have full access to, I can't run it. It uses other actions like Coverage Monitor that also writes to the PR and it runs without any issues.
I seem to get it to work using @octokit/action
instead of @octokit/rest
and also have to switch to node20
.
Should I submit a PR?
I see Page not found
error as above