File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- main
7
- pull_request :
7
+ pull_request_target :
8
+ branches :
9
+ - 06-18-_gha_allow_external_contributors_build_lint # canary for the PR that introduces pull_request_target
8
10
9
11
permissions :
10
12
contents : read
11
13
id-token : write # required for GCP Workload Identity federation which we use to login into Google Artifact Registry
12
14
13
15
jobs :
16
+ permission-check :
17
+ runs-on : ubuntu-latest
18
+ steps :
19
+ - name : Check repository permission for user which triggered workflow
20
+ uses : sushichop/action-repository-permission@13d208f5ae7a6a3fc0e5a7c2502c214983f0241c
21
+ with :
22
+ required-permission : write
23
+ comment-not-permitted : Sorry, you don't have permission to trigger this workflow.
24
+
14
25
lint :
15
26
runs-on : ubuntu-latest
27
+ needs : permission-check # This is required to ensure we have permission to build against the GCP Artifact Registry
16
28
17
29
steps :
18
30
- uses : actions/checkout@v4
You can’t perform that action at this time.
0 commit comments