Skip to content

Commit

Permalink
ci: add a non-root user
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene-babichenko committed Nov 1, 2024
1 parent 95b6f9c commit 9277bf4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand All @@ -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
Expand Down

0 comments on commit 9277bf4

Please sign in to comment.