File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 31
31
from id import (
32
32
detect_credential ,
33
33
)
34
- from sigstore_protobuf_specs .dev .sigstore .trustroot .v1 import Service
35
34
from tuf .api .exceptions import DownloadHTTPError
36
35
from tuf .ngclient import FetcherInterface , updater
37
36
@@ -239,19 +238,20 @@ def signer():
239
238
240
239
241
240
@pytest .fixture
242
- def staging_with_rekorv2 () -> tuple [
243
- type [ SigningContext ], type [ Verifier ], IdentityToken
244
- ]:
241
+ def staging_with_rekorv2 (
242
+ asset ,
243
+ ) -> tuple [ type [ SigningContext ], type [ Verifier ], IdentityToken ]:
245
244
"""
246
245
Returns a SigningContext, Verifier, and IdentityToken for the staging environment.
247
246
The signingContext will use the Rekor V2 instance even if it is not yet enabled in
248
247
staging signing config.
249
248
"""
250
249
251
250
def signer ():
252
- trust_config = ClientTrustConfig .staging ()
253
- trust_config .signing_config ._tlogs .append (
254
- Service ("https://log2025-alpha1.rekor.sigstage.dev" , 2 )
251
+ trust_config = ClientTrustConfig .from_json (
252
+ asset (
253
+ os .path .join ("trust_config" , "staging-but-sign-with-rekor-v2.json" )
254
+ ).read_text ()
255
255
)
256
256
return SigningContext .from_trust_config (trust_config )
257
257
You can’t perform that action at this time.
0 commit comments