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

Problem: Didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. #104

Open
thigosaquette opened this issue Jun 6, 2023 · 9 comments

Comments

@thigosaquette
Copy link

The app response:

Seems you are using me but didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. you could follow readme for more information.

My .github/workflow/cr.yml config:
Screenshot 2023-06-06 111344

And my github variables:
Screenshot 2023-06-06 111420

@anc95
Copy link
Owner

anc95 commented Jun 6, 2023

@thigosaquette You are using github action, and add the OPENAI_API_KEY in Secrets is needed.

@thigosaquette
Copy link
Author

@anc95, when i insert OPENAI_API_KEY on Action Secrets too, the code reviewer bot don't review anymore. I tried insert in the Codespace and Dependabot Secrets too.

@anc95
Copy link
Owner

anc95 commented Jun 7, 2023

@thigosaquette Do you find any logs in the action execution, there might skip the review in some cases, and it would print in the console.

@loloxwg
Copy link

loloxwg commented Jun 23, 2023

the code reviewer bot don't review anymore too

@bjwswang
Copy link

the code reviewer bot don't review anymore too

+1 code review no more working

@anc95
Copy link
Owner

anc95 commented Jun 27, 2023

@loloxwg @bjwswang Please check if you have an available API key set. I just checked the server log. The two top errors are 1. 429, you exceed your API key quota. 2. 401, Invalid OpenAI API Key

@FFFiend
Copy link

FFFiend commented Jul 11, 2023

Anyone still facing this problem? I tried and am running into the same issue as OP.

@fynnfluegge
Copy link

fynnfluegge commented Jul 12, 2023

Use pull_request_target instead of pull_request, since it has no access to secrets

on:
  pull_request_target:
    types: [opened, reopened, synchronize]

@feilen
Copy link

feilen commented Sep 29, 2023

Has anyone been having luck with this? It's been non-functional for me so far. pull_request_target didn't help.

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

7 participants