diff --git a/.github/workflows/images_build.yml b/.github/workflows/images_build.yml
index f85f437cc..88bcf9cbf 100644
--- a/.github/workflows/images_build.yml
+++ b/.github/workflows/images_build.yml
@@ -265,7 +265,7 @@ jobs:
           cosign-release: 'v2.2.3'
 
       - name: Check cosign version
-        if: {{ env.AUTO_PUSH_IMAGES }}
+        if: env.AUTO_PUSH_IMAGES
         run: cosign version
 
       - name: Set up QEMU