How does Dependabot determine which security update PRs to open?
Answer(s): B
Dependabot relies on your repository’s enabled Dependency Graph and Dependabot Alerts to identify vulnerable dependencies; it then automatically opens pull requests to update to the patched versions that resolve those alerts.
You are an administrator and need to write a script that will change the visibility of all repositories in the organization to private.Which two commands should the script pass to the API endpoint? Each correct answer presents part of the solution.Note: Each correct answer is worth one point.
Answer(s): B,C
The GitHub REST API uses the endpoint PATCH /repos/{owner}/{repo} to update repository settings, including visibility. The script must specify the organization as owner, each repository as repo, and set visibility to private.
Where must the SECURITY.md file reside to be recognized by GitHub?
Answer(s): D
GitHub recognizes the SECURITY.md file when placed in the repository's root, .github/, or docs/ directory. The file defines the repository's security policy, including supported versions and instructions for reporting vulnerabilities.
An organization wants to share a single API key required for their Actions workflows. They need to restrict its use to only a subset of repositories. Where should they configure the secrets to minimize maintenance?
Answer(s): C
By defining the API key as an organization secret, you centralize management and can grant access only to the subset of repositories you choose - eliminating per-repo duplication while enforcing the desired scope.
What is the key difference between the fork-and-pull model and the branching model in GitHub?
The fork-and-pull model allows external contributors to work on their own copies (forks) of a repository and submit pull requests. The branching model is better suited for internal teams whose members have direct write access to the repository.
Post your Comments and Discuss Microsoft GH-100 exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the GH-100 content, but please register or login to continue.