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

[fix] Use environment variable for GitHub API #362

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

martincostello
Copy link

Use GITHUB_API_URL (docs) for the request to the dependency snapshot endpoint so requests work in GitHub Enterprise Server where the API isn't found at api.github.com.

Resolves #312.

Use GITHUB_API_URL for the request to the dependency snapshot endpoint so requests work in GitHub Enterprise Server.
@CLAassistant
Copy link

CLAassistant commented May 29, 2024

CLA assistant check
All committers have signed the CLA.

@simar7
Copy link
Member

simar7 commented May 29, 2024

Thanks for the PR! Rather than passing this in as-is, can we define a custom variable that can be overwritten by the user if needed but has a default value of what we have today? That would ensure we don't break backwards compatibility with the existing users in case there's any issue with this change. WDYT?

@simar7
Copy link
Member

simar7 commented May 29, 2024

It would also be helpful if you can test this change and share the results with us.

Add an option to override the GitHub API URL to use - defaults to `$GITHUB_API_URL`.
@martincostello
Copy link
Author

Added the ability to override the value. I'm afraid I can't test this in our GitHub Enterprise instance as we're currently only trialling GitHub Advanced Security, and our license has now expired.

@martincostello
Copy link
Author

@simar7 Anything more you need me to do here?

@martincostello
Copy link
Author

Anyone?

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

Successfully merging this pull request may close these issues.

Upload SBoM to GitHub Enterprise: supported?
3 participants