integrations / integrations/terraform-provider-github

[BUG]: `github_organization_ruleset`'s `repository_id` unnecessary drift

Open
#2,754 1 comment 1 reaction 0 assignees View on GitHub
r/organization_ruleset Status: Triage Type: Bug
Dominant language
Go
Stars
1.2k
Forks
1k
Avg merge
1d 14h
Merged PRs (30d)
8

Description

### Expected Behavior

No changes expected.

### Actual Behavior

```terraform
# github_organization_ruleset.mandatory_pull_request will be updated in-place
~ resource "github_organization_ruleset" "mandatory_pull_request" {
id = "1234567"
name = "mandatory-pull-request"
# (5 unchanged attributes hidden)

~ conditions {
~ repository_id = [
- 111222333,
777888999,
+ 111222333,
]

# (1 unchanged block hidden)
}

# (1 unchanged block hidden)
}
```

### Terraform Version

Terraform v1.12.1
- Installing hashicorp/azurerm v4.42.0...
- Installed hashicorp/azurerm v4.42.0 (signed by HashiCorp)
- Installing hashicorp/azuread v3.5.0...
- Installed hashicorp/azuread v3.5.0 (signed by HashiCorp)
- Installing azure/azapi v2.6.1...
- Installed azure/azapi v2.6.1 (signed by a HashiCorp partner, key ID 6F0B91BDE98478CF)
- Installing integrations/github v6.6.0...
- Installed integrations/github v6.6.0 (signed by a HashiCorp partner, key ID 38027F80D7FD5FB2)

### Affected Resource(s)

- `github_organization_ruleset`

### Terraform Configuration Files

```hcl

```

### Steps to Reproduce

_No response_

### Debug Output

```shell

```

### Panic Output

```shell

```

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.