Hi.
I'm trying to set up semantic-release in a project. I'm using Bitbucket Pipelines. This works on a feature branch, but pushing back to master gives issues as it's not allowed by the branch permissions. I've set up a user that is excluded from the global rules.
For testing purpose, I've copied the branch permissions to the feature branch.
I've tried a few things, I've set up Git authentication to change the user, used GIT_CREDENTIALS to set my user and added a private and public SSH key specifically for this repository.
As long as the branch permissions are enabled, I seem to keep getting this error:
stderr: 'remote: Permission denied to update branch feature/changelog.\nTo http://bitbucket.org/energydigital/energylab-generic-components-v2\n ! [remote rejected] HEAD -> feature/changelog (pre-receive hook declined)\nerror: failed to push some refs to \'http://bitbucket.org/energydigital/energylab-generic-components-v2\'',