venh/Set-Branch-Protection
Custom GitHub action based on Node.js to automatically apply branch protection rules.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| token | This should have Admin privileges or should be an Org Level Owner | yes | — |
| org | The name of your GitHub organization | yes | — |
| rulesPath | The path of the rules json file for branch protection | yes | ./rules.json |
| includedReposPath | Path of the file with repos (newline) to be included for optionally applying branch protection. If not provided, all repos will be considered. | — | — |
| excludedReposPath | Path of the file with repos (newline separated) to be excluded for branch protection. This is optional. | — | — |
| action | Set or Add or Delete Branch protection. Default is set. | yes | set |
Outputs
no outputs