File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -31,12 +31,11 @@ jobs:
31
31
steps :
32
32
- uses : actions/checkout@v4
33
33
with :
34
- # Always checkout the master branch to avoid checking out
35
- # code of untrusted PRs.
36
- # This might break the dry-run if code or schema modifications
37
- # are performed, we can selectively allow that in the future
38
- # e.g. if the author of the PR is trusted.
39
- ref : ' master'
34
+ # If the PR is from this repository, checkout the PR sha,
35
+ # so that we can also test code changes.
36
+ # If it is from a fork, then always checkout the 'master' branch,
37
+ # to avoid checking out code of untrusted PRs.
38
+ ref : ${{ github.event.workflow_run.head_repository.full_name != 'rust-lang/team' && 'master' || github.event.workflow_run.head_sha }}
40
39
persist-credentials : false
41
40
42
41
- name : Install Rust Stable
You can’t perform that action at this time.
0 commit comments