From 44125d12a0ad88a57277e9533ffdb8e96876d1ee Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Mon, 7 Apr 2025 10:21:22 +0200 Subject: [PATCH] summary: skip secrets in build inputs Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- .github/workflows/ci.yml | 9 +-------- src/context.ts | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e9d7706..00e0f26 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -137,14 +137,7 @@ jobs: localhost:5000/name/app:1.0.0 secrets: | GIT_AUTH_TOKEN=${{ github.token }} - "MYSECRET=aaaaaaaa - bbbbbbb - ccccccccc" - FOO=bar - "EMPTYLINE=aaaa - - bbbb - ccc" + MYSECRET=foo - name: Inspect run: | diff --git a/src/context.ts b/src/context.ts index 0a110a2..1b820fa 100644 --- a/src/context.ts +++ b/src/context.ts @@ -84,7 +84,7 @@ export async function getInputs(): Promise { export function sanitizeInputs(inputs: Inputs) { const res = {}; for (const key of Object.keys(inputs)) { - if (key === 'github-token') { + if (key === 'secrets' || key === 'github-token') { continue; } const value: string | string[] | boolean = inputs[key];