Skip to content

Commit

Permalink
attestations: cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: William Woodruff <william@trailofbits.com>
  • Loading branch information
woodruffw committed May 8, 2024
1 parent 835f6cd commit 44929e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions attestations.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from pathlib import Path
from typing import NoReturn

import id # pylint: disable=redefined-builtin
from pypi_attestation_models import AttestationPayload
from sigstore.oidc import IdentityError, IdentityToken, detect_credential
from sigstore.sign import Signer, SigningContext
Expand Down Expand Up @@ -70,7 +69,7 @@ def attest_dist(dist: Path, signer: Signer) -> None:
payload = AttestationPayload.from_dist(dist)
attestation = payload.sign(signer)

attestation_path.write_text(attestation.model_dump_json())
attestation_path.write_text(attestation.model_dump_json(), encoding="utf-8")
debug(f"saved publish attestation: {dist=} {attestation_path=}")


Expand Down

0 comments on commit 44929e6

Please sign in to comment.