As gitlab-ci checks out with mode 666 we need to set permissions of the files we copied into the container to a secure value. Fixes #5956