mirror of
https://github.com/github/codeql-action.git
synced 2026-10-30 17:39:50 +00:00
Explicitly suggest wrapping in a try/catch block
This commit is contained in:
@@ -293,7 +293,7 @@ export function getWorkflowRunID(): number {
|
||||
return workflowRunID;
|
||||
}
|
||||
|
||||
export function getStepsCallingAction(
|
||||
function getStepsCallingAction(
|
||||
job: WorkflowJob,
|
||||
actionName: string
|
||||
): WorkflowJobStep[] {
|
||||
@@ -310,6 +310,8 @@ export function getStepsCallingAction(
|
||||
* Makes a best effort attempt to retrieve the value of a particular input with which
|
||||
* an Action in the workflow would be invoked.
|
||||
*
|
||||
* Typically you'll want to wrap this function in a try/catch block and handle the error.
|
||||
*
|
||||
* @returns the value of the input, or undefined if no such input is passed to the Action
|
||||
* @throws an error if the value of the input could not be determined, or we could not
|
||||
* determine that no such input is passed to the Action.
|
||||
@@ -366,6 +368,8 @@ function getInputOrThrow(
|
||||
* Makes a best effort attempt to retrieve the category input for the particular job,
|
||||
* given a set of matrix variables.
|
||||
*
|
||||
* Typically you'll want to wrap this function in a try/catch block and handle the error.
|
||||
*
|
||||
* @returns the category input, or undefined if the category input is not defined
|
||||
* @throws an error if the category input could not be determined
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user