Introducing a new way to review your PRs.

Read the announcement

solana-foundation / solana-verifiable-build

CLI tool for deterministically building and verifying executable against on-chain programs or buffer accounts

View on GitHub

18 documents · Updated Nov 23, 2026

docs / github-workflow-orchestration

GitHub workflow orchestration

GitHub Actions provides the repository's control layer for checking Rust changes, running integration tests, building release files, producing Dockerfiles, and publishing versioned outputs. The workflows use pull requests and pushes for validation, while release and publishing work starts from explicit manual inputs or a published release event.

System role

The workflows connect source changes to checks, generated files, release assets, container images, and follow-up pull requests. Their main boundary is GitHub: a workflow either reports a result to the repository or sends a controlled update to a registry or a related repository.

The wider repository automation model is described in Repository automation. This page focuses on the workflow paths and the hand-offs between them.

Validation flows

Rust quality checks

The Rust quality workflow protects pull requests that target master. It prepares a stable Rust toolchain and rejects changes that fail formatting, Clippy warnings, or Cargo dependency ordering checks.

Runs for the same pull request share a concurrency group. A newer run cancels an older one so that the reported result follows the latest change.

References: .github/…/rust-checks.yml• L1-52

Integration test matrix

The integration test workflow checks pushes and pull requests for master, and it also supports a manual run. It builds the project once in each matrix job, then runs a named scenario that covers supported protocol versions, local examples, image-based verification, and related program cases.

The matrix does not stop all scenarios when one scenario fails. This gives one run a wider view of compatibility problems instead of hiding later failures behind the first error.

The validation path is:

flowchart LR
    Change[Push, pull request, or manual run] --> Build[Build Rust project]
    Build --> Matrix[Run test scenario matrix]
    Matrix --> Result[Report scenario results]

References: .github/…/test.yaml• L1-49

Artifact and release flows

Manual artifact builds

The artifact build workflow creates standalone release binaries for Linux and macOS from a selected branch, tag, or commit. It uses a fixed Rust version for a repeatable build, creates a platform-specific name, adds a SHA-256 file for integrity checks, and stores both files as workflow artifacts.

This path builds and stores files only. It does not create a Git tag, a GitHub release, or a crates.io publication.

References: .github/…/build.yml• L1-65

Versioned releases

The release workflow turns a requested X.Y.Z version into a checked release. It first validates that the run starts from the default branch and that the version and mode inputs are valid. A normal run prepares a signed release branch and pull request, builds Linux and macOS assets, checks the crate publication, then creates the tag, GitHub release, and crates.io publication.

The workflow also supports two controlled modes:

  • A dry run validates the source and builds a source snapshot without pushing a tag, release, or crate.
  • Recovery mode reuses an existing release state and skips crate publication only after it confirms that the version is already on crates.io.

The jobs pass a resolved release commit from preparation to build and finalization. This keeps the binaries, checksums, tag, and published release tied to the same source state.

The release path is:

flowchart LR
    Input[Manual version and mode] --> Prepare[Validate release state]
    Prepare --> Commit[Resolve release commit]
    Commit --> Build[Build Linux and macOS assets]
    Commit --> CrateCheck[Validate crate publication]
    Build --> Finalize[Finalize release]
    CrateCheck --> Finalize
    Finalize --> Outputs[Tag, GitHub release, and crates.io package]

References: .github/…/release.yml• L1-41 .github/…/release.yml• L49-240 .github/…/release.yml• L242-330 .github/…/release.yml• L332-394 .github/…/release.yml• L395-496

Dockerfile and image flows

Dockerfile generation

The Dockerfile generation workflow turns upstream Solana and Agave release data into checked-in Dockerfiles. It runs on demand and opens a signed pull request for the generated changes instead of writing directly to master.

The generator chooses the matching upstream release family and Rust toolchain, pins the Rust base image and installer content, and can update existing files when a maintenance workflow requests that mode. For the wider model of generated Dockerfiles, see Dockerfile generation.

References: .github/…/generate_dockerfiles.yml• L1-51 generate_dockerfiles.py• L148-212 generate_dockerfiles.py• L282-374

Docker image publication

The image publication workflows build Docker images from the checked-in docker/ files and push them to Docker Hub under the repository's image name. Each published image receives an artifact provenance attestation, which records where the build came from.

The single-image path takes a Solana version as input. The all-images path takes a comparison commit, finds changed versioned Dockerfiles, and runs one publish job per changed version. If no versioned Dockerfile changed, it publishes nothing.

Both paths use the release-automation environment. They obtain registry credentials through Doppler with GitHub's OIDC identity rather than placing those credentials in the workflow source. See Dockerfile publishing and releases for the publishing and release view of this process.

References: .github/…/publish_dockerfile.yaml• L1-67 .github/…/publish_all_dockerfiles.yaml• L1-99

Image metadata maintenance

The image maintenance workflows keep generated data aligned with published images and installer content. A push to master that changes docker/ starts the image whitelist update; the checksum workflow is manual and updates installer checksum pins in existing Dockerfiles.

Both workflows create signed pull requests. The whitelist script reads published image tags and digests and rewrites the generated Rust image map. The checksum path asks the Dockerfile generator to update only files that already exist. See Image whitelist maintenance for the data update path.

References: .github/…/update_whitelist.yaml• L1-56 .github/…/update_existing_dockerfile_checksums.yml• L1-52 update_image_whitelist.py• L10-92 generate_dockerfiles.py• L240-251 generate_dockerfiles.py• L351-374

Repository automation triggers

Cross-repository release update

The API update workflow keeps the Dockerfile in otter-sec/solana-verified-programs-api aligned with a new stable release. A published non-preview GitHub release starts the flow, or an engineer can provide a version tag by manual dispatch.

The workflow validates the vX.Y.Z tag before it changes the API repository. It then opens a pull request in that repository. This makes the release-to-consumer update visible and reviewable instead of silently changing a second repository.

sequenceDiagram
    participant Release as GitHub release
    participant Workflow as API update workflow
    participant API as Verified programs API repository
    Release->>Workflow: Publish stable release
    Workflow->>Workflow: Validate version tag
    Workflow->>API: Update Dockerfile version
    Workflow->>API: Open pull request

References: .github/…/open-verified-programs-api-pr.yml• L1-21 .github/…/open-verified-programs-api-pr.yml• L23-43 .github/…/open-verified-programs-api-pr.yml• L45-94

Release automation access checks

The Doppler smoke workflow checks the credentials and access used by release automation without building or publishing an artifact. It uses OIDC to fetch values, checks Docker Hub login, verifies that the API repository token can read the expected GitHub resources, and logs out even when an earlier check fails.

This workflow is manual. It gives operators a low-cost way to detect broken access before a publish or cross-repository release flow needs it.

References: .github/…/ci-doppler-smoke.yaml• L1-37

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep the release commit passed from preparation consistent with the commit used for binaries, checksums, tags, and crate publication.
  • Keep Dockerfile version extraction in publish_all_dockerfiles.yaml aligned with the docker/vX.Y.Z.Dockerfile naming contract.
  • When changing generated Dockerfile inputs or output rules, review both the generation PR workflow and the checksum-maintenance workflow.
  • When changing image tags or registry names, review publication, whitelist generation, and the Rust image map together.
  • When changing release tags, review the stable-release filter and the API repository Dockerfile update contract.
  • When changing release automation access, check the OIDC permissions, release-automation environment, Doppler values, and the cross-repository token path together.

Important failure modes

TriggerConsequenceGuard
A pull request changes Rust formatting, Clippy output, or dependency orderThe Rust quality check fails and blocks a clean quality resultThe workflow runs fmt, Clippy with warnings as errors, and Cargo sort on every pull request to master
An integration scenario failsThe affected matrix job fails while other scenarios still runThe test matrix sets fail-fast: false
The release input is not X.Y.Z or the run is not from the default branchRelease preparation stops before it creates release stateInput and branch checks run before build and publish jobs
A release version is already on crates.io during a normal runThe release stops instead of publishing the same version againThe workflow queries crates.io before changing the package version
A Dockerfile is changed but no versioned Dockerfile is found in the comparisonThe all-images workflow has no publish jobsChange detection produces an empty version list and skips image publication
Registry or API credentials cannot be fetched or usedImage publication or the cross-repository pull request cannot proceedOIDC and the manual Doppler smoke workflow verify the access path before use
A release tag exists at a different commit than the resolved release commitFinalization stops rather than moving an existing tagTag verification compares the remote tag SHA with the release commit

Key files

FileWhy to read it
.github/…/rust-checks.ymlShows the pull request quality gate for Rust code
.github/…/test.yamlShows the integration test matrix and its trigger scope
.github/…/build.ymlShows the simple manual path for platform artifacts
.github/…/release.ymlShows the full versioned release lifecycle and its safety modes
.github/…/generate_dockerfiles.ymlShows how generated Dockerfile changes become a reviewable pull request
.github/…/publish_dockerfile.yamlShows the single-version image build and attestation path
.github/…/publish_all_dockerfiles.yamlShows change detection and parallel publication for changed images
.github/…/update_whitelist.yamlShows the trigger from Dockerfile changes to image metadata maintenance
.github/…/open-verified-programs-api-pr.ymlShows the release hand-off to the API repository
generate_dockerfiles.pyDefines the shared source-to-Dockerfile rules used by generation and maintenance workflows
update_image_whitelist.pyDefines how registry tags and digests become generated Rust image metadata