Skip to content

Commit

Permalink
Merge branch 'development' into ubq-development
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Nov 7, 2024
2 parents d6d33c8 + 902a566 commit f6954a6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Binary file modified bun.lockb
100644 → 100755
Binary file not shown.
9 changes: 8 additions & 1 deletion src/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,14 @@ export async function createActionsPlugin<TConfig = unknown, TEnv = unknown, TSu
return;
}

const inputs = Value.Decode(inputSchema, github.context.payload.inputs);
const inputPayload = github.context.payload.inputs;
const inputSchemaErrors = [...Value.Errors(inputSchema, inputPayload)];
if (inputSchemaErrors.length) {
console.dir(inputSchemaErrors, { depth: null });
core.setFailed(`Error: Invalid inputs payload: ${inputSchemaErrors.join(",")}`);
return;
}
const inputs = Value.Decode(inputSchema, inputPayload);
const signature = inputs.signature;
if (!(await verifySignature(pluginOptions.kernelPublicKey, inputs, signature))) {
core.setFailed(`Error: Invalid signature`);
Expand Down

0 comments on commit f6954a6

Please sign in to comment.