-
Notifications
You must be signed in to change notification settings - Fork 24
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
Support to set GITHUB_API_URL as input to the action #81
Comments
It reads the API URL from the actions runtime environment. The runner knows what it should be point at and that is what is being utilized. |
I am running action workflow on my enterprise GHES, instead of using my GHES url it is using api.github.com url while submitting the dependency snapshot, see below log trace ... Error: HTTP Status 500 for request POST https://api.github.com/repos/buildNow-sandbox-poc/poc-build-maven/dependency-graph/snapshots /var/lib/github-runner/buildnow-java-runner/_work/_actions/advanced-security/maven-dependency-submission-action/571e99aab1055c2e71a1e2309b9691de18d6b7d6/webpack:/maven-dependency-tree-action/node_modules/@github/dependency-submission-toolkit/dist/index.js:396 |
I cannot reproduce this, I have tested against GHES 3.13 using this action and with no parameters it correctly uploads to the GHES server the findings. I was using What version of the action are you using? Have you got any environment variables set that could be impacting the default GitHub server URLs? |
how to pass custom github api url to the action, as it is always using api.github.com to upload the dependency-graph.
The text was updated successfully, but these errors were encountered: