Skip to content

Commit 66d1144

Browse files
committed
fix the runner label for security scan
1 parent 868107a commit 66d1144

File tree

2 files changed

+24
-7
lines changed

2 files changed

+24
-7
lines changed

.github/workflows/aqua-security.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,10 @@ on:
6262
type: boolean
6363
default: false
6464
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
7065
runner_label:
7166
description: "Runner label to point to self hosted runners"
7267
type: string
73-
default: "ubuntu-latest"
68+
default: "platform-eng-ent-v2-dual"
7469
required: false
7570
scan_type:
7671
description: "Scan Type to be scanned"
@@ -95,7 +90,6 @@ on:
9590
jobs:
9691
trivy-scan:
9792
runs-on:
98-
- ${{ inputs.default_runner_override_label }}
9993
- ${{ inputs.runner_label }}
10094
permissions:
10195
contents: read
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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

0 commit comments

Comments
 (0)