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

fix: Enforce branch protection for admins, by default #75

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

stefanwb
Copy link
Contributor

@stefanwb stefanwb commented Nov 11, 2024

Set the default branch protection value for enforce_admin to true so that overriding this would be a conscious choice.

@stefanwb stefanwb requested a review from a team as a code owner November 11, 2024 09:43
@github-actions github-actions bot added the bug Something isn't working label Nov 11, 2024
Copy link
Contributor

github-actions bot commented Nov 11, 2024

Terraform Format and Style 🖌success

Terraform Initialization ⚙️``

Terraform Lint 📖success

Terraform Validation 🤖skipped

Validation Output


@stefanwb stefanwb force-pushed the enforce-admins-branch-protection branch 2 times, most recently from 43deba7 to 6609f8a Compare November 11, 2024 09:44
@stefanwb stefanwb changed the title fix: Enforce branch protection for admins fix: Enforce branch protection for admins, by default Nov 11, 2024
@stefanwb stefanwb force-pushed the enforce-admins-branch-protection branch from ee7720e to 990534a Compare November 11, 2024 09:47
@stefanwb stefanwb force-pushed the enforce-admins-branch-protection branch from 927e372 to 3d559b5 Compare November 11, 2024 09:50
@@ -120,7 +120,7 @@ variable "default_branch_protection" {
}))
})
default = {
enforce_admins = false
enforce_admins = true

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does Terraform not support constants?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants