It's a good practise to protect the main branch from direct pushes. Add branch protection rules for this - [Managing a branch protection rule](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/managing-a-branch-protection-rule) Also, consider using Trunk based changes or Gitflow for this repository. - [Trunk-based development](https://www.atlassian.com/continuous-delivery/continuous-integration/trunk-based-development)