Skip to content

Commit b96483d

Browse files
authored
fix: github_organization_security_manager => github_organization_role_team (#340)
1 parent dbc85b9 commit b96483d

File tree

3 files changed

+370
-462
lines changed

3 files changed

+370
-462
lines changed

terraform/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ terraform {
55
required_providers {
66
github = {
77
source = "integrations/github"
8-
version = "6.3.1"
8+
version = "6.9.0"
99
}
1010
}
1111
}

terraform/resources-org.tf

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,15 @@ resource "github_membership" "this" {
2323
}
2424

2525
# Github Organization Security Manager Resource
26-
# https://registry.terraform.io/providers/integrations/github/latest/docs/resources/organization_security_manager
26+
# https://registry.terraform.io/providers/integrations/github/latest/docs/resources/organization_role_team
2727

28-
resource "github_organization_security_manager" "this" {
28+
resource "github_organization_role_team" "admins_security_manager" {
29+
# Can be confirmed by inspecting the input for the Security Manager role at:
30+
# https://github.com/organizations/django-commons/settings/org_role_assignments/new
31+
role_id = 138
2932
team_slug = github_team.org_teams["Admins"].slug
3033
}
34+
3135
# Create the organization teams for Django Commons.
3236
resource "github_team" "org_teams" {
3337
for_each = var.organization_teams

0 commit comments

Comments
 (0)