That's not the pipeline job to rebase on origin/master on a given PR. The developer must ensure that his branch is up to date with the master one.
This is enforced in Github with "Require branches to be up to date before merging", which is checked for the master branch.
Remove the rebase stage on the default pipeline.