In your Github account, navigate to Settings > Developer settings > Personal access tokens. Generate a new token with the required scopes (e.g., repo for full control of private repositories).Note: Treat API keys as sensitive information and never commit them to public repositories.