rattler-build package attest#
Sign Sigstore attestations for already-built packages without uploading them
Usage#
Arguments#
-
<PACKAGE_FILES>- Package files (.conda, .tar.bz2) to attest
May be provided more than once.
required:true
Options#
-
--target-channel <TARGET_CHANNEL>- URL of the channel the packages are published to, recorded as
targetChannelin the attestation (e.g.https://prefix.dev/conda-forge)
required:true
-
--output-dir (-o) <OUTPUT_DIR>- Directory to write the
<filename>.sigstore.jsonbundles to (defaults to the directory of each package)
-
--store-github-attestation- Also store the attestations in GitHub's attestation API (requires
attestations: writepermission)
-
--github-repository <GITHUB_REPOSITORY>- GitHub repository (
owner/repo) to store the attestations in
env:GITHUB_REPOSITORY
Description#
Sign Sigstore attestations for already-built packages without uploading them
Uses the ambient OIDC identity of the CI job (e.g. GitHub Actions with id-token: write) to sign a conda publish attestation (https://schemas.conda.org/attestations-publish-1.schema.json) for each package. The Sigstore bundle is written next to the package as <filename>.sigstore.json and can optionally be stored in GitHub's attestation API, so a channel can retrieve it later by the package's SHA-256 digest.