Skip to content

ci: use PAT for code-freeze branch push - #1845

Merged
kajalj22 merged 1 commit into
mainfrom
fix/code-freeze-use-pat
Jul 1, 2026
Merged

kajalj22 merged 1 commit into
mainfrom
fix/code-freeze-use-pat

Conversation

@kajalj22

Copy link
Copy Markdown
Contributor

Summary

  • The github.token (Actions bot) doesn't have permission to push to protected r* release branches β€” it gets rejected with GH006: Protected branch update failed
  • Switch to use-pat: true so the workflow uses secrets.PAT (already set in repo secrets), which has the necessary bypass permissions
  • Bump FW-CI-templates from v0.86.0 β†’ v1.4.2 (aligns with Megatron-Bridge, the reference repo that runs this workflow successfully)

Context

Discovered during the failed run on 2026-06-30: https://github.com/NVIDIA-NeMo/Gym/actions/runs/28482988481/job/84423300655

Megatron-Bridge's equivalent workflow already uses this pattern correctly.

πŸ€– Generated with Claude Code

The github.token (Actions bot) lacks permission to push to protected
release branches (r*). Switch to PAT-based auth, which has the
necessary bypass permissions. Also bumps FW-CI-templates to v1.4.2.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Kajal Jain <kajalj@nvidia.com>
@kajalj22
kajalj22 merged commit 862a027 into main Jul 1, 2026
32 checks passed

This branch was previously deployed

1 inactive deployment
public β€” fccd57e3 Deployed Jun 30, 2026 by copy-pr-bot[bot] via release / finalize / notify #572
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.

2 participants