When a yaml configuration for a new repo is added, and the default branch name is set to something else than main, terraform fails at the apply. It creates a repo first, and the repo is there, with the default branch name set to main (by default), and then tries to create a new default branch with name "master" and fails:
https://app.terraform.io/app/GR-OSS/workspaces/github-configuration-self-service-prod-g-research/runs/run-omTG1cUsWxmiuoeQ
When a yaml configuration for a new repo is added, and the default branch name is set to something else than main, terraform fails at the apply. It creates a repo first, and the repo is there, with the default branch name set to main (by default), and then tries to create a new default branch with name "master" and fails:
https://app.terraform.io/app/GR-OSS/workspaces/github-configuration-self-service-prod-g-research/runs/run-omTG1cUsWxmiuoeQ