diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 7b7cf8a798160b96ff5ac94ce66de337d7ae196f..73e8edebe6dca47f118841ab05b42cb1cd833369 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -11,7 +11,7 @@ jobs:
         with:
           go-version: '1.20'
       - name: "Install libheif"
-        run: "./.github/workflows/build-libheif.sh"
+        run: "chmod +x ./.github/workflows/build-libheif.sh && ./.github/workflows/build-libheif.sh"
       - run: './build.sh' # verify the thing compiles
   static:
     name: 'Go Static (1.20)'
@@ -22,7 +22,7 @@ jobs:
         with:
           go-version: '1.20'
       - name: "Install libheif"
-        run: "./.github/workflows/build-libheif.sh"
+        run: "chmod +x ./.github/workflows/build-libheif.sh && ./.github/workflows/build-libheif.sh"
       - name: "Prepare: compile assets"
         run: "GOBIN=$PWD/bin go install -v ./cmd/compile_assets"
       - name: "Run: compile assets"