GH-500 · Question #26
Where is secret scanning enabled on a private repository?
The correct answer is D. in the code security settings. Secret scanning for a private repository is enabled through the repository's Code Security settings (Settings > Security > Code security and analysis). This is the dedicated security configuration panel where administrators can toggle secret scanning on or off. A secret.yml…
Question
Where is secret scanning enabled on a private repository?
Options
- Awithin a secret.yml file in the repository
- Bin the code scanning default set up settings
- Cwithin a repository ruleset
- Din the code security settings
How the community answered
(55 responses)- A5% (3)
- B2% (1)
- C2% (1)
- D91% (50)
Explanation
Secret scanning for a private repository is enabled through the repository's Code Security settings (Settings > Security > Code security and analysis). This is the dedicated security configuration panel where administrators can toggle secret scanning on or off. A secret.yml file does not exist for this purpose, code scanning default setup is specifically for CodeQL analysis, and repository rulesets govern branch protection and push rules - not secret scanning enablement.
Topics
Community Discussion
No community discussion yet for this question.