import { type GitHubData } from "https://deno.land/x/actionify@0.3.0/src/types.ts";
- The github context contains information about the workflow run and the event that triggered the run. You can also read most of the github context data in environment variables. For more information about environment variables, see "Using environment variables."
-
::warning
- When using the whole github context, be mindful that it includes sensitive information such as github.token. GitHub masks secrets when they are printed to the console, but you should be cautious when exporting or printing the context.
-
::
:::warning
- When creating workflows and actions, you should always consider whether your code might execute untrusted input from possible attackers. Certain contexts should be treated as untrusted input, as an attacker could insert their own malicious content. For more information, see "Understanding the risk of script injections."
-
::
Type Parameters
Base extends ActionTemplate
optional
Event extends WorkflowEventName = NonNullable<Base["events"]>definition: Event extends string ? GitHubContextItem<Event> : GitHubContextItem<WorkflowEventName>