From 5973ec9fcc1d7e462b3e0ca54646bc8e545a95ca Mon Sep 17 00:00:00 2001 From: LucaZanni Date: Fri, 11 Sep 2026 21:40:53 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(ci):=20la=20guardia=20Docker?= =?UTF-8?q?file=20ignora=20le=20variabili=20assegnate=20nel=20RUN?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - in un RUN espande la shell: una variabile assegnata nel comando stesso (VERSIONE="$(...)" && ... ${VERSIONE}) non รจ la ARG omonima. Era un falso avviso su algorithmic-trading, venues/ibkr-gateway/Dockerfile:143 - COPY, LABEL e le altre istruzioni espanse da Docker restano controllate - collaudo con gawk e gawk --posix: algorithmic-trading 0 avvisi, pzeta-king prima della correzione 2, scada-runtime su main 10, Dockerfile sintetici con gli esiti attesi; bash -n sullo step estratto dallo YAML Fixes #13 @25m refs PZeta_Touch/flux-repo#133 --- .gitea/workflows/quality-gates-github.yml | 3 +++ .gitea/workflows/quality-gates.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.gitea/workflows/quality-gates-github.yml b/.gitea/workflows/quality-gates-github.yml index ffd74b5..061ee59 100644 --- a/.gitea/workflows/quality-gates-github.yml +++ b/.gitea/workflows/quality-gates-github.yml @@ -118,6 +118,9 @@ jobs: while (match(s, /[$][{]?[A-Za-z_][A-Za-z0-9_]*/)) { v = substr(s, RSTART, RLENGTH); sub(/^[$][{]?/, "", v) s = substr(s, RSTART + RLENGTH) + # In un RUN espande la shell: una variabile assegnata nel comando + # stesso (VERSIONE="$(...)" && ... ${VERSIONE}) non va scambiata per la ARG. + if (kw == "RUN" && match(rest, "(^|[^A-Za-z0-9_$])" v "=")) continue if ((v in allargs) && !(v in scope) && !(v in predefined) && !((ln, v) in seen)) { seen[ln, v] = 1 printf "%d\t%s\t%s\n", ln, v, stage diff --git a/.gitea/workflows/quality-gates.yml b/.gitea/workflows/quality-gates.yml index 2d29e4e..f9ae2f8 100644 --- a/.gitea/workflows/quality-gates.yml +++ b/.gitea/workflows/quality-gates.yml @@ -197,6 +197,9 @@ jobs: while (match(s, /[$][{]?[A-Za-z_][A-Za-z0-9_]*/)) { v = substr(s, RSTART, RLENGTH); sub(/^[$][{]?/, "", v) s = substr(s, RSTART + RLENGTH) + # In un RUN espande la shell: una variabile assegnata nel comando + # stesso (VERSIONE="$(...)" && ... ${VERSIONE}) non va scambiata per la ARG. + if (kw == "RUN" && match(rest, "(^|[^A-Za-z0-9_$])" v "=")) continue if ((v in allargs) && !(v in scope) && !(v in predefined) && !((ln, v) in seen)) { seen[ln, v] = 1 printf "%d\t%s\t%s\n", ln, v, stage