GH-900 ยท Security and administration
Built-in security features
Purpose of Dependabot alerts, secret scanning, code scanning and security policies at an awareness level.
Key points
- Dependabot alerts: dependencies with known vulnerabilities; it can also open update pull requests.
- Secret scanning: committed credentials.
- Code scanning: security vulnerabilities and coding errors in your own code before merge.
- Security policy (SECURITY.md): how to report vulnerabilities privately.
- Security advisories: help fix and disclose them.
- Some features: free on public repositories, paid on private.
Source: https://docs.github.com/en/code-security/getting-started/github-security-features
Practice questions
Which GitHub feature warns you when a library your project depends on has a known vulnerability?
- Secret scanning
- Dependabot alerts
- Code scanning
- Repository insights
Show answer
Answer: B. Dependabot alerts
Dependabot alerts watch dependencies against known vulnerabilities. Secret scanning looks for credentials, and code scanning analyzes your own code.
Which of these are GitHub security features?
- Code scanning
- Secret scanning
- Dependabot alerts
- Gists
- Projects boards
Show answer
Answer: A. Code scanning, B. Secret scanning, C. Dependabot alerts
Code scanning, secret scanning and Dependabot alerts are built-in security features. Gists and Projects are collaboration tools, not security features.
True or false: a SECURITY.md file is used to give users a private way to report vulnerabilities in a project.
Show answer
Answer: True
True. A security policy tells reporters how to disclose vulnerabilities responsibly instead of opening a public issue.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
