[security][ci] Restrict privileged GPU jobs to trusted branches - #2047
Open
bvolpato wants to merge 1 commit into
Open
[security][ci] Restrict privileged GPU jobs to trusted branches#2047bvolpato wants to merge 1 commit into
bvolpato wants to merge 1 commit into
Conversation
Contributor
|
Note Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported. |
bvolpato
force-pushed
the
bvolpato/secure-pr-target-secrets
branch
from
August 16, 2026 15:42
708e5be to
0eb085d
Compare
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.
Summary
pull_request_targetGPU jobs only for branches in this repository.Why
The labeled GPU workflows check out and execute the pull request head while exposing repository Anyscale and Hugging Face credentials. A maintainer-applied label limits execution, but an external fork still controls the submitted scripts, config, and remote test payload.
The generic GPU workflow is not privileged on fork pull requests because GitHub withholds secrets, but it still starts and fails before tests with invalid Anyscale credentials. Skipping that job makes the missing GPU signal explicit instead of reporting a code failure.
External contributions must be mirrored to a reviewed branch in this repository before privileged GPU validation. Unprivileged CPU checks continue through their existing workflows.
Validation
yq.actionlint1.7.12pull_request_targetGPU workflows guarded; no unsafe checkout override remainsgit diff --check