Browse Certification Practice Tests by Exam Family

GitHub GH-200 Cheat Sheet: Actions

Review GitHub Actions (GH-200) workflow authoring, runners, permissions, troubleshooting, reusable actions, and secure automation before practicing in IT Mastery.

Use this cheat sheet to review the GitHub Actions decisions that show up repeatedly in GH-200 practice: trigger scope, job boundaries, runner selection, permissions, artifacts, caching, reusable workflows, and secure deployment controls.

Use this with practice. Review the workflow checklist, then take the free GH-200 diagnostic or open the full GitHub Actions route in IT Mastery.

Try GH-200 on Web Free GH-200 diagnostic

Exam snapshot

FieldDetail
VendorGitHub
Credential nameGitHub Actions
Exam codeGH-200
Level shown by Microsoft LearnIntermediate
Exam time shown by Microsoft Learn100 minutes
IT Mastery statusLive GH-200 practice available

Topic map

AreaWhat to knowCommon trap
Author workflowsEvents, jobs, steps, runners, matrices, environments, expressions, and reusable workflowsEditing step commands before confirming the event and job boundary
Consume and troubleshoot workflowsLogs, exit codes, artifacts, caching, reruns, concurrency, and dependency failuresFixing the wrong line because the first failing command was not identified
Author and maintain actionsComposite, JavaScript, and Docker actions; inputs, outputs, versioning, and release tagsBreaking a public action output by changing an internal step ID
Enterprise managementRunner groups, policies, organization settings, billing signals, and governanceTreating enterprise policy as a repository-only setting
Secure and optimize automationSecrets, permissions, OIDC, least privilege, cache safety, and reliable deploy controlsGranting broad token permissions when one job needs one scope

Must-know distinctions

DistinctionHow to decide
Workflow vs job vs stepWorkflows respond to events; jobs define runner execution units; steps run actions or shell commands.
GitHub-hosted vs self-hosted runnerGitHub-hosted runners reduce maintenance; self-hosted runners fit custom tools, private networking, or specialized hardware.
Secret vs variableSecrets protect sensitive values; variables store nonsecret configuration.
Artifact vs cacheArtifacts move build output between jobs or retain results; caches speed repeated dependency restore.
Reusable workflow vs composite actionReusable workflows share job-level automation; composite actions package repeated step logic.
GITHUB_TOKEN vs OIDCGITHUB_TOKEN authorizes GitHub API actions; OIDC enables short-lived cloud credentials without stored cloud secrets.
Environment protection vs branch protectionEnvironments gate deployments and secrets; branch protection controls merge rules on branches.

High-yield checklist

  • Read on first: event, branch filters, path filters, and event payload determine the workflow context.
  • Check permissions before assuming the token can write comments, packages, checks, or security events.
  • Confirm whether a secret is available to the event type; forked pull requests and untrusted contexts matter.
  • Use needs when one job depends on outputs, artifacts, or completion of another job.
  • Use matrices for repeated jobs across versions, operating systems, or configurations.
  • Use concurrency to prevent overlapping deployments or repeated expensive runs.
  • Use environments for approval gates and environment-scoped secrets.
  • Pin third-party actions carefully and avoid unnecessary broad permissions.
  • Troubleshoot from the first failing command, not from the last visible log line.
  • Version actions through tags or releases so workflow consumers do not depend on unstable branches.

Common traps

  • Adding repository write permissions at workflow level when only one job needs a narrow scope.
  • Using cache for files that should be preserved as artifacts.
  • Expecting a composite action to create new jobs or define environment gates.
  • Missing a path filter that prevents a workflow from running.
  • Changing deployment logic without checking environment protection rules.
  • Assuming a GitHub-hosted runner has access to private network resources.

Practice strategy

Take the free GH-200 diagnostic and tag misses by trigger, job boundary, runner, permission, troubleshooting, or action packaging. Then drill the matching topic page before returning to mixed timed practice.

For YAML exhibits, read from top to bottom:

on:
  pull_request:
permissions:
  contents: read
jobs:
  test:
    runs-on: ubuntu-latest

The event, token permissions, and runner context usually explain the answer before the shell command does.

Official source

Revised on Monday, May 25, 2026