Make container registry support Apple Container (basic auth) (#36920)

Fix #36907
This commit is contained in:
wxiaoguang authored and GitHub committed 2026-03-18 23:43:44 +00:00
1 parent 18c65965ab
commit 00060ff73c
3 files changed
+28 -11

No files matched your search

@@ -88,7 +88,10 @@ func TestPackageContainer(t *testing.T) {
Token string `json:"token"`
}
defaultAuthenticateValues := []string{`Bearer realm="` + setting.AppURL + `v2/token",service="container_registry",scope="*"`}
defaultAuthenticateValues := []string{
`Bearer realm="` + setting.AppURL + `v2/token",service="container_registry",scope="*"`,
`Basic realm="Gitea Container Registry"`,
}
t.Run("Anonymous", func(t *testing.T) {
defer tests.PrintCurrentTest(t)()