mirror of
https://github.com/github/codeql-action.git
synced 2026-10-30 01:27:22 +00:00
Add getRequiredInput to ActionsEnv
This commit is contained in:
@@ -187,6 +187,9 @@ export function getTestEnv(testEnv: NodeJS.ProcessEnv = {}): Env {
|
||||
*/
|
||||
export function getTestActionsEnv(): ActionsEnv {
|
||||
return {
|
||||
getRequiredInput: (name) => {
|
||||
throw new Error(`Input required and not supplied: ${name}`);
|
||||
},
|
||||
getOptionalInput: () => undefined,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user