workflow expression

Text inside ${{ and }} in a workflow file that GitHub evaluates before a step runs, such as ${{ github.sha }}.

In more detail

Expressions read contexts, compare values and call functions such as hashFiles and fromJSON. The result is substituted into the file before the shell starts, so the shell only ever sees a finished string. Putting untrusted event text straight into a run script this way can allow script injection, so pass it through env instead.

Related terms

Taught in

References

Certification courses