mirror of
https://github.com/browser-use/browser-use.git
synced 2026-09-14 19:59:47 +08:00
1186d4cc44
browser-use ships to PyPI via OIDC trusted-publishing today, but the publish job had no environment gate — anyone with workflow-dispatch access (or any token with workflow scope) could trigger a publish single-handedly. Adds: - environment: release on publish_to_pypi Reviewers configured separately on the env: gregpr07, MagMueller, sauravpanda. prevent_self_review:true so the dispatcher cannot self-approve. - Fail-closed preflight that verifies the env still has required reviewers and prevent_self_review enabled before publishing. Same check the sdk pipeline uses. Guards against silent env config drift. - actions: read permission on the publish job for the env check. Does NOT change the trigger model (release:published + workflow_dispatch), does NOT touch tag_pre_release, does NOT touch the trusted-publishing publish command itself. Minimal change, single security win: two-person rule on every PyPI release. Refs ENG-4762.