File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ name: TryBot
10
10
tags-ignore :
11
11
- v*
12
12
workflow_dispatch : {}
13
- pull_request : {}
13
+ pull_request_target : {}
14
14
jobs :
15
15
test :
16
16
strategy :
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ checkoutCode: {
67
67
name : " Checkout code "
68
68
uses : " actions/checkout@v4 "
69
69
70
- // "pull_request " builds will by default use a merge commit,
70
+ // "pull_request_target " builds will by default use a merge commit,
71
71
// testing the PR's HEAD merged on top of the master branch.
72
72
// For consistency with Gerrit, avoid that merge commit entirely.
73
73
// This doesn't affect builds by other events like "push",
Original file line number Diff line number Diff line change @@ -29,7 +29,11 @@ workflows: trybot: _repo.bashWorkflow & {
29
29
branches : list .Concat ([[_repo .testDefaultBranch ], _repo .protectedBranchPatterns ]) // do not run PR branches
30
30
" tags-ignore " : [_repo .releaseTagPattern ]
31
31
}
32
- pull_request : {}
32
+ // Note that pull_request_target gives PR CI jobs full access to our secrets,
33
+ // which is necessary to fetch dependencies from the registry via NOTCUECKOO_CUE_TOKEN.
34
+ // Giving access to secrets is OK given that we must approve PR jobs to run on CI,
35
+ // which mirrors the approval workflow for CI on Gerrit.
36
+ pull_request_target : {}
33
37
}
34
38
35
39
jobs : {
You can’t perform that action at this time.
0 commit comments