Skip to content

Commit 841fcad

Browse files
committed
[actions] run vagrant unprivileged
1 parent dded4e6 commit 841fcad

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ jobs:
4646
sudo apt-get update
4747
sudo apt-get install -y libvirt-daemon libvirt-daemon-system vagrant
4848
sudo systemctl enable --now libvirtd
49+
sudo usermod -aG libvirt ${USER}
4950
sudo apt-get build-dep -y vagrant ruby-libvirt
5051
sudo apt-get install -y --no-install-recommends libxslt-dev libxml2-dev libvirt-dev ruby-bundler ruby-dev zlib1g-dev
51-
sudo vagrant plugin install vagrant-libvirt
52-
- run: sudo PATH=$PIPX_BIN_DIR:$PATH vagrant up --no-tty
52+
vagrant plugin install vagrant-libvirt
53+
- run: sudo -E -u ${USER} PATH=$PIPX_BIN_DIR:$PATH vagrant up --no-tty

0 commit comments

Comments
 (0)