Skip to main content
InterviewHubPRO
Section Overview
Q9

Question 9 of 50

Part 1: CI/CD Fundamentals & GitHub Actions Core (Junior / Entry-Level)

18%
CI/CD & GitHub Actions (50 Qs)•Part 1: CI/CD Fundamentals & GitHub Actions Core (Junior / Entry-Level)

What are GitHub Contexts and Expressions?

junior LevelMost AskedState ManagementCI/CD & DevOps

In Simple Words: Contexts are structured JSON objects containing information about workflow runs, runner environments, secrets, and repository state. They are accessed using the ${{ <expression> }} syntax:

  • github: Metadata about the run (github.sha, github.actor, github.ref, github.event_name).
  • env: Environment variables defined in the workflow.
  • secrets: Encrypted secrets.
  • matrix: Current parameters in a matrix build.
  • steps: Outputs and exit statuses of previous steps (steps.<id>.outputs.<var>).
  • runner: Information about the executing runner (runner.os, runner.arch).