Could merge a Pull Request without getting reviewer approval

0

Hello everyone!

In AWS Code Catalyst, I could do merge a PR (without required approver) directly as a contributor. It means that I could a PR without required reviewer and then directly did merge that PR to main branch. It is probably unsecured process. There is not protected branch feature in source repository in Code Catalyst.

How can I overcome this issue?

Thank you!

已提问 1 年前378 查看次数
2 回答
0

Hi,

According to this: https://docs.aws.amazon.com/codecatalyst/latest/userguide/pull-requests-review.html,

All required reviewers must approve a pull request before it can be merged. Depending on your screen size and browser, the buttons to approve or merge a pull request might be hidden behind the Additional info information bar.

So it could be that if you do not add any required approves, you can then merge the PR.

You could look into adding IAM policies preventing to merge into a specific branch.

profile picture
专家
已回答 1 年前
0

Hi Alatech, Thank you for your comment!

In my case, I expected that merging PR should NOT be allowed if that merging skips approver. In other words, merging PR is possible only with approval. Currently, Code Catalyst is managing users based on Builder ID accounts. As per my information, there is no any relationship between IAM and Builder ID accounts.

May I know any documentation for IAM policies preventing to merge into a specific branch in Code Catalyst?

I highly appreciate your comment.

Thank you!

已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则