Skip to content

Gate package publishing on protected refs#4124

Open
owenshuo wants to merge 1 commit into
orchestration-agent:mainfrom
owenshuo:fix/4123-protected-publish-refs
Open

Gate package publishing on protected refs#4124
owenshuo wants to merge 1 commit into
orchestration-agent:mainfrom
owenshuo:fix/4123-protected-publish-refs

Conversation

@owenshuo
Copy link
Copy Markdown

Fixes #4123\n/claim #4123\n\n## Summary\n- add a package publish workflow with the protected-ref gate before Python setup, build, or registry authentication\n- require workflow-dispatch and branch publishes to run only from protected release branches\n- require release tags to match the documented version format and pass git signature verification\n- add tests covering protected branches, unsafe manual refs, and signed/unsigned release tag policy\n\n## Verification\n- python3 -m pytest tests/test_validate_publish_ref.py -q\n- python3 -m flake8 scripts/validate_publish_ref.py tests/test_validate_publish_ref.py\n- git diff --check\n- python3 scripts/validate_publish_ref.py --ref refs/heads/main --ref-protected true --event workflow_dispatch

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.

[ Bounty $7k ] [ CI ] Enforce protected refs for package publishing — registry release job

1 participant