File tree 2 files changed +24
-7
lines changed 2 files changed +24
-7
lines changed Original file line number Diff line number Diff line change 62
62
type : boolean
63
63
default : false
64
64
required : false
65
- default_runner_override_label :
66
- description : " Change this to 'self-hosted' or 'ubuntu-latest'"
67
- type : string
68
- default : " ubuntu-latest"
69
- required : false
70
65
runner_label :
71
66
description : " Runner label to point to self hosted runners"
72
67
type : string
73
- default : " ubuntu-latest "
68
+ default : " platform-eng-ent-v2-dual "
74
69
required : false
75
70
scan_type :
76
71
description : " Scan Type to be scanned"
95
90
jobs :
96
91
trivy-scan :
97
92
runs-on :
98
- - ${{ inputs.default_runner_override_label }}
99
93
- ${{ inputs.runner_label }}
100
94
permissions :
101
95
contents : read
Original file line number Diff line number Diff line change
1
+ name : Ubuntu Label Check
2
+ on : [pull_request]
3
+
4
+ permissions :
5
+ contents : read
6
+ pull-requests : write
7
+
8
+
9
+ jobs :
10
+ ubuntu-label-check :
11
+ runs-on :
12
+ - platform-eng-ent-v2-dual
13
+ continue-on-error : false
14
+ steps :
15
+ - name : ' Checkout Repository'
16
+ uses : actions/checkout@v2
17
+ - name : ' Check Ubuntu Label'
18
+ id : ubuntu-label-check
19
+ run : |
20
+ if {{ git grep -q 'ubuntu-latest' .github }}; then
21
+ echo "ubuntu-latest is not allowed in this repository"
22
+ exit 1
23
+ fi
You can’t perform that action at this time.
0 commit comments