You need to ensure that all code in a GitHub repository is scanned for vulnerabilities. Which feature should you use?
Choose an answer
Tap an option to check your answer.
Correct answer: CodeQL actions.
Why this is the answer
CodeQL actions are the correct choice because they provide automated static code analysis to find security vulnerabilities and errors in your code. They integrate directly into your GitHub CI/CD pipeline, scanning code as it's committed or on a schedule. Dependabot alerts focus on vulnerable dependencies, not vulnerabilities within your own codebase. Branch protection rules enforce quality gates like required reviews or status checks, but don't perform code scanning themselves. The GitHub Advisory Database is a collection of known vulnerabilities in open-source projects, which Dependabot uses, but it's not a scanning tool for your custom code.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed