From bbeccdc76d27a1322b286262dcf6a1313251a90a Mon Sep 17 00:00:00 2001 From: ChristophShyper <45788587+ChristophShyper@users.noreply.github.com> Date: Sun, 24 May 2026 22:47:43 +0200 Subject: [PATCH] fix: add force_with_lease option and disable write checks in HCL formatting actions --- .github/workflows/e2e-action-commit-push.yml | 1 + .github/workflows/e2e-action-format-hcl.yml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/e2e-action-commit-push.yml b/.github/workflows/e2e-action-commit-push.yml index 1f26f4f..c9e1477 100644 --- a/.github/workflows/e2e-action-commit-push.yml +++ b/.github/workflows/e2e-action-commit-push.yml @@ -319,6 +319,7 @@ jobs: target_branch: test/e2e-commit-push-reset-${{ github.run_id }} base_branch: test/e2e-commit-push-base-${{ github.run_id }} reset_target_branch: "true" + force_with_lease: "true" - name: Reset via docker image (preview) if: ${{ inputs.mode == 'image' }} diff --git a/.github/workflows/e2e-action-format-hcl.yml b/.github/workflows/e2e-action-format-hcl.yml index 535d9ee..dd505a0 100644 --- a/.github/workflows/e2e-action-format-hcl.yml +++ b/.github/workflows/e2e-action-format-hcl.yml @@ -92,6 +92,7 @@ jobs: uses: devops-infra/action-format-hcl@v1 with: check: "true" + write: "false" dir: tests/e2e-hcl-clean - name: Check via docker image (preview) @@ -106,6 +107,7 @@ jobs: docker pull "${ACTION_IMAGE}" docker run --rm \ -e INPUT_CHECK=true \ + -e INPUT_WRITE=false \ -e INPUT_DIR=tests/e2e-hcl-clean \ -v "$PWD:/github/workspace" \ -w /github/workspace \ @@ -192,6 +194,7 @@ jobs: continue-on-error: true with: check: "true" + write: "false" dir: tests/e2e-hcl-malformed - name: Check malformed files via docker image - expected to fail @@ -207,6 +210,7 @@ jobs: set +e docker run --rm \ -e INPUT_CHECK=true \ + -e INPUT_WRITE=false \ -e INPUT_DIR=tests/e2e-hcl-malformed \ -v "$PWD:/github/workspace" \ -w /github/workspace \