Skip to content

Add infrahouse8 to admins and developers teams - #28

Merged
akuzminsky merged 2 commits into
mainfrom
add-infrahouse8-to-teams
May 24, 2026
Merged

Add infrahouse8 to admins and developers teams#28
akuzminsky merged 2 commits into
mainfrom
add-infrahouse8-to-teams

Conversation

@akuzminsky

Copy link
Copy Markdown
Member

Summary

  • Adds infrahouse8 user to both admins and developers teams
  • Refactors team_members local from a list-of-teams to an object with role and teams fields
  • Sets org membership role explicitly (admin for infrahouse8, member for others)

Notes

After merge, import the existing org membership before apply:

terraform import 'github_membership.infrahouse["infrahouse8"]' infrahouse:infrahouse8

Test plan

  • terraform plan shows expected changes (add team memberships, no membership recreation for existing users)
  • Verify infrahouse8 can bypass branch protection after apply

🤖 Generated with Claude Code

Refactors team_members to include org role alongside team assignments,
allowing infrahouse8 to bypass branch protection rulesets as an admin
team member.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions

github-actions Bot commented May 24, 2026

Copy link
Copy Markdown

State s3://infrahouse-github-control-state/terraform.tfstate

Affected resources counts

Success 🟢 Add Change 🔴 Destroy
1 0 3

Affected resources by action

Action Resources
🟡 github_team_members.admins
🟡 github_team_members.dev
🟡 module.aws_service_infrahouse_app.github_repository_file.makefile_fragment[0]
STDOUT
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # github_membership.infrahouse["infrahouse8"] will be imported
    resource "github_membership" "infrahouse" {
        etag     = "W/\"1fb15c247b842048dff867b914339dbe231c214857f16d0cc07a936f4be77c6b\""
        id       = "infrahouse:infrahouse8"
        role     = "admin"
        username = "infrahouse8"
    }

  # github_team_members.admins will be updated in-place
  ~ resource "github_team_members" "admins" {
        id      = "14268696"
        # (1 unchanged attribute hidden)

      + members {
          + role     = "member"
          + username = "infrahouse8"
        }

        # (1 unchanged block hidden)
    }

  # github_team_members.dev will be updated in-place
  ~ resource "github_team_members" "dev" {
        id      = "7332815"
        # (1 unchanged attribute hidden)

      + members {
          + role     = "member"
          + username = "infrahouse8"
        }

        # (2 unchanged blocks hidden)
    }

  # module.aws_service_infrahouse_app.github_repository_file.makefile_fragment[0] will be updated in-place
  ~ resource "github_repository_file" "makefile_fragment" {
      ~ commit_message      = "Update makefiles/Makefile" -> "Add makefiles/Makefile"
        id                  = "aws-service-infrahouse-app:makefiles/Makefile:main"
        # (9 unchanged attributes hidden)
    }

Plan: 1 to import, 0 to add, 3 to change, 0 to destroy.

Warning: Argument is deprecated

  with module.ih_8_repos.github_repository.repo,
  on modules/local-repo/repos.tf line 4, in resource "github_repository" "repo":
   4:   has_downloads        = false

This attribute is no longer in use, but it hasn't been removed yet. It will
be removed in a future version. See
https://github.com/orgs/community/discussions/102145#discussioncomment-8351756

(and 6 more similar warnings elsewhere)

Warning: Deprecated attribute

  on .terraform/modules/actions-runner-pem-493370826424-uw1/data_sources.tf line 11, in data "external" "secret_value":
  11:     "python", "${path.module}/assets/get_secret.py", data.aws_region.current.name, aws_secretsmanager_secret.secret.id, data.aws_iam_role.caller_role.arn

The attribute "name" is deprecated. Refer to the provider documentation for
details.

(and 5 more similar warnings elsewhere)

─────────────────────────────────────────────────────────────────────────────

Saved the plan to: tf.plan

To perform exactly these actions, run the following command to apply:
    terraform apply "tf.plan"
metadata
eyJzMzovL2luZnJhaG91c2UtZ2l0aHViLWNvbnRyb2wtc3RhdGUvdGVycmFmb3JtLnRmc3RhdGUiOiB7InN1Y2Nlc3MiOiB0cnVlLCAiYWRkIjogMSwgImNoYW5nZSI6IDAsICJkZXN0cm95IjogM319

infrahouse8
infrahouse8 previously approved these changes May 24, 2026
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@akuzminsky
akuzminsky merged commit 39e8694 into main May 24, 2026
2 checks passed
@akuzminsky
akuzminsky deleted the add-infrahouse8-to-teams branch May 24, 2026 21:54
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

Successfully merging this pull request may close these issues.

2 participants