From 33d2850c843365b93fb116b362aebdd599b2f159 Mon Sep 17 00:00:00 2001 From: Josh Garton Date: Wed, 2 Sep 2026 10:28:18 -0500 Subject: [PATCH] Pin rustpipe-sc GHCR digest. Stop asking for a public click. GHCR is public. Anonymous HEAD 401 is not private. Do not float latest. --- .github/workflows/publish-ghcr.yml | 10 +--------- PACKET.md | 4 ++-- README.md | 22 ++++------------------ 3 files changed, 7 insertions(+), 29 deletions(-) diff --git a/.github/workflows/publish-ghcr.yml b/.github/workflows/publish-ghcr.yml index 6b85ab6..c1c56d8 100644 --- a/.github/workflows/publish-ghcr.yml +++ b/.github/workflows/publish-ghcr.yml @@ -62,17 +62,9 @@ jobs: { echo "## rustpipe-sc GHCR digest" echo "" - echo "linux/amd64. Pin this string. Do not float on \`latest\`. Do not \`docker build\` this image inside prairie-rna-stream." + echo "linux/amd64. Pin this string. Do not float on \`latest\`. Do not \`docker build\` this image inside prairie-rna-stream. GHCR is public; anonymous HEAD 401 is not private." echo "" echo '```' echo "${IMAGE}:0.3.0@${{ steps.build.outputs.digest }}" echo '```' - echo "" - echo "First package from GITHUB_TOKEN is private. Make it public:" - echo "" - echo '```' - echo "gh api --method POST -H 'Accept: application/vnd.github+json' \\" - echo " /user/packages/container/rustpipe-sc/visibility \\" - echo " -f visibility=public" - echo '```' } >> "$GITHUB_STEP_SUMMARY" diff --git a/PACKET.md b/PACKET.md index be4fe74..982a797 100644 --- a/PACKET.md +++ b/PACKET.md @@ -54,7 +54,7 @@ No hashed `run.json` yet. `pipeline_timings.json` is the provenance file. A Prai Pull the published linux/amd64 image. Never `docker build` this tree from prairie-rna-stream. ``` -ghcr.io/jwg054000/rustpipe-sc:0.3.0@sha256: +ghcr.io/jwg054000/rustpipe-sc:0.3.0@sha256:0f7164c538e49c8e8125299fe405e000ad9e9f6aba054142371cffdffbf98e1d ``` -Until the first successful publish + public visibility click, that digest does not exist. See README (Container). +GHCR is public. See README (Container). diff --git a/README.md b/README.md index f96c3e7..cb4f564 100644 --- a/README.md +++ b/README.md @@ -73,31 +73,17 @@ Without the `hdf5` feature, CSV input is still supported. Published image: `ghcr.io/jwg054000/rustpipe-sc` (linux/amd64, HDF5 enabled). -**Digest-pin.** Downstream pipelines must `docker pull` a digest-pinned reference. They must **never** `docker build` this tree, never vendor this repo, and never compile rustpipe-sc inside prairie-rna-stream. +**Digest-pin.** Downstream pipelines must `docker pull` a digest-pinned reference. They must **never** `docker build` this tree, never vendor this repo, and never compile rustpipe-sc inside prairie-rna-stream. GHCR is public; do not float on `latest`. Anonymous `HEAD` without a token redeem still 401 — that is not private. ``` -ghcr.io/jwg054000/rustpipe-sc:0.3.0@sha256: +ghcr.io/jwg054000/rustpipe-sc:0.3.0@sha256:0f7164c538e49c8e8125299fe405e000ad9e9f6aba054142371cffdffbf98e1d ``` -Do not float on `latest`. The publish workflow writes the digest to the Actions job summary. After the first successful push the package is **private** until made public: - -```bash -# run publish (after this workflow exists on main) -gh workflow run publish-ghcr.yml --repo jwg054000/RustPipe-SC - -# make the package pullable without a GHCR token -gh api --method POST -H "Accept: application/vnd.github+json" \ - /user/packages/container/rustpipe-sc/visibility \ - -f visibility=public -``` - -UI equivalent: [GHCR package settings](https://github.com/users/jwg054000/packages/container/package/rustpipe-sc) → Change visibility → Public. - ```bash -docker pull ghcr.io/jwg054000/rustpipe-sc:0.3.0 +docker pull ghcr.io/jwg054000/rustpipe-sc:0.3.0@sha256:0f7164c538e49c8e8125299fe405e000ad9e9f6aba054142371cffdffbf98e1d docker run --rm \ -v "$PWD/in:/in:ro" -v "$PWD/out:/out" \ - ghcr.io/jwg054000/rustpipe-sc:0.3.0 \ + ghcr.io/jwg054000/rustpipe-sc:0.3.0@sha256:0f7164c538e49c8e8125299fe405e000ad9e9f6aba054142371cffdffbf98e1d \ pipeline --input /in/filtered_feature_bc_matrix.h5 --output /out ```