Attackers who cannot find a flaw in your code can still change it on the way to production: through a pipeline with too many permissions, a branch without protection, or a token pasted into a chat. Posture management that only reads repositories misses all three.
Each of these paths is a change to the software that never passes through a code review. A posture program that treats pipelines, source control settings and the places secrets travel as part of the application, with owners and policies of their own, closes paths that scanners were never designed to see.