sanity-io / sanity-template-gatsby-portfolio

A Gatsby portfolio site powered by Sanity for https://www.sanity.io/create
https://www.sanity.io/create/?template=sanity-io%2Fsanity-template-gatsby-portfolio
69 stars 18 forks source link

Unable to find a manual deployment option on sanity.io portfolio page & Sanity is asking too many permission to deploy a single app / repo. #64

Open MrFarhan opened 3 years ago

MrFarhan commented 3 years ago

Unable to find a manual deployment option on the sanity.io portfolio page (link provided below), I am not comfortable with providing read and write access to all my public / private repos, rather it should only ask for access to a single repo that is being deployed by sanity, and also do not disable any 2FA to Github.

https://www.sanity.io/create?template=sanity-io%2Fsanity-template-gatsby-portfolio

judofyr commented 3 years ago

rather it should only ask for access to a single repo that is being deployed by sanity, and also do not disable any 2FA to Github.

This is unfortunately the only way we can implement it due to the way GitHub's API work.

Unable to find a manual deployment option on the sanity.io portfolio page (link provided below), I am not comfortable with providing read and write access to all my public / private repos

That's very understandable. What if it was possible to initialize this project using sanity init? E.g. sanity init --template=sanity-io/sanity-template-gatsby-portfolio. This could create a project/dataset for you, but it would not set up integration with GitHub/Netlify. Would that be interesting?