← Về thư mục
scripts/release_receipts.py
- ReceiptError · class · L48-L49 — class ReceiptError(Exception)
- _as_bool · function · L52-L63 — def _as_bool(value: Any) -> bool
- normalize_workflow_inputs · function · L66-L82 — def normalize_workflow_inputs(raw: Any) -> dict[str, Any]
- normalize_notary · function · L85-L106 — def normalize_notary(raw: Any, *, required: bool) -> dict[str, Any] | None
- notary_succeeded · function · L109-L128 — def notary_succeeded(notary: Mapping[str, Any] | None) -> bool
- normalize_check_runs · function · L131-L147 — def normalize_check_runs(raw: Any) -> list[dict[str, str]]
- workflow_run_id_from · function · L150-L151 — def workflow_run_id_from(explicit: str = "") -> str
- verify_rehearsal · function · L154-L180 — def verify_rehearsal( *, workflow_inputs: Mapping[str, Any], candidate_sha: str, expected_sha: str, workflow_run_id: str, dmg_count: int, notary: Mapping[str, Any] | None, ) -> dict[str, Any]
- _notary_from_codesign_sidecars · function · L183-L204 — def _notary_from_codesign_sidecars(artifacts: Sequence[Path]) -> dict[str, Any] | None
- _digest · function · L207-L212 — def _digest(path: Path) -> str
- _artifact_rows · function · L215-L223 — def _artifact_rows(artifacts: Iterable[Path]) -> list[dict[str, Any]]
- build_receipt_name · function · L226-L227 — def build_receipt_name(kind: str) -> str
- build_build_receipt · function · L230-L278 — def build_build_receipt( kind: str, source_sha: str, artifacts: Sequence[Path], *, workflow_run_id: str = "", workflow_inputs: Mapping[str, Any] | None = None, check_runs: Sequence[Mapping[str, Any]] = (), notary: Mapping[str, Any] | None = None, ) -> dict[str, Any]
- verify_build_receipts · function · L281-L383 — def verify_build_receipts( receipts: Sequence[Path], *, expected_sha: str, assets_dir: Path, required_kinds: Sequence[str] = (), ) -> dict[str, Any]
- build_stage_attestation · function · L386-L426 — def build_stage_attestation( *, version: str, source_sha: str, assets: Sequence[Path], workflow_run_id: str = "", workflow_inputs: Mapping[str, Any] | None = None, check_runs: Sequence[Mapping[str, Any]] = (), linux_boundary: Mapping[str, Any] | None = None, notary: Mapping[str, Any] | None = None, ) -> dict[str, Any]
- verify_stage_attestation · function · L429-L493 — def verify_stage_attestation( path: Path, *, version: str, ) -> dict[str, str]
- main · function · L496-L596 — def main(argv: Sequence[str] | None = None) -> int