Skip to content

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

Open
@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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions