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

Does Frogbot support GHES #580

Open
esmaila opened this issue Nov 17, 2023 · 3 comments
Open

Does Frogbot support GHES #580

esmaila opened this issue Nov 17, 2023 · 3 comments
Labels
question Further information is requested

Comments

@esmaila
Copy link

esmaila commented Nov 17, 2023

Does Frogbot support Github Enterprise Server?
It is not clear from the documentation and when I tried it (using the JF_GIT_API_ENDPOINT) , I got the following error:

Frogbot
/opt/hostedtoolcache/frogbot/[RELEASE]/x64/frogbot scan-repository
14:56:24 [Info] Frogbot version: 2.19.2
Error: 4 [Error] expected 200 status code while received 406 status code with error:
GET https:///login?return_to=https%3A%2F%2F%2Frepos%2FCICD-Infra%2Ftemp-call-xray-lib-wkfls%2Fcontents%2F.frogbot%3Fref%3Dmain: 406 []
Error: The process '/opt/hostedtoolcache/frogbot/[RELEASE]/x64/frogbot' failed with exit code 1

@esmaila esmaila added the question Further information is requested label Nov 17, 2023
@eyalbe4
Copy link
Contributor

eyalbe4 commented Nov 17, 2023

@esmaila,
Frogbot supports all flavors of GitHub (Enterprise / Cloud / Self-hosted). We will improve the documentation to clarify this.
Will you be able to enable debug logging by adding the JFROG_CLI_LOG_LEVEL variable to your workflow with DEBUG as its value, and then sharing the complete log file with us here?

@esmaila
Copy link
Author

esmaila commented Nov 18, 2023

Frogbot
/opt/hostedtoolcache/frogbot/[RELEASE]/x64/frogbot scan-repository
09:55:34 [Info] Frogbot version: 2.19.2
09:55:34 [Debug] Reading config from file system. Looking for .frogbot/frogbot-config.yml
09:55:34 [Debug] frogbot-config.yml wasn't found in /runner/_work/temp-call-xray-lib-wkfls/temp-call-xray-lib-wkfls/.frogbot/frogbot-config.yml. Searching for it in upstream directories
09:55:34 [Debug] Attempting to download frogbot-config.yml from CICD-Infra/temp-call-xray-lib-wkfls
09:55:34 [Debug] The frogbot-config.yml will be downloaded from main branch
Error: 4 [Error] expected 200 status code while received 406 status code with error:
GET https:///login?return_to=https%3A%2F%2F%2Frepos%2FCICD-Infra%2Ftemp-call-xray-lib-wkfls%2Fcontents%2F.frogbot%3Fref%3Dmain: 406 []
Error: The process '/opt/hostedtoolcache/frogbot/[RELEASE]/x64/frogbot' failed with exit code 1

I have a package.json at the root level and therefore frogbot-config.yml shouldn't be required?
It is an npm project

@omerzi
Copy link
Member

omerzi commented Nov 19, 2023

Hey @esmaila, Frogbot usually tries to grab the frogbot-config.yml file from your repository to read its settings, but it's not mandatory, as Frogbot can operate using a configuration based on environment variables. The issue with the failing REST API suggests a possible omission in your configuration, likely related to the endpoint, such as the absence of the /api/v3 suffix. Typically, the endpoint for the GitHub enterprise server appears in this format: http(s)://HOSTNAME/api/v3. Could it be that you're missing the /api/v3 suffix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants