Skip to content

ci: require cli-release approval before the stable CDN upload - #588

Merged
somanshreddy merged 1 commit into
mainfrom
11-20-gate_publish_cdn_on_cli_release_env
Nov 20, 2026
Merged

somanshreddy merged 1 commit into
mainfrom
11-20-gate_publish_cdn_on_cli_release_env

Conversation

@somanshreddy

Copy link
Copy Markdown
Collaborator

Scope

Surfaces: CLI release pipeline | Module: Release / distribution

Summary

Stable releases now pause before uploading the CLI to the public CDN until a release approver signs off. Live on merge: the next stable release waits at the CDN upload step for approval.

How it works

  • The CDN upload job in the stable release workflow now runs in the cli-release GitHub environment.
  • That environment requires one approval from a listed release approver. The person who started the run cannot approve it.
  • The environment deploys only from main.
  • Every other job in the release (build, tag, GitHub release) runs as before. Only the upload waits.

Testing

  • actionlint passes on the workflow.
  • The cli-release environment exists with its approvers, self-review blocked, and a main-only branch rule.
  • The next stable release, or a re-run of only the CDN upload job, will confirm the pause and the upload end to end.

Part of SECOPS-325

🤖 Generated with Claude Code

Part of SECOPS-325

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@miguel-heygen miguel-heygen 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.

Reviewed at c4e75544.

  • Only publish-cdn changes. The diff is one line in .github/workflows/release-stable.yml: environment: cli-release on publish-cdn (line 240). release, cleanup-failed-release and publish-release have no environment and are unchanged. The trigger is still workflow_dispatch, and nothing else in the release changes.
  • The cli-release environment matches the description (read with the environments API):
    • Required reviewers: three listed users, so one approval from any of them.
    • prevent_self_review: true.
    • The deployment branch policy is custom, with the single branch rule main.

Nit: the environment has can_admins_bypass: true, so a repo admin can run the upload without an approval. If "pauses until a release approver signs off" should hold for admins too, turn that off in the environment settings. It is not part of this diff.

All checks at this head: all 12 check runs finished green, none pending; not DIRTY.

Verdict: APPROVE

@somanshreddy
somanshreddy merged commit 1b52695 into main Nov 20, 2026
12 checks passed
@somanshreddy
somanshreddy deleted the 11-20-gate_publish_cdn_on_cli_release_env branch November 20, 2026 11:28
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.

3 participants