Skip to content

ci: use org composite publish action (on: published) - #302

Merged
fubuloubu merged 3 commits into
mainfrom
ci/publish-reusable
Oct 28, 2026
Merged

fubuloubu merged 3 commits into
mainfrom
ci/publish-reusable

Conversation

@fubuloubu

@fubuloubu fubuloubu commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Summary

Replace the local publish job body with the org composite action ApeWorX/.github/.github/actions/publish, and fire on release: types: [published] (includes prereleases).

Merge order: merge ApeWorX/.github#4 before this PR.

Why not a reusable workflow? PyPI Trusted Publishing does not support reusable workflows today; a composite action keeps this repo's publish.yaml as the OIDC workflow identity.

Caveat: the release event trigger stays in this repo; only the step body is centralized. No environment: pypi.

Security (shared publish action)

  • Trust boundary: @main on ApeWorX/.github — anyone who can change that action changes publish steps for all callers. Mitigate with CODEOWNERS + rulesets on .github.
  • OIDC blast radius: job runs in the caller repo; PyPI Trusted Publishers stay per-package on this workflow filename. A compromised action can alter artifacts on a real release; it does not unlock unrelated packages.
  • Why composite, not reusable workflow: PyPI does not support reusable workflows for Trusted Publishing today (docs, warehouse#11096).
  • No GitHub Environment: intentional — org does not gate publish on Environments today.
  • @main vs SHA pin: @main matches prtitle convention; pinning SHA limits blast until consumers bump.
  • Trigger still per-repo: creating a release still needs release perms on that package repo.

Test plan

  • Confirm composite action is on ApeWorX/.github main before merge
  • After merge, next Release/prerelease publishes via OIDC Trusted Publishing

@fubuloubu fubuloubu changed the title ci: use org reusable publish workflow (on: published) ci: use org composite publish action (on: published) Oct 27, 2026
@fubuloubu
fubuloubu merged commit 575cb67 into main Oct 28, 2026
29 of 39 checks passed
@fubuloubu
fubuloubu deleted the ci/publish-reusable branch October 28, 2026 00:56
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.

1 participant