nerdexam
Microsoft

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…

Configure and use secret scanning

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)
  • A
    5% (3)
  • B
    2% (1)
  • C
    2% (1)
  • D
    91% (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

#Secret Scanning#Repository Settings#Enabling Features#Code Security

Community Discussion

No community discussion yet for this question.

Full GH-500 Practice