Skip to content

Commit 3956c13

Browse files
committed
fix(Find): When 'auth_context' input is omitted, use a parseable fallback to avoid SyntaxError
1 parent 2b4b97b commit 3956c13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/actions/find/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default async function () {
88
const urls = core.getMultilineInput("urls", { required: true });
99
core.debug(`Input: 'urls: ${JSON.stringify(urls)}'`);
1010
const authContextInput: AuthContextInput = JSON.parse(
11-
core.getInput("auth_context", { required: false }) ?? "{}"
11+
core.getInput("auth_context", { required: false }) || "{}"
1212
);
1313
const authContext = new AuthContext(authContextInput);
1414

0 commit comments

Comments
 (0)