To prevent merging pull requests where the CI passes and there are no conflicts, such as when the go.sum file changes which will cause the master branch to fail, to proposes that in the CI to cherry pick the pull request into master before running the tests.
There is an option in github to require pull requests to be up to date with master before merging, but the concern is that this will require the contributors to rebase too often.