A release is built by a runner from a commit on main, as main’s .forge/release defines, and is published once a person approves the build. The forge signs SLSA provenance for each published release, which af release verify checks.
Usage
af release [OPTIONS] <COMMAND>Commands
| Command | What it does |
|---|---|
request |
Request a release of a commit on main |
approve |
Approve a release’s build, which publishes the release |
show |
Show a release’s state, artifacts and provenance |
get |
Download an artifact of a published release |
verify |
Verify a file against a release’s signed provenance |
Global options
Every af command also takes the global options.
Examples
af release request v1.0
af release approve v1.0
af release show v1.0
af release get v1.0 af-linux-x86_64 -o af
af release verify v1.0 af-linux-x86_64 ./afaf release request
Request a release of a commit on main
Queues a build of the commit, as main’s .forge/release defines. Release names are permanent: each name can be requested only once.
Usage
af release request [OPTIONS] <NAME>Arguments
-
<NAME>Name of the release
Options
-
--commit <COMMIT>Commit to release, in hex; defaults to main’s head
Global options
Every af command also takes the global options.
af release approve
Approve a release’s build, which publishes the release
Only a signed-in person who holds the approver role can approve a release. The person who requested it can approve it too, unless the forge requires another person; each such approval is an exception in compliance reports.
Usage
af release approve [OPTIONS] <NAME>Arguments
-
<NAME>Name of the release
Global options
Every af command also takes the global options.
af release show
Show a release’s state, artifacts and provenance
Lists each artifact with its SHA-256 and size, and the provenance’s position in the receipt log.
Usage
af release show [OPTIONS] <NAME>Arguments
-
<NAME>Name of the release
Global options
Every af command also takes the global options.
af release get
Download an artifact of a published release
Writes the artifact to –out, or to standard output. Requires read access to every folder.
Usage
af release get [OPTIONS] <NAME> <ARTIFACT>Arguments
-
<NAME>Name of the release
-
<ARTIFACT>Name of the artifact
Options
-
-o, --out <OUT>File to write the artifact to; standard output if omitted
Global options
Every af command also takes the global options.
af release verify
Verify a file against a release’s signed provenance
Checks that the provenance is signed by the organization’s receipt key, is recorded in the receipt log, and names FILE’s SHA-256 as the artifact ARTIFACT.
The first verification for a repository at a given server address pins that repository’s receipt log, its origin and keys, much as SSH’s known_hosts pins a host key. Later verifications refuse a different log.
Usage
af release verify [OPTIONS] <NAME> <ARTIFACT> <FILE>Arguments
-
<NAME>Name of the release
-
<ARTIFACT>Name of the artifact
-
<FILE>File to verify
Options
-
--accept-new-logReplace the pinned receipt log with the one the server reports now
Use this only after confirming the new keys some other way, for example after a restore.
Global options
Every af command also takes the global options.