Skip to content

[BUG]: github_organization_setting fails with 422 when a fork policy is defined on enterprise level #2689

@MariusStorhaug

Description

@MariusStorhaug

The reconfiguration of a organization setting resource fails with the following changes when we have a policy defining a forking policy on enterprise level:

Policy:

Image

Deployment output:

╷
│ Error: PATCH https://mydomain.ghe.com/api/v3/orgs/dnb-acme: 422  []
│ 
│   with module.organization-settings.github_organization_settings.this,
│   on .terraform/modules/organization-settings/main.settings.tf line 1, in resource "github_organization_settings" "this":
│    1: resource "github_organization_settings" "this" {
│ 
╵

Upon disabling the forking setting on the organization, the deployment succeeds:

Image

Logs from deployment are clean and green.

After first deployment i set the fork settings on organization same as the enterprise policy and rerun tf apply and no issues arrise on the second run.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Needs infoFull requirements are not yet known, so implementation should not be startedType: BugSomething isn't working as documented

    Type

    Projects

    Status

    🆕 Triage

    Status

    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions