Skip to content

feat: remove apps and rulesets from repos.tf - #41

Merged
nickdemianchuk merged 1 commit into
mainfrom
nickdemianchuk-patch-1
Oct 15, 2026
Merged

nickdemianchuk merged 1 commit into
mainfrom
nickdemianchuk-patch-1

Conversation

@nickdemianchuk

Copy link
Copy Markdown
Owner

Removed apps and rulesets configuration from repos.tf.

Removed apps and rulesets configuration from repos.tf.
@github-actions

Copy link
Copy Markdown
Contributor

Terraform plan in . in the github-ops workspace

Plan: 0 to add, 0 to change, 4 to destroy.
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
-   destroy

Terraform will perform the following actions:

  # module.job_hunter.github_actions_secret.app_private_key["octo_buddy"] will be destroyed
  # (because key ["octo_buddy"] is not in for_each map)
-   resource "github_actions_secret" "app_private_key" {
-       created_at        = "2026-10-12 15:20:48 +0000 UTC" -> null
-       id                = "job-hunter:OCTO_BUDDY_PRIVATE_KEY" -> null
-       key_id            = "3380204578043523366" -> null
-       plaintext_value   = (sensitive value) -> null
-       remote_updated_at = "2026-10-12 15:20:48 +0000 UTC" -> null
-       repository        = "job-hunter" -> null
-       repository_id     = 1415777862 -> null
-       secret_name       = "OCTO_BUDDY_PRIVATE_KEY" -> null
-       updated_at        = "2026-10-12 15:20:48 +0000 UTC" -> null
    }

  # module.job_hunter.github_actions_variable.app_client_id["octo_buddy"] will be destroyed
  # (because key ["octo_buddy"] is not in for_each map)
-   resource "github_actions_variable" "app_client_id" {
-       created_at    = "2026-10-12 15:20:43 +0000 UTC" -> null
-       id            = "job-hunter:OCTO_BUDDY_CLIENT_ID" -> null
-       repository    = "job-hunter" -> null
-       repository_id = 1415777862 -> null
-       updated_at    = "2026-10-12 15:20:43 +0000 UTC" -> null
-       value         = "Iv23linVfoDqgbsPv65f" -> null
-       variable_name = "OCTO_BUDDY_CLIENT_ID" -> null
    }

  # module.job_hunter.github_repository_ruleset.this["Default branch"] will be destroyed
  # (because key ["Default branch"] is not in for_each map)
-   resource "github_repository_ruleset" "this" {
-       enforcement = "active" -> null
-       etag        = "W/\"52db0ab431e393424e77ff7dea6eff1ddb2916bc2aefa96e57760a22ffaa855e\"" -> null
-       id          = "24936499" -> null
-       name        = "Default branch" -> null
-       node_id     = "RRS_lACqUmVwb3NpdG9yec5UYw5GzgF8gDM" -> null
-       repository  = "job-hunter" -> null
-       ruleset_id  = 24936499 -> null
-       target      = "branch" -> null

-       bypass_actors {
-           actor_id    = 4944088 -> null
-           actor_type  = "Integration" -> null
-           bypass_mode = "always" -> null
        }

-       conditions {
-           ref_name {
-               exclude = [] -> null
-               include = [
-                   "~DEFAULT_BRANCH",
                ] -> null
            }
        }

-       rules {
-           creation                      = false -> null
-           deletion                      = true -> null
-           non_fast_forward              = true -> null
-           required_linear_history       = false -> null
-           required_signatures           = false -> null
-           update                        = false -> null
-           update_allows_fetch_and_merge = false -> null

-           required_status_checks {
-               do_not_enforce_on_create             = false -> null
-               strict_required_status_checks_policy = false -> null

-               required_check {
-                   context        = "lint-commits / validate-commit-messages" -> null
-                   integration_id = 0 -> null
                }
-               required_check {
-                   context        = "lint-pr / validate-pr-body" -> null
-                   integration_id = 0 -> null
                }
-               required_check {
-                   context        = "lint-pr / validate-pr-title" -> null
-                   integration_id = 0 -> null
                }
            }
        }
    }

  # module.job_hunter.github_repository_ruleset.this["Disable tag deletion"] will be destroyed
  # (because key ["Disable tag deletion"] is not in for_each map)
-   resource "github_repository_ruleset" "this" {
-       enforcement = "active" -> null
-       etag        = "\"56bd42aa7879646f4a16d5aac5d405eec829f299c26c6453a2ca3fd3ed9e28e2\"" -> null
-       id          = "24936163" -> null
-       name        = "Disable tag deletion" -> null
-       node_id     = "RRS_lACqUmVwb3NpdG9yec5UYw5GzgF8fuM" -> null
-       repository  = "job-hunter" -> null
-       ruleset_id  = 24936163 -> null
-       target      = "tag" -> null

-       conditions {
-           ref_name {
-               exclude = [] -> null
-               include = [
-                   "~ALL",
                ] -> null
            }
        }

-       rules {
-           creation                      = false -> null
-           deletion                      = true -> null
-           non_fast_forward              = false -> null
-           required_linear_history       = false -> null
-           required_signatures           = false -> null
-           update                        = false -> null
-           update_allows_fetch_and_merge = false -> null
        }
    }

Plan: 0 to add, 0 to change, 4 to destroy.

Warning: Argument is deprecated

  with module.actions.github_actions_secret.app_private_key["octo_buddy"],
  on modules/github-repo/actions.tf line 38, in resource "github_actions_secret" "app_private_key":
  38:   plaintext_value = each.value.private_key

Use value.

📝 Plan generated in ci #161

@nickdemianchuk
nickdemianchuk merged commit 18dfa0b into main Oct 15, 2026
9 checks passed
@nickdemianchuk
nickdemianchuk deleted the nickdemianchuk-patch-1 branch October 15, 2026 16:44
@octo-buddy

octo-buddy Bot commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.12.0 🎉

The release is available on GitHub release 📦🚀

@octo-buddy octo-buddy Bot added the released label Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant