GH-500 practice question 1 of 15

– [Configure and Use Secret Scanning] Secret scanning will scan:

Full set: 75 questions
Answer options
A: A continuous integration system.
B: Any Git repository.
C: The GitHub repository. Correct answer
D: External services.
Correct Answer:
C. The GitHub repository.
Explanation

GitHub secret scanning is a native security feature that operates specifically on repositories hosted on the GitHub platform (GitHub.com and GitHub Enterprise). It automatically scans the entire Git history of all branches within a repository to find accidentally committed secrets, such as tokens and private keys. The scope of the scan is confined to the content of the GitHub repository itself, making it a repository-centric security tool.

Why Incorrect

A. Secret scanning is a GitHub feature that scans repository content, not the continuous integration system's infrastructure or configuration itself.
B. The feature is specific to repositories hosted on GitHub. It does not scan any arbitrary Git repository hosted on other platforms like GitLab or a private server.
D. Secret scanning finds credentials for external services that are located within a repository; it does not scan the external services themselves.

References

1. GitHub Docs

"About secret scanning." This document explicitly states

"Secret scanning scans your entire Git history on all branches present in your GitHub repository for secrets." This confirms the feature's scope is the GitHub repository.

Source: https://docs.github.com/en/code-security/secret-scanning/about-secret-scanning

Section: "About secret scanning."

2. Microsoft Learn

"Configure secret scanning

" GH-500 Learning Path. The official training material for the exam describes the feature's function: "GitHub scans repositories for known types of secrets to prevent fraudulent use of secrets that were committed by accident." The context is always a repository on GitHub.

Source: https://learn.microsoft.com/en-us/training/modules/configure-secret-scanning-in-your-repo/2-what-is-secret-scanning

Paragraph 1.

3. GitHub Docs

"Managing security and analysis settings for your repository." The configuration process for secret scanning is performed within the settings of a specific GitHub repository

reinforcing that its operational boundary is the repository.

Source: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-security-and-analysis-settings-for-your-repository

Section: "Allowing or disallowing features for your private repository."

Scroll to Top