At more than one point. Static checks belong on every pull request, sandbox analysis belongs before deployment and on a re-scan schedule, and checks at the browser and endpoint catch artifacts that never pass through a repository.
In the repository
Static analysis is lightweight and deterministic, so it fits a pre-merge gate on every pull request, the same way SAST does. A high-severity finding, such as a credential harvesting pattern or an obfuscated execution chain, should block the merge until someone reviews it.
Before deployment and on a schedule
Sandbox analysis costs more per artifact, so run it before deployment and periodically on approved artifacts rather than on every commit. Reasoning over combined evidence runs when the earlier results are ambiguous.
Outside the pipeline
Many skills and MCP servers never touch a repository. They are installed from a marketplace straight onto a laptop. Checking artifacts in the browser, at the registry, and on endpoints through the EDR you already run covers that path.