Skip to content

Commit c27f30e

Browse files
scohebclaude
andcommitted
fix(HUM-2061): add shellcheck disable for intentionally unquoted ORAS_OPTIONS
Signed-off-by: Scott Hebert <shebert@redhat.com> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 71ea333 commit c27f30e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tasks/internal/filter-already-released-advisory-rpms-task/filter-already-released-advisory-rpms-task.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,15 @@ spec:
194194
195195
echo "Pushing filter results to OCI storage: ${OCI_REF}"
196196
ORAS_OPTS="--annotation=quay.expires-after=1d"
197+
# Intentionally unquoted: empty quoted string breaks oras positional args
198+
# shellcheck disable=SC2086
197199
(cd "$RESULTS_DIR" && oras push ${ORAS_OPTIONS:-} ${ORAS_OPTS} \
198200
--registry-config <(select-oci-auth "${OCI_STORAGE}") \
199201
"${OCI_REF}" "filter-results.tar.gz:application/gzip")
200202
201203
# Get digest for the artifact reference
204+
# Intentionally unquoted: empty quoted string breaks oras positional args
205+
# shellcheck disable=SC2086
202206
DIGEST=$(oras manifest fetch ${ORAS_OPTIONS:-} "${OCI_REF}" \
203207
--registry-config <(select-oci-auth "${OCI_STORAGE}") \
204208
--descriptor | jq -r '.digest')
@@ -303,11 +307,15 @@ spec:
303307
304308
echo "Pushing filter results to OCI storage: ${OCI_REF}"
305309
ORAS_OPTS="--annotation=quay.expires-after=1d"
310+
# Intentionally unquoted: empty quoted string breaks oras positional args
311+
# shellcheck disable=SC2086
306312
(cd "$RESULTS_DIR" && oras push ${ORAS_OPTIONS:-} ${ORAS_OPTS} \
307313
--registry-config <(select-oci-auth "${OCI_STORAGE}") \
308314
"${OCI_REF}" "filter-results.tar.gz:application/gzip")
309315
310316
# Get digest for the artifact reference
317+
# Intentionally unquoted: empty quoted string breaks oras positional args
318+
# shellcheck disable=SC2086
311319
DIGEST=$(oras manifest fetch ${ORAS_OPTIONS:-} "${OCI_REF}" \
312320
--registry-config <(select-oci-auth "${OCI_STORAGE}") \
313321
--descriptor | jq -r '.digest')

0 commit comments

Comments
 (0)