1
0
Fork 0
mirror of https://github.com/docker/build-push-action.git synced 2025-04-14 02:46:02 +02:00

summary: skip secrets in build inputs

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2025-04-07 10:21:22 +02:00
parent 84ad562665
commit 44125d12a0
No known key found for this signature in database
GPG key ID: ADE44D8C9D44FBE4
2 changed files with 2 additions and 9 deletions

View file

@ -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: |

View file

@ -84,7 +84,7 @@ export async function getInputs(): Promise<Inputs> {
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];