CodeQL code scanning: default setup vs advanced setup

Verdict: Default setup auto-generates and manages the CodeQL configuration with minimal effort. Advanced setup commits an editable workflow file for custom query suites, schedules, path filters and explicit build steps. Switching to default setup overrides an existing advanced configuration.

CriterionDefault setupAdvanced setup
ConfigurationGitHub generates and manages itCommitted workflow YAML the team edits
CustomizationLimited; query suite can be selectedFull: extra queries, path filters, schedules, build steps
Query suiteDefault suite; can switch to security-extendedSet in the workflow init step
Complex buildsAutomatic detection; can fail on C or C++ multi-system buildsExplicit build commands in the workflow
Choose whenFast onboarding, standard languagesCustom queries, schedules or builds default setup cannot detect

Rules

Traps