From 8f2f97bf4403a83eaa7ba97fb28309872524437d Mon Sep 17 00:00:00 2001 From: NWarila <33955773+NWarila@users.noreply.github.com> Date: Sat, 6 Jun 2026 17:00:53 +0000 Subject: [PATCH] ci(runner): revert the skip_refresh heal toggle (no longer needed) The phantom-state 404 was fixed directly by clearing 35 stale state entries for 5 out-of-band-deleted repos. The skip_refresh / -refresh=false toggle from #24 was ineffective (apply could not reconcile the already-gone resources), so the workflow returns to its plain plan/apply. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/terraform.yml | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index aa6b3fb..33b585f 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -2,16 +2,6 @@ name: 'Deploy GitHub Terraform' on: workflow_dispatch: - inputs: - skip_refresh: - description: >- - One-time heal only. Runs plan/apply with -refresh=false to clear - phantom state (repos deleted out-of-band that remain in state and make - the normal refresh 404). Skips drift detection for this run — use - solely to recover a plan that fails on 404 refresh errors, then return - to normal runs. - type: boolean - default: false push: branches: [main] paths: @@ -97,12 +87,7 @@ jobs: - name: 'Terraform Plan' working-directory: "${{ github.workspace }}/github-terraform-framework/terraform" run: | - REFRESH_FLAG="" - if [ "${{ github.event_name }}" = "workflow_dispatch" ] && [ "${{ inputs.skip_refresh }}" = "true" ]; then - REFRESH_FLAG="-refresh=false" - echo "::warning::Terraform Plan running with -refresh=false (one-time phantom-state heal); drift detection is skipped this run." - fi - terraform plan ${REFRESH_FLAG} -out=tfplan + terraform plan -out=tfplan terraform show -no-color tfplan > plan-output.txt - name: 'Archive Plan Output'