Repository navigation
ci: add guardwords checks for PR changes and descriptions - #4271
Conversation
Signed-off-by: Charlie Truong <[email protected]>
Signed-off-by: Charlie Truong <[email protected]>
Signed-off-by: Charlie Truong <[email protected]>
Signed-off-by: Charlie Truong <[email protected]>
Signed-off-by: Charlie Truong <[email protected]>
Signed-off-by: Charlie Truong <[email protected]>
Signed-off-by: Charlie Truong <[email protected]>
Signed-off-by: Charlie Truong <[email protected]>
Signed-off-by: Charlie Truong <[email protected]>
Signed-off-by: Charlie Truong <[email protected]>
Reuse the FW-CI-templates scanner at its reviewed PR commit and remove the Gym-local copy. Refs: AUT-2502 Signed-off-by: Charlie Truong <[email protected]>
Signed-off-by: Charlie Truong <[email protected]>
Signed-off-by: Charlie Truong <[email protected]>
|
/ok to test ac48434 |
Signed-off-by: Charlie Truong <[email protected]>
|
/ok to test ea8c7c1 |
Signed-off-by: Charlie Truong <[email protected]>
|
/ok to test f886b00 |
|
/claude review |
|
SHIP — LGTM, no reliability concerns. CI/tooling-only change (new guardwords workflow + pre-commit hook + regenerated
No verifier/scorer, async, or public-API surface touched; nothing to smoke-test with a model. |
Signed-off-by: Charlie Truong <[email protected]>
Signed-off-by: Charlie Truong <[email protected]>
|
/ok to test 594cc43 |
Signed-off-by: Charlie Truong <[email protected]>
|
/ok to test 62ecd50 |
|
/review |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
SHIP — LGTM — no reliability concerns.
Reviewed all three changed files and their affected CI/pre-commit paths:
- Guardwords workflow: mirror-SHA verification gates the reusable job; PR inputs are passed without interpolating metadata into shell code.
- Pre-commit configuration: hook and workflow use the same immutable template pin.
- Secrets baseline: combined exclusion regex preserves the existing alternatives, and detector settings remain unchanged.
Static review only. Tests were not executed; external template internals and live private-catalog behavior were not independently verified.
Note: formal approval is not available for this request, so this review is posted as a comment only.
Review generated by codex
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/38332040057 |
Adds the Gym Guardwords caller for approved
pull-request/**mirror pushes. It obtains PR metadata, verifies that the mirror SHA matches the PR head, and passes the base SHA, head SHA, and numeric PR number to the reusable workflow at FW-CI-templates commitd0a139c4943a203afaadb6af7373b9055e653cd1(v1.15.0).CI checks both added diff lines and the full current PR description. The shared workflow fetches the description directly to a temporary file, verifies the PR number/repository/head SHA, and reports only match locations. Gym's mirror verification receives only the head SHA rather than the full metadata in its step environment, avoiding description exposure there. Existing
contents: readandpull-requests: readpermissions satisfy the merged interface.Also adds the optional shared pre-commit hook at the same release commit. It checks staged additions when the developer can access the private catalog and succeeds with a generic skip message otherwise. The refreshed secrets baseline preserves every existing exclusion and detector setting; only the accepted template-pin hash and timestamp changed.
The shared implementations are merged in FW-CI-templates #599 and #602. No separate Gym issue is needed for this focused consumer integration.
Validation:
pre-commit run --all-files: passed with the v1.15.0 pin.pre-commit validate-config: passed..github/workflows/guardwords-check.yml: passed with shellcheck disabled.git diff --check: passed.Rollouts: N/A — CI/developer tooling only; no environment, agent, verifier, or benchmark behavior changes.
Compatibility: developers without Guardwords access can still commit. CI remains the enforced check. The workflow triggers on approved mirror pushes; a description edit alone does not trigger it, so rerun the caller to fetch and check the edited description.