Skip to content

Pull request pipeline not working on GitHub Enterprise Server due to default GitHub API URL #513

Description

@mikael-andersson91

I have been attempting to use the pull request pipeline on GitHub Actions for repositories hosted on our GitHub Enterprise Server Instance and I continuously get this error:

⨯ pipeline: pr-pipeline, error: GET https://api.github.com/repos/RPA-Global/ActionsExperiment/commits/17af711881ebf25800eb6ceeee75937c36346c8c/pulls: 401 Bad credentials []

image

Seems like an indication that a hard-coded default URL for the GitHub API (api.github.com) is used instead of the GITHUB_SERVER_URL environment variable or the github.api_url from the github context for the relevant GET requests to look at the pull request. Maybe one of these options could be used to make commitsar more flexible for various GitHub hosting options?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions