You require that all GitHub Actions changes be reviewed by code owners using a CODEOWNERS file. In which location of the repository should you place the CODEOWNERS file?
Choose an answer
Tap an option to check your answer.
Correct answer: .github/.
Why this is the answer
GitHub requires the CODEOWNERS file to be placed in the root of the repository, the .github/ folder, or the docs/ folder. For this scenario, placing it in .github/ is the correct and common practice for repository-level configurations. This ensures GitHub can correctly identify and enforce code owner reviews for relevant files. Placing it in .github/actions/ or .github/workflows/ is incorrect because these directories are specifically for GitHub Actions definitions and workflows, not for the CODEOWNERS file itself. The .git/ directory is an internal Git directory and should not be manually modified or used for this purpose.
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