From 6150b55bdccfbb613fa33cc2fd0cbbc355d26c2b Mon Sep 17 00:00:00 2001 From: xnoto Date: Wed, 29 Apr 2026 15:32:18 -0600 Subject: [PATCH] fix(ci): skip no-commit-to-branch in CI The pre-commit hook is meant to block direct git commits to main during interactive use; on a push event in CI the commits already exist on main and the hook reports a false positive that blocks the post-merge image build/push to ghcr. Same pattern shared-workflows/opentofu.yml uses. --- .github/workflows/buildah.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/buildah.yml b/.github/workflows/buildah.yml index 7d8f16a..da6507a 100644 --- a/.github/workflows/buildah.yml +++ b/.github/workflows/buildah.yml @@ -78,6 +78,8 @@ jobs: - name: Run pre-commit uses: pre-commit/action@v3.0.1 + env: + SKIP: no-commit-to-branch - name: Build image uses: redhat-actions/buildah-build@v2