Repository navigation
Conversation
Signed-off-by: oliver könig <okoenig@nvidia.com>
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
Run uses shared workflows to prepare releases, publish wheels and documentation, and cut release branches. This brings those callers onto the protected release interface used by Gym and adds Gym’s mirror check for Guardwords.
What changed
run-releaseenvironment. Push validation and rehearsals use a read-only GitHub token. Manual releases check that the requested SHA belongs to the protected target branch. Production targets aremainor version branches such asr0.13.0.pypienvironment and OIDC identity. Pushes and dry runs build the documentation artifact. The release publisher receives its AWS and Akamai inputs only when production docs publication is requested. The nightly docs workflow keeps its existing target and version-picker settings.main. The Community Bot retains its cross-organization App for membership and project access..github/CODEOWNERScovers.github/and the pre-commit configuration. All shared workflow calls, the docs helper checkout, the Guardwords hook and the Renovate Python preset use the same template commit.Details
GitHub now requires code-owner review in the classic protection rules for
mainand[rv][0-9]*.[0-9]*.[0-9]*. The release rule restricts pushes and branch creation. These settings were verified onmainandr0.12.0. This PR adds ownership for CI configuration. Therun-releaseenvironment allows onlymainand disables admin bypass. Production activation still requires its release App private key and permission for the App to create a protected release branch.Tested
.venv/bin/python -m unittest discover -s .github/tests -p 'test_*workflow.py' -vpassed all 13 tests, including stale mirror rejection, protected target ancestry, dry-run credential routing and PyPI OIDC permissions.actionlint -oneline .github/workflows/*.ymland.venv/bin/pre-commit validate-configpassed. Checked 11 upstream and four local reusable workflow calls against their input, secret and output declarations, and 19 documentation action inputs against its manifest..venv/bin/ruff check . .github/testsand.venv/bin/ruff format --check . .github/testspassed across 172 Python files.detect-secrets-hook --baseline .github/workflows/config/.secrets.baselinepassed for the staged files. The two new baseline entries identify the public template commit hash.