To crawl public GitHub repositories at scale, IMPACT requires a GitHub Personal Access Token (PAT). Unauthenticated requests to the GitHub API are capped at 60 requests per hour, whereas authenticated requests allow up to 5,000 requests per hour.
Here is how you can obtain and configure your token:
- Log in to your account on GitHub.
- Click your profile picture in the top-right corner and select Settings.
- Scroll to the bottom of the left sidebar and click Developer settings.
- In the left sidebar under Personal access tokens, click Tokens (classic).
- Click the Generate new token dropdown and select Generate new token (classic).
- Provide a descriptive name in the Note field (e.g.,
IMPACT Crawler). - Select an Expiration date (e.g., 30 days, or "No expiration" if only using it locally).
- Scopes: Do not select any checkboxes/scopes. Leaving all scopes unchecked creates a read-only token, which is the safest and sufficient permission level for public crawler tasks.
- Scroll to the bottom and click Generate token.
- Copy the token immediately (it will start with
ghp_...). You will not be able to see it again once you navigate away from the page.
- Create a
.envfile in the root of the project by copying the example environment file:cp .env.example .env
- Open the
.envfile and set theGITHUB_TOKENvariable to your copied token:GITHUB_TOKEN=ghp_yourTokenHere
Both the local dashboard and ecosystem crawler will automatically detect the .env file and use this token for all outgoing GitHub API calls.