Once the job is running, you can also retrieve context variables from the runner that is executing the job, such as runner.os. For example, you can use contexts with expressions to perform initial processing before the job is routed to a runner for execution this allows you to use a context with the conditional if keyword to determine whether a step should run.
Information about the currently executing job. For more information, see github context.Ĭontains environment variables set in a workflow, job, or step. For more information, see " Expressions." For more information, see " Understanding the risk of script injections."Ĭontexts are a way to access information about workflow runs, runner environments, jobs, and steps. Certain contexts should be treated as untrusted input, as an attacker could insert their own malicious content.
Warning: When creating workflows and actions, you should always consider whether your code might execute untrusted input from possible attackers.