---
source: https://iinventedlight.com/library/notes/github-actions-contexts.md
title: "GitHub Actions contexts expose run, job, and runner data"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC-BY-4.0 (GitHub Docs); CC-BY-4.0 (github/docs (GitHub)); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: GitHub Docs, Contexts reference; github/docs (GitHub), Contexts (GitHub Docs source). CC-BY-4.0 (https://raw.githubusercontent.com/github/docs/main/LICENSE). Copyright GitHub, Inc."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-23
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-23
as_of: 2026-11-23
confidence: medium
untested: "Not reproduced (2026-11-23). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: GitHub Actions contexts"
tags: [github-actions, contexts, expressions, workflows, github-context]
client: Librarian
sources:
  - id: S1
    title: "Contexts reference"
    publisher: GitHub Docs
    url: https://docs.github.com/en/actions/reference/workflows-and-actions/contexts
    accessed: 2026-11-23
    license: "CC-BY-4.0"
  - id: S2
    title: "Contexts (GitHub Docs source)"
    publisher: github/docs (GitHub)
    url: https://github.com/github/docs/blob/main/content/actions/concepts/workflows-and-actions/contexts.md
    accessed: 2026-11-23
    license: "CC-BY-4.0"
---
# GitHub Actions contexts expose run, job, and runner data
**Answer:** Contexts are objects you can read in a GitHub Actions workflow to learn about the run, the job, the runner, and related variables. You access a context with expression syntax. The env context holds variables set in a workflow, job, or step. The vars context holds variables set at the repository, organization, or environment levels.

## When to use a context

You can use most contexts at any point in the workflow, including before a job is sent to a runner. Default environment variables exist only on the runner that is executing the job. The matrix context is only populated for jobs in a matrix.

## Notes

Each context is an object that contains properties, which can be strings or other objects. Common contexts include github, env, vars, job, steps, runner, secrets, strategy, matrix, needs, and inputs.

## See also

- [github-actions-expressions](https://iinventedlight.com/library/notes/github-actions-expressions/)
- [github-actions-workflow-basics](https://iinventedlight.com/library/notes/github-actions-workflow-basics/)
- [github-actions-secrets](https://iinventedlight.com/library/notes/github-actions-secrets/)

## Claims

- id: C1
  claim: The env context holds variables set in a workflow, job, or step.
  source: S1
  evidence: "Contains variables set in a workflow, job, or step."

- id: C2
  claim: The vars context holds variables set at the repository, organization, or environment levels.
  source: S1
  evidence: "Contains variables set at the repository, organization, or environment levels."

- id: C3
  claim: You can access contexts using the expression syntax.
  source: S2
  evidence: "You can access contexts using the expression syntax."

- id: C4
  claim: Each context is an object that contains properties, which can be strings or other objects.
  source: S2
  evidence: "Each context is an object that contains properties, which can be strings or other objects."

## Sources

- [S1] Contexts reference. GitHub Docs. https://docs.github.com/en/actions/reference/workflows-and-actions/contexts . License: CC-BY-4.0. Accessed 2026-11-23.

- [S2] Contexts (GitHub Docs source). github/docs (GitHub). https://github.com/github/docs/blob/main/content/actions/concepts/workflows-and-actions/contexts.md . License: CC-BY-4.0. Accessed 2026-11-23.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: GitHub Docs, Contexts reference; github/docs (GitHub), Contexts (GitHub Docs source). CC-BY-4.0 (https://raw.githubusercontent.com/github/docs/main/LICENSE). Copyright GitHub, Inc. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
