Skip to content

fix(release): Keep package artifacts private in GHCR - #39

Merged
offendingcommit merged 1 commit into
mainfrom
fix/private-release-artifacts
Sep 23, 2026
Merged

offendingcommit merged 1 commit into
mainfrom
fix/private-release-artifacts

Conversation

@offendingcommit

@offendingcommit offendingcommit commented Sep 23, 2026 •

Copy link
Copy Markdown
Owner

Intent

Jonathan explicitly rejected PyPI and selected private artifacts only, keeping the existing public source repository unchanged. Published/verifiable does not mean publicly distributed.

Changes

  • Remove PyPI preflight, upload, OIDC environment and registry verification. Keep PyPI only as a possible third-party dependency source.
  • Replace public-repository Actions wheel uploads with deterministic private GHCR staging, digest-pinned authenticated fetch, exact-byte verification and separate private final receipt artifacts.
  • Require positive package visibility=private and an unlinked package before sensitive uploads. First creation bootstraps metadata only, then verifies privacy. Refuse existing tags naming different bytes; exact retries reuse the tested bytes.
  • Preserve source/test/build gates, source identity, atomic source/tag promotion and immutable-release control. GitHub Releases contain only bundle/receipt digest references, with an empty asset list; no binary or receipt attachments.
  • Package access uses environment-scoped classic credentials, never the public repository's GITHUB_TOKEN or repository-linked permissions that could expose packages to forks.
  • Replace public-registry receipt contracts with schema 2 and behavior tests. Update installation, recovery and authoring guidance.

Applied external configuration and containment

  • SEMANTIC_RELEASE_ENABLED=false, verified; it remains disarmed.
  • Main-only private-artifacts environment configured; package writer provisioned securely from the existing homelab GHCR credential. Source-promotion has a separate package-read credential. SOURCE_PROMOTION_TOKEN remains separate. No token values were logged or committed, and no scopes were expanded.
  • Credential scope caveat: the reused writer retains its existing repo, workflow and delete:packages authority as well as write:packages. Main-only environment restrictions narrow availability, not its underlying authority; this is not a package-only token. Review that reuse before activation or replace it with a package-only credential.
  • With explicit approval, all eight historical binary Actions artifacts were archived locally with owner-only permissions, archive hashes/ZIP integrity and all 16 distribution hashes verified, then deleted remotely. The 22 source/test-evidence artifacts remain.

Verification

  • just test: 258 tests, OK; 17 native-Hermes checks skipped locally. Push CI 35890751590 and PR CI 35890843117 both passed, including hermes-deployed-contract, unittest and package jobs.
  • actionlint and yamllint across all workflow files: pass.
  • Real GHCR bootstrap: private visibility, repository=null. Real stage/fetch of the original CI-tested v0.9.0 distributions without rebuilding: exact hashes; separate reader succeeds; anonymous fetch is denied; identical retry preserves digest; conflicting candidate digest is refused.
  • Downloaded wheel installed and imported offline in a fresh environment.
  • Actual metadata-release shell exercised with isolated Git/GitHub boundaries: assetless creation, idempotent retry and refusal of existing assets. No remote GitHub Release created.
  • Latest-action audit: every workflow action checked against upstream latest stable release and exact tag commit. Added setup-oras v2.0.1 / ORAS 1.3.4. The named github-actions-latest plugin is unavailable on this host; direct GitHub API audit is the explicit tooling exception.

Release boundary

The private staging smoke is NOT a final version release or CI publication receipt. No version tag was rebound, no final receipt published, and no live runtime changed. Do not rerun the old PyPI workflow or retag v0.9.0. Merge/review this cutover before rearming a normal release. Infra PR #959 records the corrected prerequisite; live-plugin handoff remains 3/30, awaiting a final private publication and combined runtime qualification.

Replace public package publication with independently private OCI staging and digest-verified receipts. Keep source public, enforce protected package credentials, and expose only metadata in immutable GitHub Releases.
@offendingcommit
offendingcommit merged commit c418ed0 into main Sep 23, 2026
6 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.

1 participant