From 9277bf44b94ca6973a67565b7502c53acc98fa50 Mon Sep 17 00:00:00 2001 From: Yevhenii Babichenko Date: Fri, 1 Nov 2024 18:24:40 +0200 Subject: [PATCH] ci: add a non-root user --- .github/workflows/tests.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ef5babd..a82f2bf 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -22,12 +22,15 @@ jobs: run: | pacman -Syu --noconfirm pacman -S --noconfirm rust openssh git + useradd -m -G wheel runner + echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers - name: Checkout uses: actions/checkout@v4 - name: Update AUR run: | + su runner -c ' VERSION=0.7.0 cargo xtask packaging $VERSION aur${{matrix.bin}} @@ -47,7 +50,7 @@ jobs: git config user.email "github-actions[bot]@users.noreply.github.com" git add PKGBUILD .SRCINFO git commit -m "chore: release $VERSION" - git push --dry-run origin master + git push --dry-run origin master' fmt: name: Code formatters