Skip to content

ci: authenticate nightly GHCR polling - #668

Merged
svvarom merged 1 commit into
mainfrom
authenticate-nightly-ghcr-polling/smuley
Jul 14, 2026
Merged

ci: authenticate nightly GHCR polling#668
svvarom merged 1 commit into
mainfrom
authenticate-nightly-ghcr-polling/smuley

Conversation

@svvarom

@svvarom svvarom commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

The nightly release run successfully pushed wheels, containers, and the Helm chart, but final artifact polling never got past the first GHCR container. The poll was anonymous because nightly GHCR artifacts were expected to be public; these packages are currently private, so docker manifest inspect received denied and retried as though the artifact had not arrived.

This PR gives only the final polling job packages: read and authenticates Docker and Helm with the repository's built-in GITHUB_TOKEN for nightly runs. Stable container and Helm polling remains anonymous, and no PAT or new secret is introduced.

Human attention needed

  • Decision: accept authenticated GHCR availability as the nightly readiness contract while public access is tracked separately in AIREINF-269
  • Read carefully: the job-level package permission and the two nightly-only registry logins
  • Safe to skim: comment updates describing nightly versus stable access
  • Proof: actionlint, act workflow_dispatch --list, and git diff --check pass locally; the failed nightly poll reproduced the anonymous denied response after the container build had pushed successfully
  • Biggest risk: each private container package must grant the nemo-platform repository Actions read access; a fresh nightly is still required to prove that package-side configuration end to end

Rollout

Merge this change, then start a fresh nightly from main. Rerunning the existing workflow would reuse its original workflow revision and would not exercise this fix.

Summary by CodeRabbit

  • Bug Fixes
    • Improved nightly release readiness checks by authenticating access to container images and Helm charts.
    • Added the required package-read permissions for nightly artifact validation.
    • Preserved existing behavior for stable release checks.

Signed-off-by: Swarom Muley <smuley@nvidia.com>
@github-actions github-actions Bot added the ci label Jul 14, 2026
@svvarom svvarom self-assigned this Jul 14, 2026
@github-actions

Copy link
Copy Markdown
Contributor
Suite Lines Covered Line Rate Branch Rate
Unit Tests 23845/31009 76.9% 61.7%
Integration Tests 13817/29658 46.6% 19.6%

@svvarom
svvarom marked this pull request as ready for review July 14, 2026 15:04
@svvarom
svvarom requested a review from a team as a code owner July 14, 2026 15:04
@svvarom
svvarom requested a review from crookedstorm July 14, 2026 15:07

@crookedstorm crookedstorm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this covers my PR faster than I could get it up. LGTM

@coderabbitai

coderabbitai Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Changes

Nightly release authentication

Layer / File(s) Summary
Polling permissions and registry context
.github/workflows/release.yaml
The final release polling job adds packages: read permission and documents stable versus nightly registry access.
Nightly container authentication
.github/workflows/release.yaml
Nightly container polling logs into GHCR with GITHUB_TOKEN before checking manifests.
Nightly Helm authentication
.github/workflows/release.yaml
Nightly Helm polling logs into GHCR with GHCR_TOKEN; stable polling remains unchanged.

Sequence Diagram(s)

sequenceDiagram
  participant poll-final-release
  participant Docker
  participant Helm
  participant GHCR
  poll-final-release->>Docker: Login to ghcr.io for nightly containers
  Docker->>GHCR: Poll container manifests
  GHCR-->>Docker: Container readiness
  poll-final-release->>Helm: Login to ghcr.io for nightly charts
  Helm->>GHCR: Poll Helm charts
  GHCR-->>Helm: Chart readiness
Loading

Possibly related PRs

Suggested labels: ci

Suggested reviewers: crookedstorm

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: authenticating nightly GHCR polling in CI.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch authenticate-nightly-ghcr-polling/smuley

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
.github/workflows/release.yaml (1)

804-804: 🔒 Security & Privacy | 🔵 Trivial

Confirm GHCR package access is granted to this workflow repository.

If the nightly packages are owned by another repository or use granular permissions, packages: read plus ${{ github.token }} is not sufficient: GitHub limits GITHUB_TOKEN to the workflow repository and requires package-level Actions access. Confirm that access is configured, then run the required fresh nightly from main; otherwise both login steps can still fail with denied. (docs.github.com)

Also applies to: 862-875, 896-904

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/release.yaml at line 804, Verify that the GHCR packages
used by the nightly workflow grant Actions access to this workflow repository,
especially when packages are owned elsewhere or use granular permissions.
Configure the package-level repository access as needed, then run a fresh
nightly from main to confirm both GHCR login steps succeed with packages: read
and github.token.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In @.github/workflows/release.yaml:
- Line 804: Verify that the GHCR packages used by the nightly workflow grant
Actions access to this workflow repository, especially when packages are owned
elsewhere or use granular permissions. Configure the package-level repository
access as needed, then run a fresh nightly from main to confirm both GHCR login
steps succeed with packages: read and github.token.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 0c844024-3b8f-4896-8623-db13e8bcecf8

📥 Commits

Reviewing files that changed from the base of the PR and between 583b46d and b14975a.

📒 Files selected for processing (1)
  • .github/workflows/release.yaml

@svvarom
svvarom added this pull request to the merge queue Jul 14, 2026
Merged via the queue into main with commit d4182b3 Jul 14, 2026
57 checks passed
@svvarom
svvarom deleted the authenticate-nightly-ghcr-polling/smuley branch July 14, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants