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 68 replies

Comment options

You must be logged in to vote
12 replies
@temurih
Comment options

@thai-op
Comment options

@ajoiner-fnba
Comment options

@GitMurf
Comment options

@GitMurf
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
1 reply
@dough29
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
@sanjeewaf
Comment options

@kishanbsh-gilead
Comment options

@ViktorDronov
Comment options

Comment options

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

@ViktorDronov
Comment options

@SharonDiskin
Comment options

@clemenspeters
Comment options

@piotrekkr
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
10 replies
@haizaar
Comment options

@maboloshi
Comment options

@GitMurf
Comment options

@piotrekkr
Comment options

@BinToss
Comment options

Comment options

You must be logged in to vote
0 replies
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