@@ -30,7 +30,7 @@ test.serial(
3030 "that the auth context for the official registry is considered valid when trusted publishing is established" ,
3131 async ( t ) => {
3232 td . when ( getRegistry ( pkg , context ) ) . thenReturn ( DEFAULT_NPM_REGISTRY ) ;
33- td . when ( oidcContextEstablished ( DEFAULT_NPM_REGISTRY ) ) . thenReturn ( true ) ;
33+ td . when ( oidcContextEstablished ( DEFAULT_NPM_REGISTRY , pkg ) ) . thenReturn ( true ) ;
3434
3535 await t . notThrowsAsync ( verifyAuth ( npmrc , pkg , context ) ) ;
3636 }
@@ -40,7 +40,7 @@ test.serial(
4040 "that the provided token is verified with `npm whoami` when trusted publishing is not established for the official registry" ,
4141 async ( t ) => {
4242 td . when ( getRegistry ( pkg , context ) ) . thenReturn ( DEFAULT_NPM_REGISTRY ) ;
43- td . when ( oidcContextEstablished ( DEFAULT_NPM_REGISTRY ) ) . thenReturn ( false ) ;
43+ td . when ( oidcContextEstablished ( DEFAULT_NPM_REGISTRY , pkg ) ) . thenReturn ( false ) ;
4444 td . when (
4545 execa ( "npm" , [ "whoami" , "--userconfig" , npmrc , "--registry" , DEFAULT_NPM_REGISTRY ] , {
4646 cwd,
@@ -60,7 +60,7 @@ test.serial(
6060 "that the auth context for the official registry is considered invalid when no token is provided and trusted publishing is not established" ,
6161 async ( t ) => {
6262 td . when ( getRegistry ( pkg , context ) ) . thenReturn ( DEFAULT_NPM_REGISTRY ) ;
63- td . when ( oidcContextEstablished ( DEFAULT_NPM_REGISTRY ) ) . thenReturn ( false ) ;
63+ td . when ( oidcContextEstablished ( DEFAULT_NPM_REGISTRY , pkg ) ) . thenReturn ( false ) ;
6464 td . when (
6565 execa ( "npm" , [ "whoami" , "--userconfig" , npmrc , "--registry" , DEFAULT_NPM_REGISTRY ] , {
6666 cwd,
@@ -84,7 +84,7 @@ test.serial(
8484 async ( t ) => {
8585 const otherRegistry = "https://other.registry.org" ;
8686 td . when ( getRegistry ( pkg , context ) ) . thenReturn ( otherRegistry ) ;
87- td . when ( oidcContextEstablished ( otherRegistry ) ) . thenReturn ( false ) ;
87+ td . when ( oidcContextEstablished ( otherRegistry , pkg ) ) . thenReturn ( false ) ;
8888 td . when (
8989 execa (
9090 "npm" ,
@@ -119,7 +119,7 @@ test.serial(
119119 async ( t ) => {
120120 const otherRegistry = "https://other.registry.org" ;
121121 td . when ( getRegistry ( pkg , context ) ) . thenReturn ( otherRegistry ) ;
122- td . when ( oidcContextEstablished ( otherRegistry ) ) . thenReturn ( false ) ;
122+ td . when ( oidcContextEstablished ( otherRegistry , pkg ) ) . thenReturn ( false ) ;
123123 td . when (
124124 execa (
125125 "npm" ,
0 commit comments