build as non root user
This commit is contained in:
@@ -49,9 +49,13 @@ jobs:
|
|||||||
if: steps.compare.outputs.build == 'true'
|
if: steps.compare.outputs.build == 'true'
|
||||||
run: |
|
run: |
|
||||||
cd $GITHUB_WORKSPACE
|
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 }}
|
pkgctl build --pkgver=${{ steps.get_tag.outputs.latest_tag }}
|
||||||
|
|
||||||
- name: Upload Artefact
|
- name: Upload Artefact
|
||||||
|
if: steps.compare.outputs.build == 'true'
|
||||||
uses: christopherHX/gitea-upload-artifact@v4
|
uses: christopherHX/gitea-upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: '*.pkg.tar.zst'
|
path: '*.pkg.tar.zst'
|
||||||
|
|||||||
Reference in New Issue
Block a user