Frontmatter
| id | 9039 |
| title | Feat: Support .env token auth for DevRank Services |
| state | Closed |
| labels | enhancementai |
| assignees | tobiu |
| createdAt | Feb 7, 2026, 10:01 PM |
| updatedAt | Feb 7, 2026, 10:06 PM |
| githubUrl | https://github.com/neomjs/neo/issues/9039 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | 8930 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Feb 7, 2026, 10:06 PM |
Feat: Support .env token auth for DevRank Services
tobiu added parent issue #8930 on Feb 7, 2026, 10:01 PM
tobiu assigned to @tobiu on Feb 7, 2026, 10:02 PM

tobiu
Feb 7, 2026, 10:05 PM
Input from Gemini 3 Pro:
✦ Implemented support for environment variable authentication in DevRank services.
Changes
- CLI Initialization:
apps/devrank/services/cli.mjsnow initializesdotenv(withquiet: true) to load.envfiles from the project root.- Auth Logic:
apps/devrank/services/GitHub.mjsnow prioritizesprocess.env.GH_TOKENorprocess.env.GITHUB_TOKENbefore falling back to theghCLI.Verification
- Services can now run in environments without
ghCLI authentication if a token is provided via.env.ghCLI fallback remains active for local development convenience.Code committed to
devbranch.
tobiu closed this issue on Feb 7, 2026, 10:06 PM
Update the DevRank GitHub service (
apps/devrank/services/GitHub.mjs) to support authentication via environment variables (GH_TOKENorGITHUB_TOKEN) usingdotenv.This ensures the services can run in environments where the
ghCLI is not authenticated or installed, or when the user prefers using an.envfile.Plan:
dotenvinapps/devrank/services/cli.mjsto load the.envfile from the project root.apps/devrank/services/GitHub.mjsmethod#getAuthTokento checkprocess.envbefore attempting theghCLI fallback.References:
apps/devrank/services/GitHub.mjsapps/devrank/services/cli.mjspackage.json(dotenv dependency)