How to set github branch protection to check github action statue?


I would like to use the required_status_checks option to protect my github branch. I think I should set the strict option to true, but I have no idea how to set the context option.

In the example, it accept ci/travis, but what value should I use for github action?


Hi @DShen_quantium , how have you ended up doing your config. I am assuming I should add the name of the actions jobs I want to have successfully ran before I am able to merge. Is that correct?
I am trying to add this setting for my repos currently being managed by terraform, but it won’t update :-/

You need to set the contexts to the name of your actions. It accepts an array of strings.

1 Like