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:
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
|
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: |
|
||||||
|
|
|
@ -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];
|
||||||
|
|
Loading…
Add table
Reference in a new issue