File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 25
25
import requests
26
26
from cryptography .hazmat .primitives import serialization
27
27
from cryptography .x509 import Certificate
28
- from sigstore_models import intoto
29
28
from sigstore_models .common import v1 as common_v1
30
29
from sigstore_models .rekor import v2 as rekor_v2
31
30
from sigstore_models .rekor .v1 import TransparencyLogEntry as _TransparencyLogEntry
Original file line number Diff line number Diff line change 38
38
39
39
from __future__ import annotations
40
40
41
+ import base64
41
42
import logging
42
43
from collections .abc import Iterator
43
44
from contextlib import contextmanager
@@ -244,9 +245,9 @@ def sign_artifact(
244
245
content = MessageSignature (
245
246
message_digest = HashOutput (
246
247
algorithm = hashed_input .algorithm ,
247
- digest = hashed_input .digest ,
248
+ digest = base64 . b64encode ( hashed_input .digest ) ,
248
249
),
249
- signature = artifact_signature ,
250
+ signature = base64 . b64encode ( artifact_signature ) ,
250
251
)
251
252
252
253
# Create the proposed hashedrekord entry
You can’t perform that action at this time.
0 commit comments