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:
parent
84ad562665
commit
44125d12a0
2 changed files with 2 additions and 9 deletions
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
|
@ -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: |
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Add table
Reference in a new issue