You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(ci): add a reusable signed plugin release workflow - #3
Related issue: N/A (maintainer-directed; the design is summarized here and in the linked pull requests as they open)
Silo plugins are native binaries that servers download from the catalog and run with the server's own access, and servers update them unattended. Today each plugin repository publishes its binaries with a checksums.txt beside them, from its own copy of a release workflow. The checksum comes from the same place as the binary, so it catches corruption but not a replaced binary. Fifteen repositories carry seven variants of that workflow.
This adds one shared release workflow that signs every plugin binary, so a server can check which repository, tag, and workflow built it.
Approach
plugin-release.yml is a reusable workflow that a plugin repository calls from a v<semver> tag push. It builds the binaries, signs them with a GitHub artifact attestation (Sigstore keyless, so there is no signing key to store or leak), and publishes plugin-<os>-<arch>, checksums.txt, and plugin.sigstore.json.
One releasable commit per version. The tag must name the commit on main's first-parent history that raised manifest.json's version above its first parent's, by semver precedence, and main must not have lowered the version since. A commit inside a merged branch, a later commit with the same version, a reverted bump, or a return to an earlier version is refused.
Signing is separate from building. The build job holds contents: read only and returns the binaries' SHA-256 checksums as a job output. The signing job signs those checksums; it downloads nothing and runs no repository code, so another job in the caller's run cannot swap a binary before it is signed. The release job checks the downloaded binaries against the same checksums.
The workflow checks its own output. Before publishing, it verifies each binary against the identity Silo servers will pin: this workflow at refs/heads/main, the calling repository, the tag, and a GitHub-hosted runner. A caller that references the workflow at a SHA or another branch publishes nothing.
Builds are uniform. Go comes from the caller's go.mod, binaries are cross-compiled on Ubuntu with CGO_ENABLED=0, no build cache is used, and a silo-plugin-sdk or machine-local replace fails the build.
The old workflow_dispatch path that bumped the version and tagged inside the job is not carried over. A release is a merged pull request that bumps manifest.json, then a tag on that commit.
Prerelease tags publish a GitHub prerelease and do not notify the catalog. The catalog notification is its own job, so it can be rerun after a release is published.
Every action is first-party and pinned by commit SHA. The README section states the caller contract.
The plugin repositories, the catalog updater, and the server each get their own pull request; this one has to merge first, because callers reference it at @main.
Validation
actionlint 1.7.12 with ShellCheck 0.11.0: no findings.
The guard script, extracted from the workflow and run against throwaway repositories: 28 cases behave as intended, covering squash merges, merge commits and their inner commits, later commits with the same version, reverted and re-landed bumps, a version main returns to, prerelease ordering, unmerged branches, wrong versions, and a root commit. Its semver comparison orders all 225 pairs of the semver specification's precedence example correctly.
The checksum plumbing, run locally with the extracted steps: the release check passes on untouched binaries and fails on a modified binary, a swapped binary, an extra or missing file, and malformed or incomplete checksums.
The build step's flags, run locally against a real plugin checkout, produce all three platform binaries, including darwin/arm64 cross-compiled on Linux.
Not run: the workflow on GitHub Actions. It cannot run before it is on main. The first plugin release through it needs to confirm the certificate's subject is …/plugin-release.yml@refs/heads/main, the source repository and ref fields, that signing from the checksum list produces a bundle listing every binary by name, that the in-workflow verification passes, and that the catalog dispatch arrives.
Risks
The signing identity is only as trustworthy as this repository's main. Before servers refuse unsigned plugins, main needs branch protection with required review, and a tag ruleset must block a tag named main, since a tag takes precedence over a branch of the same name in uses:.
With rebase merging enabled on a plugin repository, each commit of a pull request lands on main's first-parent history, so a bump commit that a later commit in the same pull request cleans up stays releasable. Plugin repositories should disable rebase merging.
Plugin repositories need a tag ruleset that restricts creating, moving, and deleting v* tags.
A change to the inputs, assets, or certificate identity breaks every caller and every server that verifies their releases.
Checklist
I read and can explain the complete diff.
This pull request addresses one concern.
AI Disclosure
Harness: Claude Code (in T3 Code)
Tool(s): Claude Code
Model(s): claude-fable-5-2, claude-opus-5-5
Involvement: Fully AI-generated, human verification pending
Adversarial review: A separate claude-opus-5-5 agent reviewed the workflow as an attacker with write access to one plugin repository, a fork contributor, a holder of the catalog dispatch token, and a compromised action. It confirmed the action pins, permissions, and script-injection handling, and found that "tag is an ancestor of main" let an unreviewed commit inside a merged pull request be released. The guard now accepts only the first-parent commit that changed the version; the rebase-merge case is left to repository settings and listed under Risks.
Adds plugin-release.yml, a reusable workflow_call workflow with guard, build, attest, release, and dispatch jobs. Callers can pass a comma-separated platform list (defaults: Linux amd64/arm64, macOS arm64) and an optional dispatch_token secret.
The guard job enforces release rules: v-prefixed semver tag on main's first-parent history, manifest.json version matching and greater than the previous, and valid GOOS/GOARCH platform syntax.
Built binaries get SHA-256 checksums, a Sigstore build-provenance attestation, and verification against a pinned signing identity and source tag before the GitHub release is created. Non-prerelease releases dispatch a notification to Silo-Server/silo-plugins.
Each job declares only its own permissions; the workflow-level permissions block is empty. Usage rules and a caller example are documented in README.md.
Risk: the build job's replace check uses a jq filter with stray plus signs that jq cannot parse, so every run exits there before building binaries. The dispatch job's payload jq filter has the same problem. The build and dispatch steps need fixing before the workflow can produce a release.
Plugin repositories each carried their own copy of a release workflow that
published binaries with only a checksum beside them. This adds one shared
workflow, called on a v<semver> tag push, that builds the binaries, signs
them with a GitHub artifact attestation (Sigstore keyless), and publishes
plugin-<os>-<arch>, checksums.txt and plugin.sigstore.json.
A tag is releasable only when it names the commit on main's first-parent
history that changed manifest.json's version, and main has not lowered the
version since. The signing job runs no repository code. Before publishing,
the release job verifies every binary against the identity Silo servers
pin, so a caller at any ref other than @main publishes nothing.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).
Limit details: You’ve used the included review currently available. Your 81 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 8cfad851-e5c6-4164-8257-c30605e736ba
Commits
Reviewing files that changed from the base of the PR and between 3b1555e and b326f8d.
Files selected for processing: 2
.github/workflows/plugin-release.yml
README.md
Walkthrough
The pull request adds a reusable plugin-release workflow. It validates release eligibility, builds binaries for configured platforms, creates and verifies provenance, and publishes release assets. The README documents workflow setup, requirements, and outputs.
Changes: Plugin Release Workflow
Layer / File(s)
Summary
Release eligibility and inputs .github/workflows/plugin-release.yml, README.md
The workflow accepts platform and dispatch inputs and checks tag format, commit history, manifest version, and platform entries. The README documents caller setup and release conditions.
sequenceDiagram
participant TagPush
participant GuardJob
participant BuildJobs
participant AttestationJob
participant ReleaseJob
participant GitHubRelease
participant Catalog
TagPush->>GuardJob: Validate tag, commit history, manifest version, and platforms
GuardJob->>BuildJobs: Provide platform matrix and release version
BuildJobs->>AttestationJob: Upload platform binaries
AttestationJob->>ReleaseJob: Provide binaries and Sigstore bundle
ReleaseJob->>GitHubRelease: Verify attestations and publish assets with checksums
opt Non-prerelease tag and dispatch token is set
ReleaseJob->>Catalog: Send release event with repository and tag
end
Loading
Merge Risk: Low · previous review 3b155
If the catalog notification fails after a release is published, maintainers cannot retry it by rerunning the job and must handle it manually. The release itself and its attestation checks are unaffected, so this is a bounded operational follow-up.
Security architecture risk: Low · up to 3b155
The workflow separates building from signing and verifies provenance before publication. The main remaining risks are protecting the shared signing authority and recovering catalog notification after a release has already been published. Repository protections and downstream verification behavior were not established by this change.
Retained concerns
Low · reliability · inferred: Publication precedes a single catalog notification request, without a resumable handoff. Failure or interruption after publication can leave a stable release published but unannounced. Reruns re-enter release creation rather than a notification-only recovery path. Where catalog update discovery depends on this event, security-update delivery can be delayed; independent catalog reconciliation was not supplied.
Security review details
Security Blast Radius
inferred — Compromise of the shared workflow's main branch could affect subsequent releases across adopting plugin repositories. A compromised plugin can then execute with its server's access, as described in the PR intent. Actual adoption and deployed server exposure are not established here.
Trust Boundaries and Controls
observed — Plugin source is checked out at the run SHA in read-only guard and build jobs with persisted checkout credentials disabled. The signing job has OIDC and attestation-write authority but does not check out or execute plugin code. Release-write authority is confined to the publication job.
observed — Before publication, verification requires the binary's bundle to match the calling repository, exact shared-workflow certificate identity, GitHub OIDC issuer, source tag ref, and non-self-hosted runner policy. The command does not explicitly require a source commit digest.
Resilience and Maintainability Implications
inferred — Validation and verification failures stop release creation, preserving fail-closed publication. A later notification failure does not undo the release, so recovery must account for an already-published release rather than blindly replaying the entire transition.
Hardening Proposals
proposed — Before adoption, verify the documented shared-main protections, version-tag mutation restrictions, and least-privilege catalog-token scope. Consider explicit source-digest binding where consumers require a tag-to-commit guarantee.
proposed — Provide a notification-only recovery path for an existing verified release, with duplicate-safe catalog handling, so interrupted or repeated runs can complete without replacing published assets.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title "feat(ci): add a reusable signed plugin release workflow" matches the main change. The PR adds a reusable plugin-release.yml workflow that builds, signs, and publishes plugin binaries, and t…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description check
The description is directly related to the changeset. It explains that the PR adds a reusable plugin-release.yml workflow that builds, signs, and publishes plugin binaries, and it covers the release g…
Full details: Title check
Explanation
The title "feat(ci): add a reusable signed plugin release workflow" matches the main change. The PR adds a reusable plugin-release.yml workflow that builds, signs, and publishes plugin binaries, and the title names that change directly. The title is short and single-sentence, and it avoids vague terms.
Full details: Description check
Explanation
The description is directly related to the changeset. It explains that the PR adds a reusable plugin-release.yml workflow that builds, signs, and publishes plugin binaries, and it covers the release guard, the signing/build separation, the identity verification, validation performed, and risks. The description is detailed and on-topic, so it passes the lenient relevance check.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
The reason will be displayed to describe this comment to others. Learn more.
Specify the reusable workflow's signer repository
When a plugin repository calls this workflow, the source repository is the plugin repository but the signer repository is Silo-Server/.github. This verification command supplies only the source repository and certificate identity, leaving out the cross-repository signer policy. The locally inspected gh attestation verify --help explicitly states that reusable-workflow attestations “must use either the --signer-workflow or the --signer-repo flag.” Consequently, verification rejects these attestations and the subsequent “Create GitHub release” step never runs. Add --signer-repo Silo-Server/.github (or the corresponding --signer-workflow) here and in the README verification example.
The reason will be displayed to describe this comment to others. Learn more.
No change. --cert-identity, --cert-identity-regex, --signer-repo and --signer-workflow are one mutually exclusive group in gh attestation verify: gh 2.103.3 rejects --cert-identity combined with --signer-repo. --cert-identity already names the reusable workflow as the signer, with its exact path and ref, which is stricter than --signer-repo. --repo separately checks the source repository. The first release through this workflow will confirm it against a real bundle.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: f6d120cf-598c-428d-9b5b-4d3279045d69
Commits
Reviewing files that changed from the base of the PR and between 628ddc8 and 3b1555e.
Files selected for processing: 2
.github/workflows/plugin-release.yml
README.md
Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.
The signing job took its subjects from artifacts that any job in the
caller's run could overwrite by name. It now signs the checksums the
build job returns as a job output and downloads nothing; the release job
checks the downloaded binaries against the same checksums and the bundle
before publishing.
A tagged version must now be strictly greater, by semver precedence,
than its first parent's, so a version that main returns to cannot name
two commits. The catalog dispatch moves to its own job so it can be
rerun after a release is published.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
silo-triageBot
added
size/XL
500–999 added + deleted lines (all files); change volume, not priority.
and removed
size/L
200–499 added + deleted lines (all files); change volume, not priority.
labels
Nov 13, 2026
The tag pattern accepted a numeric prerelease identifier with a leading
zero, such as 1.0.0-rc.01, which semver consumers reject.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enhancementNew feature or requestsize/XL500–999 added + deleted lines (all files); change volume, not priority.
1 participant
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Related issue: N/A (maintainer-directed; the design is summarized here and in the linked pull requests as they open)
Silo plugins are native binaries that servers download from the catalog and run with the server's own access, and servers update them unattended. Today each plugin repository publishes its binaries with a
checksums.txtbeside them, from its own copy of a release workflow. The checksum comes from the same place as the binary, so it catches corruption but not a replaced binary. Fifteen repositories carry seven variants of that workflow.This adds one shared release workflow that signs every plugin binary, so a server can check which repository, tag, and workflow built it.
Approach
plugin-release.ymlis a reusable workflow that a plugin repository calls from av<semver>tag push. It builds the binaries, signs them with a GitHub artifact attestation (Sigstore keyless, so there is no signing key to store or leak), and publishesplugin-<os>-<arch>,checksums.txt, andplugin.sigstore.json.main's first-parent history that raisedmanifest.json'sversionabove its first parent's, by semver precedence, andmainmust not have lowered the version since. A commit inside a merged branch, a later commit with the same version, a reverted bump, or a return to an earlier version is refused.contents: readonly and returns the binaries' SHA-256 checksums as a job output. The signing job signs those checksums; it downloads nothing and runs no repository code, so another job in the caller's run cannot swap a binary before it is signed. The release job checks the downloaded binaries against the same checksums.refs/heads/main, the calling repository, the tag, and a GitHub-hosted runner. A caller that references the workflow at a SHA or another branch publishes nothing.go.mod, binaries are cross-compiled on Ubuntu withCGO_ENABLED=0, no build cache is used, and asilo-plugin-sdkor machine-localreplacefails the build.workflow_dispatchpath that bumped the version and tagged inside the job is not carried over. A release is a merged pull request that bumpsmanifest.json, then a tag on that commit.Every action is first-party and pinned by commit SHA. The README section states the caller contract.
The plugin repositories, the catalog updater, and the server each get their own pull request; this one has to merge first, because callers reference it at
@main.Validation
actionlint1.7.12 with ShellCheck 0.11.0: no findings.darwin/arm64cross-compiled on Linux.main. The first plugin release through it needs to confirm the certificate's subject is…/plugin-release.yml@refs/heads/main, the source repository and ref fields, that signing from the checksum list produces a bundle listing every binary by name, that the in-workflow verification passes, and that the catalog dispatch arrives.Risks
main. Before servers refuse unsigned plugins,mainneeds branch protection with required review, and a tag ruleset must block a tag namedmain, since a tag takes precedence over a branch of the same name inuses:.main's first-parent history, so a bump commit that a later commit in the same pull request cleans up stays releasable. Plugin repositories should disable rebase merging.v*tags.Checklist
AI Disclosure
🤖 Generated with Claude Code
Note
Add reusable signed plugin release workflow
workflow_callworkflow withguard,build,attest,release, anddispatchjobs. Callers can pass a comma-separated platform list (defaults: Linux amd64/arm64, macOS arm64) and an optionaldispatch_tokensecret.manifest.jsonversion matching and greater than the previous, and valid GOOS/GOARCH platform syntax.Silo-Server/silo-plugins.replacecheck uses a jq filter with stray plus signs that jq cannot parse, so every run exits there before building binaries. The dispatch job's payload jq filter has the same problem. The build and dispatch steps need fixing before the workflow can produce a release.Macroscope summarized b326f8d.