Skip to content

Commit

Permalink
Add non-maintainer org members per #6 (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
evankanderson authored Oct 26, 2024
1 parent 1ba6250 commit 2d2588c
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions config/users.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ locals {

thelinuxfoundation = { role : "admin" }
}

org_members = {
dashtangui = {}
dussab = {}
ethomson = {}
msembria = {}
staceypotter = {}
}
}

resource "github_membership" "maintainers" {
Expand All @@ -23,13 +31,25 @@ resource "github_membership" "maintainers" {
role = each.value.role
}

resource "github_membership" "org_members" {
for_each = local.org_members

username = each.key
role = "member"
}

# Folks who helped with the transition need a manual import
import {
to = github_membership.maintainers["dussab"]
id = "mindersec:dussab"
}
import {
to = github_membership.maintainers["evankanderson"]
id = "mindersec:evankanderson"
to = github_membership.maintainers["ethomson"]
id = "mindersec:ethomson"
}
import {
to = github_membership.maintainers["JAORMX"]
id = "mindersec:JAORMX"
to = github_membership.maintainers["staceypotter"]
id = "mindersec:staceypotter"
}

resource "github_team" "maintainers" {
Expand Down

0 comments on commit 2d2588c

Please sign in to comment.