Skip to content

ci(tofu): Remove administrator settings#80

Closed
lens0021 wants to merge 2 commits intomainfrom
tf-2
Closed

ci(tofu): Remove administrator settings#80
lens0021 wants to merge 2 commits intomainfrom
tf-2

Conversation

@lens0021
Copy link
Owner

No description provided.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 26, 2026

OpenTofu Plan

github_repository.this: Preparing import... [id=setup-amber]
github_repository.this: Refreshing state... [id=setup-amber]
github_repository_ruleset.default: Preparing import... [id=setup-amber:10629749]
github_repository_ruleset.default: Refreshing state... [id=10629749]

OpenTofu used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  ~ update in-place (current -> planned)

OpenTofu will perform the following actions:

  # github_repository.this will be updated in-place
  # (imported from "setup-amber")
  ~ resource "github_repository" "this" {
      ~ allow_auto_merge                        = false -> true
        allow_forking                           = true
        allow_merge_commit                      = false
        allow_rebase_merge                      = false
      ~ allow_squash_merge                      = false -> true
      ~ allow_update_branch                     = false -> true
      + archive_on_destroy                      = true
        archived                                = false
        auto_init                               = false
        default_branch                          = "main"
      ~ delete_branch_on_merge                  = false -> true
        description                             = "Download amber compiler"
        etag                                    = "W/\"caa1e3b0d21c9c71946b1197bfe356cfcee28163797ae1c6a5f171dee11d80ee\""
        fork                                    = "false"
        full_name                               = "lens0021/setup-amber-action"
        git_clone_url                           = "git://github.com/lens0021/setup-amber-action.git"
        has_discussions                         = false
      - has_downloads                           = true -> null
        has_issues                              = true
        has_projects                            = false
        has_wiki                                = false
        html_url                                = "https://github.com/lens0021/setup-amber-action"
        http_clone_url                          = "https://github.com/lens0021/setup-amber-action.git"
        id                                      = "setup-amber"
      + ignore_vulnerability_alerts_during_read = false
        is_template                             = false
      + merge_commit_message                    = "PR_TITLE"
      + merge_commit_title                      = "MERGE_MESSAGE"
        name                                    = "setup-amber"
        node_id                                 = "R_kgDOQfjxKA"
        private                                 = false
        repo_id                                 = 1106833704
      + squash_merge_commit_message             = "BLANK"
      + squash_merge_commit_title               = "PR_TITLE"
        ssh_clone_url                           = "git@github.com:lens0021/setup-amber-action.git"
        svn_url                                 = "https://github.com/lens0021/setup-amber-action"
      ~ topics                                  = [
          + "amber",
        ]
        visibility                              = "public"
        web_commit_signoff_required             = false
    }

  # github_repository_ruleset.default will be updated in-place
  # (imported from "setup-amber:10629749")
  ~ resource "github_repository_ruleset" "default" {
        enforcement = "active"
        etag        = "W/\"15f8ce89681ffbf3a01eb73b45b40aa48f87056314636eedce91bd4b2f024db3\""
        id          = "10629749"
      ~ name        = "main" -> "default"
        node_id     = "RRS_lACqUmVwb3NpdG9yec5B-PEozgCiMnU"
      ~ repository  = "setup-amber-action" -> "setup-amber"
        ruleset_id  = 10629749
        target      = "branch"

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

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

            pull_request {
                allowed_merge_methods             = [
                    "squash",
                ]
                dismiss_stale_reviews_on_push     = false
                require_code_owner_review         = false
                require_last_push_approval        = false
                required_approving_review_count   = 0
                required_review_thread_resolution = false
            }

          ~ required_status_checks {
                do_not_enforce_on_create             = false
                strict_required_status_checks_policy = false

                required_check {
                    context        = "--> Linted: CHECKOV"
                    integration_id = 15368
                }
                required_check {
                    context        = "--> Linted: GITHUB_ACTIONS"
                    integration_id = 15368
                }
                required_check {
                    context        = "--> Linted: GITLEAKS"
                    integration_id = 15368
                }
                required_check {
                    context        = "--> Linted: GIT_MERGE_CONFLICT_MARKERS"
                    integration_id = 15368
                }
                required_check {
                    context        = "--> Linted: JSCPD"
                    integration_id = 15368
                }
              - required_check {
                  - context        = "--> Linted: JSON" -> null
                  - integration_id = 15368 -> null
                }
              - required_check {
                  - context        = "--> Linted: YAML" -> null
                  - integration_id = 15368 -> null
                }
                required_check {
                    context        = "Test with default settings (macos-latest)"
                    integration_id = 15368
                }
                required_check {
                    context        = "Test with default settings (ubuntu-latest)"
                    integration_id = 15368
                }
                required_check {
                    context        = "check-dist"
                    integration_id = 15368
                }
                required_check {
                    context        = "rumdl"
                    integration_id = 15368
                }
                required_check {
                    context        = "zizmor"
                    integration_id = 15368
                }
              + required_check {
                  + context        = "biome"
                  + integration_id = 15368
                }
            }
        }
    }

Plan: 2 to import, 0 to add, 2 to change, 0 to destroy.

─────────────────────────────────────────────────────────────────────────────

Note: You didn't use the -out option to save this plan, so OpenTofu can't
guarantee to take exactly these actions if you run "tofu apply" now.

Remove the apply job (GITHUB_TOKEN lacks administration scope) and
instead run plan on both PR and main push. On main push, use
-detailed-exitcode to detect drift and create/update/close a
GitHub issue titled "OpenTofu: apply needed" accordingly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@lens0021 lens0021 closed this Mar 1, 2026
@lens0021 lens0021 deleted the tf-2 branch March 1, 2026 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant