Skip to content

Commit 0db0eff

Browse files
committed
Update Checkout Repository command
1 parent decd459 commit 0db0eff

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,3 +213,19 @@ jobs:
213213
with:
214214
name: ${{ inputs.image }}-${{ steps.meta.outputs.version }}
215215
path: ${{ inputs.image }}-${{ steps.meta.outputs.version }}.tar
216+
217+
218+
# - name: Run preflight
219+
# env:
220+
# PYXIS_API_TOKEN: ${{ secrets.PYXIS_API_TOKEN }}
221+
# run: preflight check container ${{ inputs.image }}:ubi > preflight-result.json
222+
223+
# - name: Check preflight results
224+
# run: |
225+
# failed_count=$(jq '.results.failed | length' preflight-result.json)
226+
# if [ "$failed_count" -ne 0 ]; then
227+
# echo "Preflight checks failed: $failed_count failed checks"
228+
# echo "Results for preflight-result.json:"
229+
# jq '.results.failed' preflight-result.json
230+
# exit 1
231+
# fi

.github/workflows/openshift-certification.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ jobs:
2525
preflight:
2626
runs-on: ${{ inputs.runner }}
2727
steps:
28-
- name: Checkout repository
29-
uses: actions/checkout@v4
28+
- name: Checkout Repository
29+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
30+
with:
31+
ref: ${{ (inputs.tag != '' && !inputs.dry_run ) && format('refs/tags/v{0}', inputs.tag) || github.ref }}
3032

3133
- name: Download preflight binary
3234
run: |
@@ -38,7 +40,7 @@ jobs:
3840
uses: actions/download-artifact@v4
3941
with:
4042
name: ${{ inputs.image }}-${{ inputs.image_version }}
41-
43+
4244
- name: List files after artifact download
4345
run: ls -l ${{ inputs.image }}-${{ inputs.image_version }}.tar
4446

0 commit comments

Comments
 (0)