I’m using GHCR as my container registry. The GitOps automation we use breaks if an engineer specifies an image that doesn’t exist. For example, if the last built image is
ghcr.io/my-company/my-image:1.0 but the engineer specifies
ghcr.io/my-company/my-image:1.1 the automation breaks.
Is there a way use the GHCR v2 http API or the GitHub API to check if a specific image/tag combination exists? And what PAT scopes are needed for the check (if it is available)?