Skip to content

Add GitHub Actions workflow to plan tofu changes on PRs - #54

Open
gonzolino wants to merge 3 commits into
mainfrom
tofu-plan
Open

gonzolino wants to merge 3 commits into
mainfrom
tofu-plan

Conversation

@gonzolino

Copy link
Copy Markdown
Contributor

Add a new workflow to plan tofu changes in the automation directory before they get merged.

This PR builds on the changes of #53.

@gonzolino
gonzolino requested a review from a team as a code owner September 18, 2026 13:08
@hardikdr hardikdr added this to Roadmap Sep 19, 2026
@github-actions

github-actions Bot commented Sep 21, 2026

Copy link
Copy Markdown

Plan: 🔄 Changes pending

Show plan
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_organization_ruleset.default_release will be updated in-place
  ~ resource "github_organization_ruleset" "default_release" {
        id          = "18719553"
        name        = "Protect default and release branches"
        # (5 unchanged attributes hidden)

      ~ rules {
            # (6 unchanged attributes hidden)

          ~ pull_request {
              ~ dismiss_stale_reviews_on_push     = false -> true
                # (5 unchanged attributes hidden)
            }

            # (3 unchanged blocks hidden)
        }

        # (1 unchanged block hidden)
    }

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

Workflow: 35621450577

@gonzolino
gonzolino force-pushed the tofu-plan branch 2 times, most recently from a3c4882 to 3366c74 Compare September 21, 2026 15:34
The workflow runs `tofu fmt -check` and `tofu validate` for basic testing.

Signed-off-by: Daniel Gonzalez Nothnagel <daniel.gonzalez.nothnagel@sap.com>
Run `tofu plan` on all PRs that affect the tofu config and attach the
plan to a comment in the PR.

Signed-off-by: Daniel Gonzalez Nothnagel <daniel.gonzalez.nothnagel@sap.com>
Signed-off-by: Daniel Gonzalez Nothnagel <daniel.gonzalez.nothnagel@sap.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants