CodeCommit - Protect Master Branch

0

Hi AWS-Support, can you please tell me how to protect my master/main-branch from adjustments without any Pull Request?

I want that everyone needs to create a branch first and then ask for approval with a Pull Request. Now the situation is that if you work directly in master you can push your changes without a Pull Request. I couldn't find any page where to define a protected branch like master or main.

Thanks, Mario

질문됨 일 년 전1780회 조회
2개 답변
0

AWS CodeCommit supports branch-level access permissions. You can restrict who can commit changes to the main branch or any branch through IAM.

Check this AWS blog post for more information: https://aws.amazon.com/blogs/devops/refining-access-to-branches-in-aws-codecommit/

profile picture
joahna
답변함 일 년 전
profile pictureAWS
전문가
kentrad
검토됨 일 년 전
0

This is the most non-intuitive and backward way to do something that should be incredibly simple. Between this and the "Approvers" fiasco, I wonder if anyone who built this product at Amazon ever looked at another solution in the same space. This is the most unfriendly way to go about doing something very simple. Why is it so overcomplicated???

It also doesn't solve the problem of protecting the branch. It just protects the branch from a group of people, while giving another group of people the ability to do whatever they want with the branch.

Jo5h
답변함 2달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠