1
0
Fork 0
mirror of https://github.com/docker/build-push-action.git synced 2025-04-15 11:26: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 localhost:5000/name/app:1.0.0
secrets: | secrets: |
GIT_AUTH_TOKEN=${{ github.token }} GIT_AUTH_TOKEN=${{ github.token }}
"MYSECRET=aaaaaaaa MYSECRET=foo
bbbbbbb
ccccccccc"
FOO=bar
"EMPTYLINE=aaaa
bbbb
ccc"
- -
name: Inspect name: Inspect
run: | run: |

View file

@ -84,7 +84,7 @@ export async function getInputs(): Promise<Inputs> {
export function sanitizeInputs(inputs: Inputs) { export function sanitizeInputs(inputs: Inputs) {
const res = {}; const res = {};
for (const key of Object.keys(inputs)) { for (const key of Object.keys(inputs)) {
if (key === 'github-token') { if (key === 'secrets' || key === 'github-token') {
continue; continue;
} }
const value: string | string[] | boolean = inputs[key]; const value: string | string[] | boolean = inputs[key];