From 73165b9558b6ee3e99439f95389539ad5d0fc270 Mon Sep 17 00:00:00 2001
From: Brad Davidson <brad.davidson@rancher.com>
Date: Thu, 26 Sep 2024 00:47:03 +0000
Subject: [PATCH] Fix artifact permissions

Passing the binary artifacts through the GH artifact zip files strips their permissions; we need to make them executable before building the final image.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
---
 .github/workflows/release.yaml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index 20a27a6..796df96 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -130,6 +130,9 @@ jobs:
           pattern: artifacts-*
           merge-multiple: true
 
+      - name: Fix artifact permissions
+        run: chmod 0755 dist/artifacts/system-upgrade-controller-*
+
       - name: Build container image
         uses: docker/build-push-action@v6
         with:
-- 
GitLab