action icon indicating copy to clipboard operation
action copied to clipboard

GitHub URL from context

Open lure8225 opened this issue 2 years ago • 2 comments

Hi, for using this in a GitHub enterprise context it would be necessary to get the base url from the context instead of hardcoding it to github.com

https://github.com/devcontainers/action/blob/5002ae5962899e0fd372f7affde2c3e176372682/src/generateDocs.ts#L120

I think it should be available from here

https://github.com/actions/toolkit/blob/04945c6048e796f86b5c4cf1965faa378af67480/packages/github/src/context.ts#L23C5-L23C5

Sorry that I currently am not able to directly do a PR for that.

lure8225 avatar Dec 06 '23 16:12 lure8225

This generated URL is pointing to documentation for a dev container Feature, which themselves are hosted in container registries. I want to understand the goal here better - is your team publishing Features to a container registry with the source code in your private GitHub enterprise instance?

cc/ @eljog

joshspicer avatar Dec 06 '23 21:12 joshspicer

Exactly, we are publishing features to a private OCI registry from a GHE instance. These features are then used for building images/devcontainers which our internal workspaces are using

lure8225 avatar Dec 07 '23 11:12 lure8225