Skip to content

Commit 44125d1

Browse files
committed
summary: skip secrets in build inputs
Signed-off-by: CrazyMax <[email protected]>
1 parent 84ad562 commit 44125d1

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,7 @@ jobs:
137137
localhost:5000/name/app:1.0.0
138138
secrets: |
139139
GIT_AUTH_TOKEN=${{ github.token }}
140-
"MYSECRET=aaaaaaaa
141-
bbbbbbb
142-
ccccccccc"
143-
FOO=bar
144-
"EMPTYLINE=aaaa
145-
146-
bbbb
147-
ccc"
140+
MYSECRET=foo
148141
-
149142
name: Inspect
150143
run: |

src/context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export async function getInputs(): Promise<Inputs> {
8484
export function sanitizeInputs(inputs: Inputs) {
8585
const res = {};
8686
for (const key of Object.keys(inputs)) {
87-
if (key === 'github-token') {
87+
if (key === 'secrets' || key === 'github-token') {
8888
continue;
8989
}
9090
const value: string | string[] | boolean = inputs[key];

0 commit comments

Comments
 (0)