You manage GitHub Enterprise repositories that store C# code. You need to enable CodeQL scanning across the repositories. What should you do?
Choose an answer
Tap an option to check your answer.
Correct answer: Push a GitHub Actions workflow to all the repositories..
Why this is the answer
To enable CodeQL scanning, you must push a GitHub Actions workflow to each repository. This workflow defines the CodeQL analysis steps, including when it runs (e.g., on push or pull request) and what languages to scan. GitHub Actions is the automation platform that executes CodeQL scans. Enabling Dependabot security updates or alerts is incorrect because Dependabot focuses on dependency vulnerabilities and outdated dependencies, not static code analysis for custom code vulnerabilities, which is CodeQL's purpose. Configuring a required GitHub Actions workflow is a good practice for enforcement but doesn't enable CodeQL scanning itself; the workflow file must first exist in the repository.
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