I am working on a library and I want the pipeline to build and update the package version when the main branch is updated.
That being said bitbucket pipeline pushes the code to the main branch to update the package version.
I want the bitbucket pipeline the only one who can push the code to main branch directly in order to prevent humans to make direct changes.
But I can't find bitbucket pipeline in the branch restrictions and the pipeline fails to push code when the restriction is set.
How can I set the branch restriction?