From 27055ff0d92b2ddcf53cbf2013a1bc6f377b44a6 Mon Sep 17 00:00:00 2001 From: Harald Sitter Date: Tue, 15 Oct 2024 06:42:19 +0200 Subject: [PATCH] try to restore git permissions It would appear that invent mangles files permissions so that we end up with world writable files. Instead try to hold on to git. This may ultimately cause trouble with docker but we'll have to try to know. Relates to #27 --- .gitlab-ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 21fceb3..af706f0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,6 +9,9 @@ start: allow_failure: false image: archlinux:latest script: + # invent.kde.org seems to mangle permissions, restore them so we have accurate permissions for configs and whatnot + # https://stackoverflow.com/questions/2517339/how-to-restore-the-permissions-of-files-and-directories-within-git-if-they-have + - git diff -p -R --no-ext-diff --no-color --diff-filter=M | grep -E "^(diff|(old|new) mode)" --color=never | git apply - ls -lahR - pacman --sync --refresh --noconfirm curl which - curl -s https://gitlab.com/gitlab-org/incubation-engineering/mobile-devops/download-secure-files/-/raw/main/installer | bash