Skip to content

Conversation

@lawson-888
Copy link

Summary

Added GitHub token authentication support to prevent API rate limiting issues when accessing GitHub repositories.

Changes

  • Added get_authenticated_headers() function that reads GITHUB_TOKEN from environment variables
  • Updated all HTTP requests to use authenticated headers instead of static headers
  • Maintains backward compatibility - works with or without token

Benefits

  • Prevents GitHub API rate limiting when downloading requirements.txt and environment.yml files
  • Improves reliability for users processing multiple repositories
  • No breaking changes to existing functionality

Usage

Set the GITHUB_TOKEN environment variable with a valid GitHub personal access token to enable authentication.

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.

1 participant