Skip to content

Support GitHub Enterprise Instances #74

@maxmoehl

Description

@maxmoehl

Currently this action does not supply a API URL to the GitHub client:

ghc: github.NewClient(oauth2.NewClient(ctx, oauth2.StaticTokenSource(
&oauth2.Token{
AccessToken: token,
},
))),

According to the documentation this causes the client to default to the GitHub.com API. Within Actions the correct API URL for the instance is available as GITHUB_API_URL.

I'd be happy to provide a PR to fix this!

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