Skip to content

The organisation's deploy-key setting is declared in the GitHub settings root #86

Closed as not planned

Description

@FlexOr2

The organisation setting that allows deploy keys is declared in src/opentofu/github, so it cannot drift away from what Flux on the PC needs.

Caller

Done when

  • src/opentofu/github declares deploy_keys_enabled_for_repositories = true for the organisation overnightworks. A plan with scripts/apply_github_settings.sh shows no other organisation setting changing. If the only resource that carries the flag (github_organization_settings in integrations/github 6.13.0) would take over and reset other organisation settings, the plan names each one, and the slice either declares them at their live values or stops and names the alternative.
  • mise run github:test is green. The mocked test pins the flag's relationship to the PC's deploy key, not a copied literal.
  • The operator's --apply changes nothing on the live organisation, because the flag is already true.

Unknown, for its plan

  • Whether github_organization_settings requires billing_email and other attributes, and resets unset ones to provider defaults. Read the provider's schema at 6.13.0 and plan against the live organisation before building.
version = 1
now = "Opened 07.11.2026 after the operator enabled deploy keys for the organisation by hand at #61's B6."
next = "Plan: read github_organization_settings at 6.13.0 and plan against the live organisation, then declare the flag without changing any other setting."
done_when = "src/opentofu/github declares deploy_keys_enabled_for_repositories = true for overnightworks; its plan changes no other organisation setting; mise run github:test is green; the operator's apply changes nothing live."
scope = [
  "src/opentofu/github",
]
size = "S"
whole = "The organisation resource, its test and the root's lock change together in one root."

Activity

  1. added theissue type on Nov 7, 2026
  2. FlexOr2 commented on Nov 7, 2026

    @FlexOr2
    MemberAuthor

    Closed as not planned: the flag cannot be declared yet.

    Reopen when integrations/github ships the attribute in github_organization_settings. Then declare it as this body says.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions