Verify release provenance¶
The development workflows pin external GitHub Actions to full commit identities. CI rejects mutable Action references, and Dependabot can propose reviewed pin updates. A pin fixes which Action code runs; it does not establish that an artifact was built correctly or that the build environment has no vulnerabilities.
The following attestation steps take effect when those workflows run. They do not retroactively attest earlier PyPI packages or Desktop downloads.
Core distributions¶
The PyPI workflow first checks that the requested release tag matches the package
version, resolves to the checked-out commit, and belongs to public main
history. It builds and tests the wheel, then passes the immutable distribution
artifact to a separate attestation job. Publication depends on that job
succeeding. Build/test steps do not receive the attestation job's OIDC permission.
The signed predicate type is
https://optpilot.io/attestations/core-build/v1. Its JSON records:
source.repository,source.commitandsource.reffor the actual release checkout;builder.workflow,builder.workflowCommit,builder.runIdandbuilder.runAttemptfor the workflow execution;- each distribution filename and SHA-256 digest.
These are deliberately separate identities: a workflow dispatched from main
can build an earlier release tag. The workflow commit must not be mistaken for
the source commit of that package. This is an OptPilot custom provenance
predicate, not a claim of a SLSA certification level.
After downloading a distribution that was built by this workflow, verify the artifact, repository, workflow identity and predicate type:
gh attestation verify PATH_TO_DISTRIBUTION \
--repo MINDS-THU/OptPilot \
--signer-workflow MINDS-THU/OptPilot/.github/workflows/pypi.yml \
--predicate-type https://optpilot.io/attestations/core-build/v1 \
--format json
Inspect the verified statement.predicate.source and compare its tag and commit
with the intended release. Verification proves which workflow signed a statement
about those bytes; the statement still depends on the reviewed workflow and its
inputs. GitHub documents the verification policy and JSON output in the
CLI attestation reference.
The workflow also retains a core-build-attestation artifact containing the
signed bundle. It is separate from core-distributions, so attestation JSON is
not passed to the PyPI uploader. PyPI Trusted Publishing has its own identity and
attestation mechanism; it is distinct from this source-tag statement.
Container images¶
The default-image workflow requests BuildKit provenance and signs the pushed OCI manifest digest with GitHub's provenance action. It also pushes the attestation to the image registry. Verify the digest you intend to use, not a mutable tag:
gh attestation verify oci://ghcr.io/minds-thu/optpilot-default@sha256:IMAGE_DIGEST \
--repo MINDS-THU/OptPilot \
--signer-workflow MINDS-THU/OptPilot/.github/workflows/default-image.yml
Registry authentication can be required by verification tooling. BuildKit metadata, a signed GitHub attestation, and an image's digest serve different purposes; none should be described as a review of arbitrary project code.
Desktop installers¶
Installer checksums, platform code signatures/notarization and build attestations are separate checks. The installer build workflow can generate attestations when explicitly requested. This is disabled by default because GitHub requires Enterprise Cloud for attestations originating in a private repository. Public repository attestations have different plan availability. GitHub attestation requirements
Do not assume that a Desktop download has public build provenance merely because it has a checksum or a valid platform signature. When available, the build attestation covers both the installers and the manifest that identifies their Desktop and Core source commits. Access to attestations from a private build repository can require authorized repository access.
A future public handoff workflow could attest that it verified and distributed particular installer bytes, without requiring private-repository attestation support. Such a handoff statement would describe release verification, not prove the private build's full provenance. That public handoff attestation is not implemented by the current release workflow.