Error deploying from new template when not logged in

We are having trouble deploying a template. We are seeing a failure if the user is not logged in to netlify when they start the deploy.

The one-click deploy link we are using is:

Which has a template file from: comms-app-react-events/netlify.toml at main · dolbyio-samples/comms-app-react-events · GitHub

After authorising github I get directed to:

This does not include the expected prompts for the template variables.

The deployed site id is heroic-trifle-462c5a during which the build fails. The error logs are:

11:46:09 AM: build-image version: 900a223ea0f4a600c43255115089305a2b808649 (focal)
11:46:09 AM: buildbot version: ef13074d2cce7f50f6d57a698cb1897c8a6f2a51
11:46:09 AM: Fetching cached dependencies
11:46:09 AM: Failed to fetch cache, continuing with build
11:46:09 AM: Starting to prepare the repo for build
11:46:09 AM: Failing build: Failed to prepare repo
11:46:09 AM: Failed during stage ‘preparing repo’: error checking for ref: : Warning: Permanently added ‘github.com’ (ECDSA) to the list of known hosts.
: exit status 2
11:46:11 AM: Finished processing build request in 2.168s

The linked github repository is also not populated. Noviny/comms-app-react-events-3 · GitHub

This created repository is empty.

If I am logged in when I start this flow, I get the template prompts as expected.

Having provided the secrets the template asks for, it generates the site: https://645c4978b43072388481c792--subtle-smakager-ae8f25.netlify.app/ which works as intended.

We can also see the linked github repository is generated correctly: GitHub - Noviny/comms-app-react-events-4

hello @dolbyioapps - Yes, you need to be logged in to Netlify to deploy a site from a template. When you create a new site from a template, you’ll be asked to choose a Git provider to create a new repository for the chosen template. This process requires you to be logged in to your Netlify account. This is working as intended.