An enterprise on GitHub Enterprise Cloud uses an enterprise policy to require that push protection for secret scanning is enabled and cannot be turned off by member organisations. An organisation owner inside that enterprise tries to disable push protection for one of their repositories because a team finds the blocking inconvenient. What governs whether the organisation owner can do this?
- AThe organisation owner can disable it, because organisation-scope settings always take precedence over an enterprise policy that conflicts with a local preference.
- BThe organisation owner can disable it for that single repository, because enterprise policies set defaults only and never restrict an explicit per-repository override.
- CThe organisation owner cannot disable it, because an enforced enterprise policy removes the option at the organisation and repository levels beneath it. Correct
- DThe organisation owner cannot disable it unless they first remove the repository from any security configuration, after which the enterprise policy stops applying to it.
Why A is wrong: This reverses the precedence model; a more restrictive enterprise policy overrides a looser organisation choice, not the other way round. It is tempting because organisation owners do control many settings, but an enforced enterprise policy removes that local option.
Why B is wrong: Enterprise policies can be set to enforce, not merely recommend, which closes off per-repository overrides. The distinction between a default and an enforced policy is exactly the trap; treating every policy as just a default is the mistake.
Why C is correct: When an enterprise policy is set to enforce a setting such as push protection, the corresponding control is locked for the organisations and repositories below, so the option to disable is unavailable. The organisation owner therefore cannot turn push protection off.
Why D is wrong: Detaching a security configuration does not exempt a repository from an enforced enterprise policy; the policy applies regardless of configuration attachment. The mention of configurations is plausible, but it conflates two separate governance mechanisms.