Skip to content

Allowing github-actions[bot] to push to protected branch #25305

Answered by chrispat
robozevel asked this question in Actions
Discussion options

You must be logged in to vote

If we enabled GitHub Actions to push to a protected branch then any collaborator in your repo could push any code to any branch they wanted simply by creating a branch and coding the workflow to push to to some other branch.  Using the REST api to merge the PR is the right flow and overtime hopefully there will be actions that make that easier to implement.  

Replies: 36 comments 89 replies

Comment options

You must be logged in to vote
14 replies
@ajoiner-fnba
Comment options

@GitMurf
Comment options

@GitMurf
Comment options

@jason-berk-k1x
Comment options

@FlorianCassayre
Comment options

Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@itsalaidbacklife
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@joaomariocosta
Comment options

@seriouslysean
Comment options

@kevcube
Comment options

@craigbroadman
Comment options

@seriouslysean
Comment options

Comment options

You must be logged in to vote
1 reply
@ajoiner-fnba
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@itsalaidbacklife
Comment options

@ghcsimon2
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Hronom
Comment options

Comment options

You must be logged in to vote
1 reply
@Hronom
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@dataviruset
Comment options

@bradymholt
Comment options

@anshitbansal21
Comment options

@ViktorDronov
Comment options

Comment options

You must be logged in to vote
2 replies
@dataviruset
Comment options

@timothyjlaurent
Comment options

Comment options

You must be logged in to vote
2 replies
@dough29
Comment options

@quentinvedrenne
Comment options

Comment options

You must be logged in to vote
4 replies
@Hronom
Comment options

@yannmichaux
Comment options

@Hronom
Comment options

@piotrekkr
Comment options

Comment options

You must be logged in to vote
2 replies
@Naatan
Comment options

@hipstersmoothie
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@sfonseka-provenir
Comment options

@kishanbsh-gilead
Comment options

@ViktorDronov
Comment options

Comment options

You must be logged in to vote
10 replies
@clemenspeters
Comment options

@piotrekkr
Comment options

@justin-pierce
Comment options

@piotrekkr
Comment options

@justin-pierce
Comment options

Comment options

You must be logged in to vote
2 replies
@XDelta
Comment options

@shakefu
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
21 replies
@raketeFlo
Comment options

@henne49
Comment options

@piotrekkr
Comment options

@henne49
Comment options

@henne49
Comment options

Comment options

You must be logged in to vote
4 replies
@imre-h
Comment options

@piotrekkr
Comment options

@imre-h
Comment options

@piotrekkr
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD