When attempting to create a Proxy Cache project in Harbor version v2.7.1+vmware using GitHub GHCR as the registry source, the following error is encountered:
bad request: unsupported registry type github-ghcr
This prevents users from configuring GitHub GHCR as a proxy target.
The registry type github-ghcr is not supported in the PERMITTED_REGISTRY_TYPES_FOR_PROXY_CACHE configuration in Harbor versions prior to v2.8.2.
In Harbor v2.8.2, support for github-ghcr as a valid proxy registry type was officially introduced. Therefore, attempting to use it in v2.7.1+vmware results in the "unsupported registry type" error during project creation.
To resolve this issue and enable GitHub GHCR as a proxy cache source, you must upgrade Harbor to version v2.8.2 or later, where github-ghcr is supported.