Skip to content

GH-100: Cheatsheet โ€‹

โ† Overview ยท โ† Exam Guide

Exam Day Reference

Review this page 5 minutes before the exam.


Admin Core Principles (SLG) โ€‹

  • Security โ€” Default to the more secure option
  • Least Privilege โ€” Grant minimum permissions needed
  • Governance โ€” Define policies before deploying

GitHub Products at a Glance โ€‹

NeedProduct
Cloud-hosted enterpriseGitHub Enterprise Cloud (GHEC)
On-premises / self-hostedGitHub Enterprise Server (GHES)
Isolated managed instanceGitHub AE (GHAE)
Company-controlled identitiesEnterprise Managed Users (EMU)

Identity & Authentication (SAML vs SCIM vs Team Sync) โ€‹

ToolPurpose
SAML SSOAuthentication โ€” how users log in via IdP
SCIMProvisioning โ€” create/update/remove accounts automatically
Team SyncMirror IdP group membership into GitHub teams
2FARequire 2-factor for all org members
EMULock all identities to company-managed accounts

Rule: SAML = door. SCIM = guest list. Team Sync = seating chart.


Permission Levels (Least โ†’ Most) โ€‹

Repository roles: Read โ†’ Triage โ†’ Write โ†’ Maintain โ†’ Admin

Org roles: Member โ†’ Owner (Billing Manager = billing-only, no code)

Outside Collaborator: Repo-specific only, no seat license consumed.


Security Feature Lookup โ€‹

FeatureWhat it does
Secret scanningDetects leaked credentials after commit
Push protectionBlocks secrets before they enter the repo
CodeQLScans source code for vulnerability patterns
Dependabot AlertsNotifies on vulnerable dependencies
Dependabot Security UpdatesOpens a fix PR automatically
Audit Log APIRecords all actions (REST + GraphQL)
BFG Repo CleanerRemoves secrets from Git history (recommended)
filter-branchGit-native history rewrite (slower, legacy)
Deploy KeyRepo-scoped SSH key for server/CI access

Token Types โ€‹

TokenTied toExpiryBest for
PAT (classic)UserNever (optional)Personal CLI/scripts
Fine-grained PATUserRequired (โ‰ค1 yr)Scoped personal access
GitHub App tokenApp installation1 hourMachine accounts, bots
OAuth TokenUser (delegated)Until revokedUser-facing apps
Deploy KeyRepoNeverSingle-repo server access

Prefer GitHub Apps over PATs for machine/bot accounts.


Runners Quick Reference โ€‹

GitHub-HostedSelf-Hosted
Managed byGitHubYou
Private network accessNoYes
IP allow-listingNot reliable (dynamic IPs)Yes (static IPs)
CostPer-minuteInfrastructure only
Public repo riskSafeNever use on public repos

Runner groups = control which orgs/repos can use specific runners.


Quick Decision Rules โ€‹

Need to enforce a rule across ALL orgs? โ†’ Enterprise policy (overrides org settings)

Bot/machine account authenticating to GitHub? โ†’ GitHub App (preferred) over PAT

Need to access on-prem resources in CI? โ†’ Self-hosted runner

Secret committed to history? โ†’ Revoke first โ†’ BFG to purge โ†’ GitHub Support if public

User should only access one specific repo? โ†’ Outside collaborator (not org member)

Need to block a secret before it's pushed? โ†’ Push protection (not just secret scanning)

Enterprise needs all user accounts company-managed? โ†’ Enterprise Managed Users (EMU)

Reuse CI logic across repos? โ†’ Reusable workflows (stored in shared-workflows repo)


Terminology Check โ€‹

  • SAML SSO: Federates login to an external IdP. Does not provision accounts.
  • SCIM: Automates user provisioning/deprovisioning. Works alongside SAML.
  • EMU: GitHub users that are fully owned/managed by the enterprise. No personal GitHub accounts.
  • GHES: Self-hosted GitHub โ€” you manage the server, upgrades, and backups.
  • GHEC: GitHub-hosted enterprise โ€” managed by GitHub, SAML/SCIM supported.
  • CodeQL: GitHub's static analysis engine. Treats code as a database of queryable facts.
  • BFG: BFG Repo Cleaner โ€” the recommended tool for purging sensitive data from Git history.
  • Runner group: Access control layer for self-hosted runners โ€” restricts which orgs/repos can use them.
  • Reusable workflow: A workflow_call-triggered workflow callable from other workflows to share CI logic.
  • Deploy Key: An SSH key scoped to a single repository. Preferred for read-only server access.

โ† Overview ยท โ† Exam Guide

Happy Studying! ๐Ÿš€ โ€ข Privacy-friendly analytics โ€” no cookies, no personal data
Privacy Policy โ€ข AI Disclaimer โ€ข Report an issue