How do you integrate automated testing and security scanning into a CI/CD pipeline without significantly slowing down deployments?