Skip to content

fix: authenticate read-only GHCR revision checks - #35

Merged
Skaronator merged 1 commit into
mainfrom
fix/authenticate-ghcr-tag-check
Nov 1, 2026
Merged

Skaronator merged 1 commit into
mainfrom
fix/authenticate-ghcr-tag-check

Conversation

@Skaronator

Copy link
Copy Markdown
Contributor

Summary

  • Check GHCR revision availability with an authenticated pull-only token and a manifest HEAD request when GH_TOKEN is available.
  • Fix initial publication of Lidarr: anonymous token requests for its missing production package return 403 before any build. Authenticated checks can distinguish a missing manifest from an authentication failure.
  • Keep Docker registry login after successful image tests. No Docker auth config is created by this read-only check and credentials are not passed as command/build arguments or included in response diagnostics.
  • Accept only an authenticated manifest 404 as missing; refuse existing tags and fail closed on token errors, registry failures, redirects, and network errors. Non-GHCR and credential-free checks retain their existing Docker behavior.

Validation

  • go test -race ./...
  • go vet ./...
  • actionlint
  • git diff --check
  • Read-only live GHCR check with current CLI credentials: authenticated pull-token request returned HTTP 200; Lidarr missing manifest returned HTTP 404. The production GITHUB_TOKEN path remains to be verified after rollout.

Rollout

Independent of #34; merge both fixes before restarting production. This PR does not recover previously renamed draft releases, change package visibility/settings, or trigger publication. Existing draft reservations still need reviewed recovery before reruns.

@Skaronator
Skaronator merged commit a9907f3 into main Nov 1, 2026
1 check passed
@Skaronator
Skaronator deleted the fix/authenticate-ghcr-tag-check branch November 1, 2026 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant