Skip to content

Fix annotations links using github.com even for GHES #201

Closed

Description

@nv35

There are few locations were github.com is hardcoded, making it incompatible with github enterprise servers that are hosted on other domains.
From what I understood from these code lines, they are only cosmetic (sent as annotations in deployments).

runUri: `https://github.com/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}`,

return `https://github.com/${process.env.GITHUB_REPOSITORY}/blob/${process.env.GITHUB_SHA}/${pathValue}`;

There is GITHUB_SERVER_URL env var and some others to get the server domain.

Activity

  1. OliverMKing commented on Jun 27, 2022

    @OliverMKing
    Contributor

    Closed with #200 and action has been released. v4 (v4.1+) has this fix. Thanks!

  2. nv35 commented on Jun 29, 2022

    @nv35
    ContributorAuthor

    Oliver King (@OliverMKing) the pull request #200 that i've opened is about api calls sent to github.com. This issue is about cosmetic links shown to the user. I don't see any correction yet in the repo.

  3. OliverMKing commented on Jun 29, 2022

    @OliverMKing
    Contributor

    I misunderstood what you were saying in #200. Will reopen.

  4. github-actions commented on Jul 13, 2022

    @github-actions

    This issue is idle because it has been open for 14 days with no activity.

  5. added
    idle
    on Jul 13, 2022
  6. added
    backlog
    and removed
    idle
    on Oct 3, 2022
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

    backlog

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions