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: 39 comments 104 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
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
25 replies
@henne49
Comment options

@dsover
Comment options

@ushuz
Comment options

@navtoj
Comment options

@sbellone
Comment options

Comment options

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

@TheIdhem
Comment options

@piotrekkr
Comment options

@TheIdhem
Comment options

@qoomon
Comment options

This comment was marked as off-topic.

Comment options

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

Comment options

You must be logged in to vote
3 replies
@zhimsel
Comment options

@j05u3
Comment options

@sbellone
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