Skip to content

Commit 405ed68

Browse files
committed
ci: Fix high severity errors
1 parent efd9b9d commit 405ed68

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/preflight.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,22 +80,28 @@ jobs:
8080
chmod +x preflight-linux-amd64
8181
- name: Submit preflight checks
8282
if: ${{ inputs.submit == true }}
83+
env:
84+
REGISTRY: ${{ inputs.registry }}
85+
IMAGE_VERSION: ${{inputs.tag }}
8386
run: |
8487
ARCH_FOR_PREFLIGHT="$(arch | sed -e 's#x86_64#amd64#' | sed -e 's#aarch64#arm64#')"
8588
check-container --product "${{ matrix.product }}" \
86-
--image-version "${{inputs.tag }}" \
87-
--registry "${{ inputs.registry }}" \
89+
--image-version "$IMAGE_VERSION" \
90+
--registry "$REGISTRY" \
8891
--architecture "linux/${ARCH_FOR_PREFLIGHT}" \
8992
--executable ./preflight-linux-amd64 \
9093
--token "${{ secrets.RH_PYXIS_API_TOKEN }}" \
9194
--submit
9295
- name: Run preflight checks (no submit)
9396
if: ${{ inputs.submit == false }}
97+
env:
98+
REGISTRY: ${{ inputs.registry }}
99+
IMAGE_VERSION: ${{inputs.tag }}
94100
run: |
95101
ARCH_FOR_PREFLIGHT="$(arch | sed -e 's#x86_64#amd64#' | sed -e 's#aarch64#arm64#')"
96102
check-container --product "${{ matrix.product }}" \
97-
--image-version "${{inputs.tag }}" \
98-
--registry "${{ inputs.registry }}" \
103+
--image-version "$IMAGE_VERSION" \
104+
--registry "$REGISTRY" \
99105
--architecture "linux/${ARCH_FOR_PREFLIGHT}" \
100106
--executable ./preflight-linux-amd64 \
101107
--token "${{ secrets.RH_PYXIS_API_TOKEN }}" \

0 commit comments

Comments
 (0)