D1: Contexts
GH-200 GitHub Actions exam practice questions · 12 flashcards
Question
github context?
1 / 12
Tip: Space flips the card, ← / → navigate.
Show all 12 Contexts practice questions and answers
- github context?Workflow run info: event_name, ref, sha, repository, actor, run_id, event payload.
- runner context?Runner info: os, arch, temp, tool_cache, name.
- env context?Environment variables set in workflow.
- vars context?Configuration variables (org/repo/environment).
- secrets context?Secrets available to the workflow.
- inputs context?Inputs for workflow_dispatch/workflow_call/actions.
- matrix and strategy contexts?Current matrix values and strategy settings (fail-fast, job-index).
- needs context?Outputs and results of dependent jobs: needs.build.outputs.x.
- job and steps contexts?Job container/services info; step outputs/outcomes.
- github.event?Full webhook payload, e.g. github.event.pull_request.number.
- github.ref vs github.ref_name?ref: refs/heads/main; ref_name: main.
- Immutable actions & version pinning?Published action versions become immutable packages; pin to SHA/immutable versions for integrity.