Skip to content

ci(release): gate PyPI publish behind environment approval#81

Merged
benner merged 1 commit into
mainfrom
ci/add-pypi-environment-gate
May 1, 2026
Merged

ci(release): gate PyPI publish behind environment approval#81
benner merged 1 commit into
mainfrom
ci/add-pypi-environment-gate

Conversation

@benner
Copy link
Copy Markdown
Owner

@benner benner commented May 1, 2026

Without an environment gate, any tag push immediately publishes to PyPI
with no human review step. Adding environment: pypi lets GitHub require
manual approval before the job runs, preventing a compromised tag or
stolen write token from silently shipping a malicious package.

Requires creating the "pypi" environment in Settings → Environments with
required reviewers configured before merging.

Without an environment gate, any tag push immediately publishes to PyPI
with no human review step. Adding environment: pypi lets GitHub require
manual approval before the job runs, preventing a compromised tag or
stolen write token from silently shipping a malicious package.

Requires creating the "pypi" environment in Settings → Environments with
required reviewers configured before merging.

Signed-off-by: Nerijus Bendžiūnas <nerijus.bendziunas@gmail.com>
@benner benner marked this pull request as ready for review May 1, 2026 14:10
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 1, 2026

Coverage

Coverage Report (Δ +0.0%)
FileStmtsMissCoverMissing
src/git_commit_guard
   __init__.py4320100% 
TOTAL4320100% 

@benner benner merged commit 031022f into main May 1, 2026
7 checks passed
@benner benner deleted the ci/add-pypi-environment-gate branch May 1, 2026 14:10
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.

1 participant