Skip to content

[BUG]: github_organization_role setting base_role = "none" causes permanent diff #3004

Closed

Description

@hoexter

Expected Behavior

Given a configuration like

resource "github_organization_role" "audit_viewer" {
  name        = "Audit Viewer"
  description = "Access the Organization Audit Log"
  base_role   = "none"
  permissions = [
    "read_audit_logs"
  ]
}

it should get applied once and on subsequent plans do not cause any diff.

Actual Behavior

Terraform will perform the following actions:
  # github_organization_role.audit_viewer will be updated in-place
  ~ resource "github_organization_role" "audit_viewer" ***
      + base_role   = "none"
        id          = "12345"
        name        = "Audit Viewer"
        # (3 unchanged attributes hidden)
    ***
Plan: 0 to add, 1 to change, 0 to destroy.

That change is applied on every subsequent run.

Terraform Version

$ terraform -v
Terraform v1.14.2
on linux_amd64
+ provider registry.terraform.io/hashicorp/google v7.13.0
+ provider registry.terraform.io/hashicorp/googleworkspace v0.7.0
+ provider registry.terraform.io/integrations/github v6.9.0

Affected Resource(s)

  • github_organization_role

Terraform Configuration Files

Steps to Reproduce

Run terraform apply twice or more.

Debug Output

Panic Output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added
    Type: Bug
    Status: Triage
    on Dec 16, 2025
  2. github-actions commented on Dec 16, 2025

    @github-actions

    👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

  3. self-assigned this
    on Dec 16, 2025
  4. removed
    Status: Triage
    on Dec 16, 2025
  5. added this to the v6.9.1 Patch milestone on Dec 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type: Bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions