Commit 33efe60
[no-ci] CI: Add restricted-paths-guard.yml (#1878)
* CI: add PR author organization check
Report restricted-path author gating as its own workflow so contributors see the organization requirement as soon as a PR touches cuda_bindings/ or cuda_python/.
Made-with: Cursor
* CI: fix PR author org check file lookup
Keep the lightweight PR check runnable on GitHub-hosted runners by avoiding the unsupported gh api --slurp --jq combination when scanning changed files.
Made-with: Cursor
* XXX DUMMY CHANGE XXX under cuda_bindings/
* CI: show matched restricted paths in PR check
Include the exact restricted-path matches in the job summary so contributors and reviewers can see what triggered the author organization check.
Made-with: Cursor
* CI: triage inconclusive PR author org checks
Query NVIDIA org membership directly for restricted-path PRs so the workflow can distinguish members, non-members, and inconclusive cases, label PRs that need manual review, and show the matched files. Keep the trigger on pull_request temporarily so the new check can be exercised before switching back to pull_request_target.
Made-with: Cursor
* Revert "CI: triage inconclusive PR author org checks"
This reverts commit 42ba3f8.
* CI: allow collaborators in PR author org check
Treat repository collaborators as trusted for restricted-path changes so the workflow blocks only authors with no collaborator, member, or owner association.
Made-with: Cursor
* CI: label PRs without trusted author signals
Use OWNER and MEMBER associations plus public NVIDIA membership as true-positive signals, and add a review label instead of failing when the workflow cannot confirm the author automatically.
Made-with: Cursor
* Revert "CI: label PRs without trusted author signals"
This reverts commit 9dcf7b1.
* CI: use checked-in PR author allowlist
Replace the public-membership probe with a checked-in allowlist so restricted-path PRs can still get a known true positive during rollout while labeling authors that need manual review.
Made-with: Cursor
* CI: rename PR author trusted signal wording
Replace the remaining "true positive" terminology with "trusted signal" so the workflow summary and implementation language match the current manual-review design.
Made-with: Cursor
* CI: clarify renamed restricted path matches
Show both the previous and current path in the PR author check summary so rename-triggered matches are understandable during manual review.
Made-with: Cursor
* CI: trust collaborators in PR author check
Remove the temporary checked-in allowlist and treat COLLABORATOR as a trusted author signal again so the workflow matches the team policy.
Made-with: Cursor
* CI: shorten restricted paths guard names
Use shorter workflow and job names so the GitHub checks list is easier to scan while keeping the manual-review intent clear.
Made-with: Cursor
* CI: rename restricted paths review label
Use a maintainer-facing label name that better describes the follow-up action required before merging inconclusive restricted-path changes.
Made-with: Cursor
* CI: rename restricted paths guard workflow
Use workflow, job, and summary names that match the current restricted-paths guard behavior and read more clearly in the GitHub checks UI.
Made-with: Cursor
* Resolve TODO before merging:
- undo cuda_bindings/pyproject.toml # XXX DUMMY CHANGE XXX
- change trigger from pull_request (useful only for testing this PR) to pull_request_target
* CI: harden restricted paths guard label handling
Fetch live PR labels to avoid stale event data, use pull-request label edits, and keep the restricted-paths review label in place until a maintainer removes it manually.
Made-with: Cursor
* Revert "Resolve TODO before merging:"
This reverts commit 02edff4.
* Resolve TODO before merging:
- undo cuda_bindings/pyproject.toml # XXX DUMMY CHANGE XXX
- change trigger from pull_request (useful only for testing this PR) to pull_request_target
* Fix Copyright year
Co-authored-by: Leo Fang <leof@nvidia.com>
---------
Co-authored-by: Leo Fang <leof@nvidia.com>1 parent eb6a33a commit 33efe60
1 file changed
+173
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
0 commit comments