Skip to content

GH-500: Cheatsheet โ€‹

โ† Overview ยท โ† Exam Guide

Exam Day Reference

Review this page 5 minutes before the exam.


GHAS Feature Lookup โ€‹

FeatureWhat it doesReactive or Proactive?
Secret scanningDetects secrets already in repo historyReactive (alerts after commit)
Push protectionBlocks commits containing secretsProactive (blocks before push)
Dependabot alertsNotifies of vulnerable dependenciesReactive (alerts on CVE match)
Dependabot security updatesAuto-opens PR to fix vulnerable depAutomated remediation
Dependabot version updatesScheduled PRs to keep deps currentScheduled (not CVE-driven)
Dependency reviewBlocks PRs introducing vulnerable depsProactive (blocks at PR merge)
Code scanning (CodeQL)SAST โ€” finds vulnerabilities in codeReactive (alerts on push/PR)
SARIF uploadImport third-party SAST resultsIntegration

GHAS Plan Requirements โ€‹

FeatureFree/Pro/TeamGHEC/GHES (no GHAS)GHEC/GHES + GHAS
Secret scanning (public repo)โœ…โœ…โœ…
Secret scanning (private repo)โŒโŒโœ…
Push protection (private repo)โŒโŒโœ…
Dependabot alertsโœ…โœ…โœ…
Code scanning (public repo)โœ…โœ…โœ…
Code scanning (private repo)โŒโŒโœ…
Dependency review (private repo)โŒโŒโœ…

CVSS Severity Levels โ€‹

CVSS ScoreSeverity
9.0โ€“10.0Critical
7.0โ€“8.9High
4.0โ€“6.9Medium
0.1โ€“3.9Low

CodeQL Setup Comparison โ€‹

Default SetupAdvanced Setup
YAML neededNoYes (.github/workflows/codeql.yml)
Language detectionAutomaticManual
Query suitesecurity-extendedConfigurable
Best forQuick startCustom queries, monorepos

Dependabot Version Update Key Fields (dependabot.yml) โ€‹

yaml
version: 2
updates:
  - package-ecosystem: "npm"    # npm, pip, maven, cargo, nuget, bundler, gomod
    directory: "/"
    schedule:
      interval: "weekly"        # daily, weekly, monthly
    open-pull-requests-limit: 5 # default: 5
    ignore:
      - dependency-name: "lodash"

Quick Decision Rules โ€‹

Secret already committed to main? โ†’ Secret scanning alert โ†’ revoke at provider first, then remove from history

Block a secret before commit? โ†’ Push protection (most proactive option)

Vulnerable npm dependency in production? โ†’ Dependabot alert โ†’ enable security updates for auto-PR fix

Schedule weekly dep updates across all ecosystems? โ†’ Dependabot version updates via .github/dependabot.yml

PR adds a library with CVE-2024-XXXX? โ†’ Dependency review action (blocks merge automatically)

SQL injection in application code? โ†’ Code scanning (CodeQL) alert

Third-party SAST tool results in GitHub? โ†’ Upload SARIF file via github/codeql-action/upload-sarif

Block PR merge if code has vulnerability? โ†’ Code scanning + branch protection (require CodeQL check)

Full dep inventory for compliance? โ†’ Dependency graph โ†’ Export SBOM (SPDX format)

Org-wide security posture view? โ†’ Security Overview (org or enterprise level)


Terminology Check โ€‹

  • SAST: Static Application Security Testing โ€” analyze source code without executing it
  • DAST: Dynamic Application Security Testing โ€” test a running application (not covered by GHAS)
  • CVE: Common Vulnerabilities and Exposures โ€” standard vulnerability identifier (CVE-YYYY-NNNNN)
  • CVSS: Common Vulnerability Scoring System โ€” standardized severity score (0โ€“10)
  • CWE: Common Weakness Enumeration โ€” categories of code weaknesses (e.g., CWE-89 SQL Injection)
  • SARIF: Static Analysis Results Interchange Format โ€” JSON standard for SAST results exchange
  • SBOM: Software Bill of Materials โ€” complete inventory of a project's dependencies
  • SPDX: Software Package Data Exchange โ€” open standard format for SBOMs (used by GitHub's export)
  • Advisory Database: GitHub's database of known vulnerabilities (CVEs + GitHub-curated)
  • Push protection: Blocks secrets from being committed by rejecting the git push
  • CodeQL: GitHub's semantic code analysis engine for finding security vulnerabilities
  • Dependency graph: GitHub's map of all direct and transitive dependencies in a repository
  • Security overview: Org/enterprise dashboard showing GHAS alert status across all repositories

โ† Overview ยท โ† Exam Guide

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