build as non root user

This commit is contained in:
2026-04-25 11:14:37 +01:00
parent 4a6bdf8487
commit 5049a565cc
+4
View File
@@ -49,9 +49,13 @@ jobs:
if: steps.compare.outputs.build == 'true'
run: |
cd $GITHUB_WORKSPACE
useradd -m builder
echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
chown -R builder:builder .
pkgctl build --pkgver=${{ steps.get_tag.outputs.latest_tag }}
- name: Upload Artefact
if: steps.compare.outputs.build == 'true'
uses: christopherHX/gitea-upload-artifact@v4
with:
path: '*.pkg.tar.zst'