From b5e932e4019d57bba21aa2622b1094db8cf50bec Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Tue, 26 Nov 2024 01:14:29 +0100 Subject: [PATCH] iterate over allow input values and push each separately Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- src/context.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/context.ts b/src/context.ts index 37b953e..abc3596 100644 --- a/src/context.ts +++ b/src/context.ts @@ -117,9 +117,9 @@ async function getBuildArgs(inputs: Inputs, context: string, toolkit: Toolkit): await Util.asyncForEach(inputs['add-hosts'], async addHost => { args.push('--add-host', addHost); }); - if (inputs.allow.length > 0) { - args.push('--allow', inputs.allow.join(',')); - } + await Util.asyncForEach(inputs.allow, async allow => { + args.push('--allow', allow); + }); if (await toolkit.buildx.versionSatisfies('>=0.12.0')) { await Util.asyncForEach(inputs.annotations, async annotation => { args.push('--annotation', annotation);