From b1bb069887e7a27860728a0c47cd6a65fdefec39 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Tue, 2 Jan 2024 12:13:57 +0100 Subject: [PATCH] protect reporter.py from tokens starting with `-` --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 16149ea..0dfee20 100755 --- a/build.sh +++ b/build.sh @@ -262,7 +262,7 @@ main() { echo "--- Will abort after more than ${DWQ_MAXFAIL} failed job(s)." local report_queue="status::${CI_JOB_UID}:$(random)" - ${BASEDIR}/reporter.py "${report_queue}" ${CI_JOB_UID} ${CI_JOB_TOKEN} & + ${BASEDIR}/reporter.py -- "${report_queue}" "${CI_JOB_UID}" "${CI_JOB_TOKEN}" & local reporter_pid=$! get_jobs | dwqc ${DWQ_ENV} \