57
57
required : false
58
58
type : boolean
59
59
jobs :
60
- # ###################################################################################################
61
- # Compose Build
62
- # ###################################################################################################
60
+ # ###################################################################################################
61
+ # Compose Build
62
+ # ###################################################################################################
63
63
setup-build :
64
64
outputs :
65
65
matrix : ${{ steps.build-matrix.outputs.matrix }}
66
- runs-on : ubuntu-latest
66
+ runs-on : ${{ github.repository_owner == 'intel' && 'intel- ubuntu-latest' || 'ubuntu-latest' }}
67
67
steps :
68
68
- name : Harden Runner
69
69
uses : step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
79
79
build-containers :
80
80
needs : [setup-build]
81
81
env : ${{ matrix }}
82
- runs-on : ubuntu-latest
82
+ runs-on : ${{ github.repository_owner == 'intel' && 'intel- ubuntu-latest' || 'ubuntu-latest' }}
83
83
strategy :
84
84
matrix : ${{ fromJson(needs.setup-build.outputs.matrix) }}
85
85
fail-fast : false
@@ -105,13 +105,13 @@ jobs:
105
105
repo : ${{ secrets.REPO }}
106
106
no-push : ${{ inputs.no_push }}
107
107
no-start : ${{ inputs.no_start }}
108
- # ###################################################################################################
109
- # Trivy Scan
110
- # ###################################################################################################
108
+ # ###################################################################################################
109
+ # Trivy Scan
110
+ # ###################################################################################################
111
111
setup-scan :
112
112
needs : [build-containers]
113
113
if : ${{ github.event_name == 'pull_request' }}
114
- runs-on : ubuntu-latest
114
+ runs-on : ${{ github.repository_owner == 'intel' && 'intel- ubuntu-latest' || 'ubuntu-latest' }}
115
115
outputs :
116
116
matrix : ${{ steps.scan-matrix.outputs.matrix }}
117
117
steps :
@@ -128,7 +128,7 @@ jobs:
128
128
scan-containers :
129
129
needs : [setup-scan]
130
130
if : ${{ !inputs.no_build && github.event_name == 'pull_request' }}
131
- runs-on : ubuntu-latest
131
+ runs-on : ${{ github.repository_owner == 'intel' && 'intel- ubuntu-latest' || 'ubuntu-latest' }}
132
132
strategy :
133
133
matrix :
134
134
container : ${{ fromJSON(needs.setup-scan.outputs.matrix) }}
@@ -159,12 +159,12 @@ jobs:
159
159
sarif_file : ' ${{ matrix.container }}-scan.sarif'
160
160
category : ' ${{ matrix.container }}'
161
161
continue-on-error : true
162
- # ###################################################################################################
163
- # Generic Test Runner
164
- # ###################################################################################################
162
+ # ###################################################################################################
163
+ # Generic Test Runner
164
+ # ###################################################################################################
165
165
setup-test :
166
166
needs : [build-containers]
167
- runs-on : ubuntu-latest
167
+ runs-on : ${{ github.repository_owner == 'intel' && 'intel- ubuntu-latest' || 'ubuntu-latest' }}
168
168
outputs :
169
169
matrix : ${{ steps.test-matrix.outputs.matrix }}
170
170
steps :
0 commit comments