File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,20 @@ jobs:
151
151
BUILD_OS=${{ inputs.image }}
152
152
IC_VERSION=${{ (github.event_name == 'pull_request' || startsWith(github.ref, 'refs/heads/release-')) && 'CI' || steps.meta.outputs.version }}
153
153
154
+ - name : Certify Images
155
+ continue-on-error : true
156
+ run : |
157
+ curl -fsSL https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/download/1.6.11/preflight-linux-amd64 --output preflight
158
+ chmod +x preflight
159
+
160
+ IFS=',' read -ra arch_list <<< "${{ inputs.platforms }}"
161
+
162
+ for arch in "${arch_list[@]}"; do
163
+ architecture=("${arch#*/}")
164
+ ./preflight check container quay.io/nginx/nginx-ingress:${{ steps.meta.outputs.version }} --pyxis-api-token ${{ secrets.PYXIS_API_TOKEN }} --certification-project-id ${{ secrets.CERTIFICATION_PROJECT_ID }} --platform $architecture --submit
165
+ done
166
+ if : ${{ github.ref_type == 'tag' && contains(inputs.image, 'ubi') }}
167
+
154
168
- name : Run Trivy vulnerability scanner
155
169
uses : aquasecurity/trivy-action@fbd16365eb88e12433951383f5e99bd901fc618f # 0.12.0
156
170
continue-on-error : true
You can’t perform that action at this time.
0 commit comments