Skip to content

Nightly E2E handler hardcodes api.github.com ignoring GITHUB_URL env var for GitHub Enterprise #7054

@aashu2006

Description

@aashu2006

User Request

Type: bug
Target: Console Application
Submitted by: @aashu2006
Console Request ID: 35acc587-d219-4c10-b5f3-39e2b7912b91

Description

What happened:
In pkg/api/handlers/nightly_e2e.go:335, 427, 568, and 624, githubAPIBase is a hardcoded constant used across fetchWorkflowRuns, detectGPUFailure, fetchGuideYAMLFiles, and fetchBlob. The FeedbackHandler correctly uses resolveGitHubAPIBase() to honour GITHUB_URL. All nightly E2E GitHub API calls silently break in GitHub Enterprise environments.

What I expected:
All GitHub API calls in NightlyE2EHandler should use resolveGitHubAPIBase() consistent with FeedbackHandler.

Steps to reproduce:

  1. Set GITHUB_URL to a GitHub Enterprise instance
  2. Trigger any nightly E2E endpoint
  3. Observe requests go to api.github.com instead of the configured GHE host

This issue was automatically created from the KubeStellar Console.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ai-fix-requestedai-processingAI is currently processing this issuekind/bugCategorizes issue or PR as related to a bug.triage/acceptedIndicates an issue or PR is ready to be actively worked on.triage/neededNeeds triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions