You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CI: restrict cuda_bindings changes to NVIDIA members
Keep the PR policy workflow self-contained by using the pull request payload and files API to block non-members from modifying low-level bindings.
Made-with: Cursor
or ((.previous_filename // "") | startswith("cuda_bindings/"))
136
+
)
137
+
' <<<"$FILES_JSON" >/dev/null; then
138
+
TOUCHES_CUDA_BINDINGS=true
139
+
break
140
+
fi
141
+
142
+
FILE_COUNT=$(jq 'length' <<<"$FILES_JSON")
143
+
if [ "$FILE_COUNT" -lt 100 ]; then
144
+
break
145
+
fi
146
+
147
+
page=$((page + 1))
148
+
done
149
+
150
+
if [ "$TOUCHES_CUDA_BINDINGS" = "true" ]; then
151
+
ERRORS="${ERRORS}- **cuda_bindings policy**: See \`cuda_bindings/LICENSE\`. Only NVIDIA organization members may modify files under \`cuda_bindings/\` (PR author \`$PR_AUTHOR\` has association \`$AUTHOR_ASSOCIATION\`).\n"
152
+
fi
153
+
fi
154
+
106
155
if [ -n "$ERRORS" ]; then
107
-
echo "::error::This PR is missing required metadata. See the job summary for details."
156
+
echo "::error::This PR failed the required metadata/policy checks. See the job summary for details."
0 commit comments