Best practice for protection of the gh-pages branch? #1000
-
By default, the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, the branch protection rules are helpful for that use case.
The first choice is creating a personal access token for the |
Beta Was this translation helpful? Give feedback.
Yes, the branch protection rules are helpful for that use case.
https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches#restrict-who-can-push-to-matching-branches
The first choice is creating a personal access token for the
github_token
input and adding a user who owns the PAT to that setting. The best is creating a GitHub App, adding the app to that setting, and generating a token with …