-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Labels
help wantedOpen to participation from the communityOpen to participation from the community✨ goal: improvementImprovement to an existing featureImprovement to an existing feature🏁 status: ready for workReady for workReady for work💪 skill: pythonRequires proficiency in 'Python'Requires proficiency in 'Python'💻 aspect: codeConcerns the software code in the repositoryConcerns the software code in the repository🟨 priority: mediumNot blocking but should be fixed soonNot blocking but should be fixed soon
Description
Problem
Repositories updated by bots are excluded (reduced security):
ccos-scripts/ccos/norm/branch_protections.yml
Lines 1 to 17 in fbd4764
EXEMPT_REPOSITORIES: | |
# special purpose repo | |
- australian-chapter | |
# exempted for bot pushes to default branch | |
- creativecommons.github.io-source | |
# exempted for bot pushes to default branch | |
- creativecommons.github.io | |
# special purpose repo | |
- global-network-strategy | |
# special purpose repo | |
- network-platforms | |
# exempted for bot pushes to default branch | |
- quantifying | |
# special purpose repo | |
- sre-wiki-js | |
# special purpose repo | |
- tech-support |
Description
Protections can be maintained with specific users (bots) excluded
In the GitHub GUI, the specific user exclusions look like this, for example:
The script (normalize_repos.py
) already handles:
- Protect matching branches
- Require a pull request before merging
- Require approvals
- Require a pull request before merging
It needs to be updated to also handle (with ability to specify one or more users):
- Protect matching branches
- Allow specified actors to bypass required pull requests
Additional context
- Managing a branch protection rule - GitHub Docs
- BranchProtection — PyGithub documentation
- REST API endpoints for protected branches - GitHub Docs
Implementation
- I would be interested in implementing this feature.
Metadata
Metadata
Assignees
Labels
help wantedOpen to participation from the communityOpen to participation from the community✨ goal: improvementImprovement to an existing featureImprovement to an existing feature🏁 status: ready for workReady for workReady for work💪 skill: pythonRequires proficiency in 'Python'Requires proficiency in 'Python'💻 aspect: codeConcerns the software code in the repositoryConcerns the software code in the repository🟨 priority: mediumNot blocking but should be fixed soonNot blocking but should be fixed soon
Type
Projects
Status
Done