Azurerm_static_site + GitHub Repo

Hi,
I am wondering why it is not possible (or at least I didn’t got to run it properly) to create a static web app with a github repo like I can do it in the portal?

Here can I specify a GitHub repo and after creating the static web app, everything gets created automatically. That’s a 3 minute job. In Terraform I couldn’t get it to run that way, because the azurerm_static_site doesn’t have any properties for a GitHub repo.

Is there an easy alternative to this and why it is like that in the first place?

Thanks for your help.

Best regards
Colin