We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 835f6cd commit 44929e6Copy full SHA for 44929e6
attestations.py
@@ -4,7 +4,6 @@
4
from pathlib import Path
5
from typing import NoReturn
6
7
-import id # pylint: disable=redefined-builtin
8
from pypi_attestation_models import AttestationPayload
9
from sigstore.oidc import IdentityError, IdentityToken, detect_credential
10
from sigstore.sign import Signer, SigningContext
@@ -70,7 +69,7 @@ def attest_dist(dist: Path, signer: Signer) -> None:
70
69
payload = AttestationPayload.from_dist(dist)
71
attestation = payload.sign(signer)
72
73
- attestation_path.write_text(attestation.model_dump_json())
+ attestation_path.write_text(attestation.model_dump_json(), encoding="utf-8")
74
debug(f"saved publish attestation: {dist=} {attestation_path=}")
75
76
0 commit comments