Skip to content

Conversation

@jorgee
Copy link
Contributor

@jorgee jorgee commented Dec 15, 2025

This pull request updates the authentication logic for the GithubRepositoryProvider to prioritize a user-specified token over the GITHUB_TOKEN environment variable, and adds a corresponding test to ensure this behavior.

Authentication logic improvements:

  • Updated the getUser() and getPassword() methods in GithubRepositoryProvider to use a user-specified token (via the provider config) before falling back to the GITHUB_TOKEN environment variable. This ensures that explicit credentials take precedence over environment-based ones.

Testing enhancements:

  • Added a new test to GithubRepositoryProviderTest to verify that when both a user-specified token and a GITHUB_TOKEN environment variable are present, the user-specified token is used for authentication.

@netlify
Copy link

netlify bot commented Dec 15, 2025

Deploy Preview for nextflow-docs-staging canceled.

Name Link
🔨 Latest commit 91b02a4
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs-staging/deploys/69400409640528000803e00f

@bentsherman bentsherman merged commit d01cbde into master Dec 15, 2025
25 checks passed
@bentsherman bentsherman deleted the fix-github-provider-with-token branch December 15, 2025 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants