How to add Shopify to Github branch protection rules?

Solved

How to add Shopify to Github branch protection rules?

Billy-Snow
Visitor
2 1 2

We have our live theme connected to a branch in our repo. I want to prevent anyone except our lead developer and Shopify (updating changes made in Shopify Admin) from being able to push to this main branch. You should be able to do this using Github Branch Protection Rules but I don't know how to add Shopify to the list of users who can push to the main branch. How are you protecting the branch connected to the live theme?

 

If I only add our lead developer I get an error message on Shopify admin below the theme saying it is unable to push to the repo.

Accepted Solution (1)

Billy-Snow
Visitor
2 1 2

This is an accepted solution.

For anyone wondering about this you can add "Shopify" (the app) to your list of developers/apps allowed to push to the branch. This will restrict who can modify your live site if it is connected to a branch.

View solution in original post

Replies 3 (3)

Billy-Snow
Visitor
2 1 2

This is an accepted solution.

For anyone wondering about this you can add "Shopify" (the app) to your list of developers/apps allowed to push to the branch. This will restrict who can modify your live site if it is connected to a branch.

cornelle1
Excursionist
24 0 4

Hi @Billy-Snow - how did you go about adding Shopify to the list of developers/apps allowed to push to the branch? We are running into this same exact problem...

luukee
Shopify Partner
2 0 2

@cornelle1 
On GitHub / your main branch / Settings / Branches / Edit Branch protection rules / look for "Restrict who can push to matching branches" / in the search bar enter "shopify" and the app will show up.

** I just added this to our repo so not sure if it fixes it, but it seems like it will 🙂

Let me know if that does it for you.