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
34
35
from tuf .api .exceptions import DownloadHTTPError
35
36
from tuf .ngclient import FetcherInterface , updater
36
37
@@ -238,20 +239,19 @@ def signer():
238
239
239
240
240
241
@pytest .fixture
241
- def staging_with_rekorv2 (
242
- asset ,
243
- ) -> tuple [ type [ SigningContext ], type [ Verifier ], IdentityToken ]:
242
+ def staging_with_rekorv2 () -> tuple [
243
+ type [ SigningContext ], type [ Verifier ], IdentityToken
244
+ ]:
244
245
"""
245
246
Returns a SigningContext, Verifier, and IdentityToken for the staging environment.
246
247
The signingContext will use the Rekor V2 instance even if it is not yet enabled in
247
248
staging signing config.
248
249
"""
249
250
250
251
def signer ():
251
- trust_config = ClientTrustConfig .from_json (
252
- asset (
253
- os .path .join ("trust_config" , "staging-but-sign-with-rekor-v2.json" )
254
- ).read_text ()
252
+ trust_config = ClientTrustConfig .staging ()
253
+ trust_config .signing_config ._tlogs .append (
254
+ Service ("https://log2025-alpha1.rekor.sigstage.dev" , 2 )
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