Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Branch Protection - Config File #3464

Open
rawkode opened this issue Jan 18, 2024 · 2 comments
Open

Branch Protection - Config File #3464

rawkode opened this issue Jan 18, 2024 · 2 comments

Comments

@rawkode
Copy link

rawkode commented Jan 18, 2024

It would be quite nice if branch protection could be configured in .harness or .gitness of the repositories, rather than storing this information within the database.

@bradrydzewski
Copy link

Thanks for the suggestion. The current implementation stores rules in the database for security purposes — we need to restrict branch protection rule management to repository owners and ensure regular contributors with write access could not change rules. We don't have any immediate plans to augment the approach with a file-based configuration, however, we are open to a future enhancement if we see enough demand for this capability.

@rawkode
Copy link
Author

rawkode commented Mar 3, 2024

When the rules are stored in Git, this could enforce PRs against the main branch; to maintain security of rules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants