Skip to content

fix: BED-10623 publish artifacts from published releases - #109

Merged
jaredcatkinson merged 1 commit into
mainfrom
fix/BED-10623-publish-on-release
Nov 19, 2026
Merged

jaredcatkinson merged 1 commit into
mainfrom
fix/BED-10623-publish-on-release

Conversation

@jaredcatkinson

@jaredcatkinson jaredcatkinson commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Qualifying PR merges previously created version tags and immediately published packages and images. Publishing now starts only when a maintainer publishes a GitHub Release, allowing several merged PRs to ship together.

  • Remove merge-triggered versioning and tag-push publication.
  • Test the selected release tag on Python 3.13 using locked development dependencies.
  • Build distributions with the pinned shared Python workflow, publish them to PyPI using the existing pypi environment and OIDC, then publish containers with the pinned shared container workflow.
  • Preserve CLI and enterprise images for amd64/arm64. Pass the release prerelease flag so prereleases do not move stable aliases; the shared workflow promotes only the newest published stable version.
  • Document manual version selection, draft and prerelease behavior, and the updated release process.

Validation: 648 tests pass; Actionlint passes for both changed/new workflows; shared workflow inputs, release-tag checkout, job dependencies, and publication triggers were checked; git diff --check passes. Full-workflow lint reports an existing untrusted-expression warning in unchanged validate-branch.yml. Docker execution was unavailable because the local daemon is stopped. End-to-end PyPI/GHCR publication requires a published release after merge; no artifacts were published during validation.

Ticket: BED-10623

Summary by CodeRabbit

  • Release and Publishing

    • Publishing artifacts is now triggered by creating a GitHub Release. Merging a pull request or pushing a tag alone no longer publishes artifacts.
    • Stable releases publish the Python package and container images. Only the newest stable release updates the latest image aliases; prereleases and older stable releases leave them unchanged.
  • Documentation

    • Updated release and build guidance to reflect the release-based publishing process and version selection.

@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Publishing now starts when a GitHub Release is published. The workflow tests the release tag, builds Python distributions, publishes them to PyPI, and invokes container publishing. The README documents the release process and image-tag behavior.

Changes

Release publishing

Layer / File(s) Summary
Release trigger and tag tests
.github/workflows/publish.yml, .github/workflows/test.yml, .github/workflows/release-on-merge.yml, README.md
Publishing now runs for published releases. A reusable test workflow checks out the release tag and runs pytest. The merge-triggered workflow that selected versions from branch prefixes was removed. The README describes creating and publishing a release.
Python and container publication
.github/workflows/publish.yml, .github/workflows/publish-container.yml, README.md
The workflow downloads built Python distributions and publishes them to PyPI with trusted publishing, then calls a reusable container-publishing workflow with the release tag and prerelease status. The previous container workflow was removed. The README documents when image aliases are updated.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Other

Sequence Diagram(s)

sequenceDiagram
  participant GitHubRelease as GitHub Release
  participant Publish as publish.yml
  participant Test as test.yml
  participant Build as Python build workflow
  participant PyPI
  participant Container as container-publishing workflow
  GitHubRelease->>Publish: published release event
  Publish->>Test: test release tag
  Publish->>Build: build distributions for release tag
  Build-->>Publish: python-distributions artifact
  Publish->>PyPI: publish distributions with trusted publishing
  Publish->>Container: pass release tag and prerelease status
Loading

Suggested reviewers: d3vzer0

Merge Risk: Minimal · up to 16133

Publishing now starts from a published GitHub Release, and the workflow tests the tag, publishes to PyPI, then publishes images. No concrete defect was established in the changed files. The shared container workflow could not be inspected, so check the first release after merge, especially a prerelease tag and the latest aliases.

Security architecture risk: Minimal · up to 16133

Release publication becomes an explicit maintainer action, with testing before publication and narrower permissions. No material security or recovery regression was established in the inspected change.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The security-sensitive outcomes are publication of the project's Python distributions and container images, including aliases consumed by downstream deployments. Compromise of the corresponding publication identities could affect consumers of those releases. The inspected caller does not establish the registry-side resource limits of either identity.

Trust Boundaries and Controls

  • observed — Release-selected code executes during testing under contents-read permissions, with checkout credential persistence disabled. Tag values are passed as checkout or workflow inputs rather than interpolated into local shell commands. Privileged Python publication occurs in a separate job without a repository checkout; handling inside the external build and container workflows was not inspected.

Hardening Proposals

  • proposed — Confirm that the delegated container workflow makes newest-stable selection and alias updates safe across concurrent releases. If it does not, retain cross-release serialization around promotion. This is a verification and hardening proposal, not an observed alias-regression finding.
Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "fix: BED-10623 publish artifacts from published releases" matches the main change. The PR moves PyPI and container publishing from qualifying PR merges and tag pushes to the event where a m…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "fix: BED-10623 publish artifacts from published releases" matches the main change. The PR moves PyPI and container publishing from qualifying PR merges and tag pushes to the event where a maintainer publishes a GitHub Release. The diff deletes the merge-triggered release workflow and the container publish workflow, and changes publish.yml to trigger on release publication. The title is specific, uses a conventional prefix, and includes the ticket reference. It does not cover the removal of merge-triggered versioning, but that is expected.

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

I’m a rabbit by the tag,
I watch the release workflow wag.
Tests hop first, then wheels take flight,
Images follow, built just right.
I nibble clover, pleased to see,
New releases publish neatly.

Recent 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: 733ef29e-32e6-48fb-993e-d162500cfd8e
Commits

Reviewing files that changed from the base of the PR and between b3fb1fb and 1613387.

Files selected for processing: 5

  • .github/workflows/publish-container.yml
  • .github/workflows/publish.yml
  • .github/workflows/release-on-merge.yml
  • .github/workflows/test.yml
  • README.md
Files with no reviewable changes: 2

  • .github/workflows/publish-container.yml
  • .github/workflows/release-on-merge.yml

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@jaredcatkinson
jaredcatkinson merged commit 6c9e2f8 into main Nov 19, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants