@@ -22,6 +22,7 @@ func TestPrivateRegistriesService_ListOrganizationPrivateRegistries(t *testing.T
2222
2323 mux .HandleFunc ("/orgs/o/private-registries" , func (w http.ResponseWriter , r * http.Request ) {
2424 testMethod (t , r , "GET" )
25+ testHeader (t , r , "X-Github-Api-Version" , "2026-03-10" )
2526 testFormValues (t , r , values {
2627 "page" : "2" ,
2728 })
@@ -104,6 +105,7 @@ func TestPrivateRegistriesService_CreateOrganizationPrivateRegistry(t *testing.T
104105 assertNilError (t , json .NewDecoder (r .Body ).Decode (& v ))
105106
106107 testMethod (t , r , "POST" )
108+ testHeader (t , r , "X-Github-Api-Version" , "2026-03-10" )
107109 if ! cmp .Equal (v , input ) {
108110 t .Errorf ("Request body = %+v, want %+v" , v , input )
109111 }
@@ -174,6 +176,7 @@ func TestPrivateRegistriesService_CreateOrganizationPrivateRegistry_OIDC(t *test
174176 assertNilError (t , json .NewDecoder (r .Body ).Decode (& v ))
175177
176178 testMethod (t , r , "POST" )
179+ testHeader (t , r , "X-Github-Api-Version" , "2026-03-10" )
177180 if ! cmp .Equal (v , input ) {
178181 t .Errorf ("Request body = %+v, want %+v" , v , input )
179182 }
@@ -228,6 +231,7 @@ func TestPrivateRegistries_UpdateOrganizationPrivateRegistry_OIDC(t *testing.T)
228231 assertNilError (t , json .NewDecoder (r .Body ).Decode (& v ))
229232
230233 testMethod (t , r , "PATCH" )
234+ testHeader (t , r , "X-Github-Api-Version" , "2026-03-10" )
231235 if ! cmp .Equal (v , input ) {
232236 t .Errorf ("Request body = %+v, want %+v" , v , input )
233237 }
@@ -261,6 +265,7 @@ func TestPrivateRegistriesService_CreateOrganizationPrivateRegistry_OIDCJFrog(t
261265 assertNilError (t , json .NewDecoder (r .Body ).Decode (& v ))
262266
263267 testMethod (t , r , "POST" )
268+ testHeader (t , r , "X-Github-Api-Version" , "2026-03-10" )
264269 if ! cmp .Equal (v , input ) {
265270 t .Errorf ("Request body = %+v, want %+v" , v , input )
266271 }
@@ -299,6 +304,7 @@ func TestPrivateRegistriesService_GetOrganizationPrivateRegistriesPublicKey(t *t
299304
300305 mux .HandleFunc ("/orgs/o/private-registries/public-key" , func (w http.ResponseWriter , r * http.Request ) {
301306 testMethod (t , r , "GET" )
307+ testHeader (t , r , "X-Github-Api-Version" , "2026-03-10" )
302308 fmt .Fprint (w , `{
303309 "key_id": "0123456789",
304310 "key": "public_key"
@@ -339,6 +345,7 @@ func TestPrivateRegistriesService_GetOrganizationPrivateRegistry(t *testing.T) {
339345
340346 mux .HandleFunc ("/orgs/o/private-registries/MAVEN_REPOSITORY_SECRET" , func (w http.ResponseWriter , r * http.Request ) {
341347 testMethod (t , r , "GET" )
348+ testHeader (t , r , "X-Github-Api-Version" , "2026-03-10" )
342349 fmt .Fprint (w , `{
343350 "name": "MAVEN_REPOSITORY_SECRET",
344351 "registry_type": "maven_repository",
@@ -396,6 +403,7 @@ func TestPrivateRegistries_UpdateOrganizationPrivateRegistry(t *testing.T) {
396403 assertNilError (t , json .NewDecoder (r .Body ).Decode (& v ))
397404
398405 testMethod (t , r , "PATCH" )
406+ testHeader (t , r , "X-Github-Api-Version" , "2026-03-10" )
399407 if ! cmp .Equal (v , input ) {
400408 t .Errorf ("Request body = %+v, want %+v" , v , input )
401409 }
@@ -426,6 +434,7 @@ func TestPrivateRegistriesService_DeleteOrganizationPrivateRegistry(t *testing.T
426434
427435 mux .HandleFunc ("/orgs/o/private-registries/MAVEN_REPOSITORY_SECRET" , func (w http.ResponseWriter , r * http.Request ) {
428436 testMethod (t , r , "DELETE" )
437+ testHeader (t , r , "X-Github-Api-Version" , "2026-03-10" )
429438 w .WriteHeader (http .StatusNoContent )
430439 })
431440 ctx := t .Context ()
0 commit comments