There is an issue where pulling a feature from ghcr.io will fail with a 403 if you have a GITHUB_TOKEN env var set for a GitHub Enterprise instance. The issue appears to stem from here as it assumes any GITHUB_TOKEN env var is a github.com token.
Possible solution
A possible solution could be to check for the existence of a GITHUB_HOST env var, and if it is set, only use the GITHUB_TOKEN for ghcr.io requests if it is set to github.com