Skip to content

fix(root): gate beta/alpha publish workflow behind an environment - #9471

Merged
louib merged 1 commit into
masterfrom
louis/inf-2526-protect-beta-alpha-publish
Aug 11, 2026
Merged

fix(root): gate beta/alpha publish workflow behind an environment#9471
louib merged 1 commit into
masterfrom
louis/inf-2526-protect-beta-alpha-publish

Conversation

@louib

@louib louib commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Restrict the publish workflow's job with a GitHub environment named beta-alpha-release, instead of running unconstrained on ubuntu-latest. The corresponding environment (added in the infra repo) will use a deployment branch policy limited to protected branches, so the job can only run when dispatched from master.

Previously @bitgo-beta (and @bitgo-alpha) packages could be published from any PR branch via workflow_dispatch, even though @bitgo-beta packages are consumed by production systems. Restricting both scopes to the same protected-branch environment closes that gap and also requires approval for alpha releases triggered from PR runs.

Ticket: INF-2526
Session-Id: 2fc496b6-5f20-43a9-94f6-2f4e6f8f8d2b
Task-Id: b2188fee-9bd7-41b8-b5db-78b108797dc0

Restrict the publish workflow's job with a GitHub environment named
beta-alpha-release, instead of running unconstrained on ubuntu-latest.
The corresponding environment (added in the infra repo) will use a
deployment branch policy limited to protected branches, so the job
can only run when dispatched from master.

Previously @bitgo-beta (and @bitgo-alpha) packages could be published
from any PR branch via workflow_dispatch, even though @bitgo-beta
packages are consumed by production systems. Restricting both scopes
to the same protected-branch environment closes that gap and also
requires approval for alpha releases triggered from PR runs.

Ticket: INF-2526
Session-Id: 2fc496b6-5f20-43a9-94f6-2f4e6f8f8d2b
Task-Id: b2188fee-9bd7-41b8-b5db-78b108797dc0
@linear-code

linear-code Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

INF-2526

@louib
louib marked this pull request as ready for review August 11, 2026 17:43
@louib
louib requested review from a team as code owners August 11, 2026 17:43
@louib
louib merged commit 03927d7 into master Aug 11, 2026
23 checks passed
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