File tree Expand file tree Collapse file tree 3 files changed +44
-2
lines changed Expand file tree Collapse file tree 3 files changed +44
-2
lines changed Original file line number Diff line number Diff line change 3
3
4
4
# Support push and pull_request events
5
5
name : Get Test Matrix
6
- permissions : read-all
6
+ permissions :
7
+ actions : read
8
+ contents : read
9
+ checks : read
10
+ deployments : read
11
+ issues : read
12
+ packages : read
13
+ pages : read
14
+ pull-requests : read
15
+ statuses : read
16
+ security-events : read
7
17
on :
8
18
workflow_call :
9
19
inputs :
Original file line number Diff line number Diff line change 2
2
# SPDX-License-Identifier: Apache-2.0
3
3
4
4
name : Image Build
5
- permissions : read-all
5
+ permissions :
6
+ actions : read
7
+ contents : read
8
+ checks : write
9
+ deployments : write
10
+ issues : write
11
+ packages : write
12
+ pages : write
13
+ pull-requests : write
14
+ statuses : write
15
+ security-events : read
6
16
on :
7
17
workflow_call :
8
18
inputs :
Original file line number Diff line number Diff line change @@ -28,12 +28,34 @@ concurrency:
28
28
29
29
jobs :
30
30
get-test-matrix :
31
+ permissions :
32
+ actions : read
33
+ contents : read
34
+ checks : read
35
+ deployments : read
36
+ issues : read
37
+ packages : read
38
+ pages : read
39
+ pull-requests : read
40
+ statuses : read
41
+ security-events : read
31
42
if : ${{ !github.event.pull_request.draft }}
32
43
uses : ./.github/workflows/_get-test-matrix.yml
33
44
with :
34
45
diff_excluded_files : ' \.github|\.md|\.txt|kubernetes|gmc|assets|benchmark'
35
46
36
47
example-test :
48
+ permissions :
49
+ actions : read
50
+ contents : read
51
+ checks : write
52
+ deployments : write
53
+ issues : write
54
+ packages : write
55
+ pages : write
56
+ pull-requests : write
57
+ statuses : write
58
+ security-events : read
37
59
needs : [get-test-matrix]
38
60
if : ${{ needs.get-test-matrix.outputs.run_matrix != '' }}
39
61
strategy :
You can’t perform that action at this time.
0 commit comments