Skip to content

fix(ci): never create packages, which inherit the repository's public visibility - #13535

Merged
cv merged 1 commit into
v1from
fix/never-create-packages-in-ci
Oct 20, 2026
Merged

cv merged 1 commit into
v1from
fix/never-create-packages-in-ci

Conversation

@cv

@cv cv commented Oct 20, 2026

Copy link
Copy Markdown
Collaborator

Failure

The first v1 push after #13533 created ghcr.io/nvidia/nemoclaw/v1-ci/claude as a public package and pushed one arm64 image to it (run 39407390276). A package created by a workflow's token inherits this public repository's visibility; the earlier probe used a personal token, and its package started internal. The visibility check ran only after the first push, so it stopped further pushes but not that one. The staging workflow from #13534 would likewise create every v1/<image> package public on its first tag, but no tag has been pushed.

Decision

Workflows never create packages.

  • Guard: a composite action, .github/actions/internal-packages, checks that every target package already exists and isn't public, before anything is pushed.

  • image-build.yml: on v1 pushes it runs the guard as a warning. If any package is missing or public, it skips the push and the Build checks stay green until the packages exist. The post-push check is gone.

  • release.yml: the runtime and stage jobs run the guard as an error, before pushing runtime images or creating v1/<image>:<tag> indexes.

  • Docs: docs/contributing/releases.md gains "Provision the Packages":

    • an administrator creates each v1-ci/ and v1/ package as internal, by pushing any image with a personal token;
    • then grants NVIDIA/NemoClaw Actions write access;
    • a public package must be deleted and created again.

    The testing guide links to it.

Validation

  • actionlint reports nothing for the three workflows, and fern check passes.
  • Until packages are provisioned, the next image-affecting v1 push should skip its push with a warning per package.

v1-ci/claude remains public until it is deleted.

@cv
cv enabled auto-merge (squash) October 20, 2026 10:38
@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv merged commit fdc4545 into v1 Oct 20, 2026
@cv
cv deleted the fix/never-create-packages-in-ci branch October 20, 2026 11:03
cv added a commit that referenced this pull request Oct 20, 2026
## Failure

Since #13535, workflows only push to packages that already exist as
internal. Each package needs its repository Actions access granted by
hand in its settings; GitHub has no REST API for that. Per-commit images
used one package per image (`v1-ci/<image>`), so provisioning took 13 CI
packages on top of the 13 release packages.

## Decision

Keep every per-commit image in one package, with the image name in the
tag: `ghcr.io/nvidia/nemoclaw/v1-ci:<image>-<commit>-<arch>`. Users
never pull these, so per-image names add nothing. The release packages
stay per image (`v1/<image>`), because users pull those by name.
Provisioning drops to 14 packages.

- **`image-build.yml`:** pushes `v1-ci:<image>-<commit>-<arch>`, and its
guard checks the one `v1-ci` package.
- **`release.yml`:** reads and pushes `v1-ci:<image>-<commit>-<arch>`,
guards `v1-ci` before pushing the runtime images, and guards each
`v1/<image>` before promoting.
- **Docs:** the staging guide lists the 14 packages.

## Validation

`actionlint` reports nothing for the three workflows.
@wscurran wscurran added area: ci CI workflows, checks, release automation, or GitHub Actions area: security Security controls, permissions, secrets, or hardening chore Build, CI, dependency, or tooling maintenance platform: container Affects Docker, containerd, Podman, or images v1 NemoClaw v1 branch labels Oct 23, 2026
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci CI workflows, checks, release automation, or GitHub Actions area: security Security controls, permissions, secrets, or hardening chore Build, CI, dependency, or tooling maintenance platform: container Affects Docker, containerd, Podman, or images v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants