Exam Code: GH-200 Exam Name: GitHub Actions Level: Intermediate Duration: 100 minutes Format: Multiple choice, proctored; may include interactive components Passing Score: 700 (scaled 1-1000) Cost: Set by country; commonly listed as $99 USD in the US Valid For: 2 years Delivery: Pearson VUE, scheduled through Microsoft Learn Prerequisites: None (GitHub Foundations recommended)
Jobs run in parallel; needs orders them and skips dependants on failure unless if: always().
Steps run in order on one runner and share the file system; jobs share nothing unless passed.
An if: without a status function gets an implicit success().
timeout-minutes default is 360 per job.
Service containers (services:): on the runner use localhost plus mapped ports; in a job container use the service label as host name. Linux runners only. Health checks go in options:.
Matrix: max 256 jobs per run; exclude then include; fail-fast defaults to true; max-parallel caps concurrency.
YAML anchors (&name, *name): same file only, defined before use, no parameters. Merge keys (<<) are listed in the study guide but GitHub parses YAML 1.2.
Runner images: -latest labels move to new images (Ubuntu 20.04 retired 2025; windows-latest moving to Windows Server 2025).
Allowed actions: all; enterprise only; enterprise plus GitHub-created and/or verified creators; explicit patterns (with ! to block); optional SHA-pinning requirement.
Private actions shared via the repository's Actions > Access setting (organization or enterprise).
Runner groups: share runners with selected repos, orgs or workflows; each runner in one group; runs-on: { group: name }.
Self-hosted labels: self-hosted, OS, arch, plus custom; a job needs a runner with all requested labels.
Ephemeral runners (--ephemeral) and ARC for clean, autoscaled capacity; never run untrusted public-repo code on persistent self-hosted runners.
IP allow lists block standard hosted runners; use self-hosted egress IPs or larger runners with static IPs.
Hosted images list software in actions/runner-images; add tools with setup-*, package managers, containers or custom images.
Secret scope
Shared with
Precedence
Environment
Jobs referencing it, after protection rules
Highest
Repository
All workflows in the repo
Middle
Organization
All, private, or selected repos
Lowest
Limits: 48 KB per secret, 100 per repo, 1,000 per org; names not case-sensitive, no GITHUB_ prefix.
REST: get the public key, encrypt with libsodium, PUT with key_id; or gh secret set / gh variable set.
Domain 5: Secure and Optimize Automation (10-15%)¶
Script injection: never ${{ github.event.* }} inside run:; pass through env: and quote.
GITHUB_TOKEN: per job, one repo, revoked at job end; set permissions: (unnamed scopes become none). Prefer it over PATs; use a GitHub App for cross-repo work.
OIDC: permissions: id-token: write; cloud trust policy matches the sub claim (repo plus environment or branch); short-lived credentials, no stored cloud keys.
Pinning: full 40-character commit SHA with a version comment; Dependabot keeps it current.
Attestations: actions/attest-build-provenance with id-token: write and attestations: write; verify with gh attestation verify.