How to get current camera in SRP

I have an SRP and I tried using Camera.current but it returns null. So how do I get the current camera that the SRP is rendering for?

Camera.main always references the currently active camera.