Skip to content

security: add environment gate to production PyPI publish job#439

Merged
bcantoni merged 1 commit into
developmentfrom
jac/publish-pypi-environment-gate
Jul 23, 2026
Merged

security: add environment gate to production PyPI publish job#439
bcantoni merged 1 commit into
developmentfrom
jac/publish-pypi-environment-gate

Conversation

@jacalata

Copy link
Copy Markdown
Contributor

Adds environment: pypi to the build-n-publish job in .github/workflows/publish-pypi.yml.

Without this, any repo write holder can invoke workflow_dispatch or publish a release and the production PyPI publish runs immediately with no human checkpoint. The pypi GitHub Environment is already configured on this repo with required reviewers (tableau/devplat), can_admins_bypass: false, and prevent_self_review: true — this change wires the job to it.

No logic changes — one line added.

🤖 Generated with Claude Code

Adds `environment: pypi` to the build-n-publish job, wiring it to the
GitHub Environment configured with required reviewers. Without this,
any repo write holder could invoke workflow_dispatch and publish to
production PyPI with no human checkpoint.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jacalata
jacalata force-pushed the jac/publish-pypi-environment-gate branch from ba6212c to 0246c01 Compare July 23, 2026 21:38
@jacalata jacalata closed this Jul 23, 2026
@jacalata jacalata reopened this Jul 23, 2026
@jacalata
jacalata changed the base branch from main to development July 23, 2026 21:58
@bcantoni
bcantoni merged commit 8269bcf into development Jul 23, 2026
3 checks passed
@bcantoni
bcantoni deleted the jac/publish-pypi-environment-gate branch July 23, 2026 23:48
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