-
Notifications
You must be signed in to change notification settings - Fork 79
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
Frogbot PR scan does not work with yarn using private repo #819
Comments
After a number of experiments we've found out that - params:
git:
repoName: PRIVATE_GH_REPO
branches:
- main
scan:
projects:
- workingDirs:
- '.' Leaving the bug open for Frogbot maintainers to decide if they want to close or to fix it so it works with |
Hello @nerijusk and thank you for using Frogbot!
|
|
I did not mention, but we use yarn workspaces. Just tried to remove Frogbot config file and it correctly assumed the top level is yarn, but incorrectly detected that subfolders use npm, whereas we only have top level Thanks for the questions - they've been helpful in understanding what our config should be. |
Describe the bug
Frogbot seems to not pass token to yarn for private repo access when scanning pull requests. Here's the error:
GitHub workflow used to launch frogbot PR scan:
.yarnrc.yml
content:.frogbot/frogbot-config.yml
content:However, if I check out frogbot repo and build the tool locally and then execute with additional environment variables for owner and repo names, PR number, it works then. It looks as something is lost when frobgbot is run through the GitHub action. I've reproduced successful local run in GitHub workflow. It's strange, but this works:
The strangest part is that without checkout and
yarn install
steps it gets the same auth error as using frogbot action. Probably something is set/populated in GitHub runner with those steps. Also, if I do checkout andyarn install
before using the GitHub action, it too gets the auth error.And, of course, it is inefficient every time checking out and building the tool. I'd rather use the GitHub action.
Current behavior
Frogbot PR scan fails when yarn tries to fetch packages from private repo.
Reproduction steps
No response
Expected behavior
No response
JFrog Frogbot version
v2 of GitHub action
Package manager info
yarn
Git provider
GitHub
JFrog Frogbot configuration yaml file
No response
Operating system type and version
Ubuntu 24.04
JFrog Xray version
No response
The text was updated successfully, but these errors were encountered: