zalari/ToggleBranchProtection
Toggle protection for a branch on or off
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| owner | GitHub user or org | yes | — |
| repo | GitHub repository | yes | — |
| branch | branch for toggling protection, defaults to master | no | master |
| GITHUB_TOKEN | GitHub token with sufficient rights, for toggling protection | yes | — |
| on | Enable branch protection with passed JSON of protection rules | no | — |
| off | Disable branch protection | no | — |
Outputs
| name | description |
|---|---|
| on | The stringified protection rules for re-enabling |