fix(ci): install libguestfs-tools on nested PVE and mask test password

- prepare-test-vm.sh: install libguestfs-tools if not present on the
  fresh nested PVE before running virt-customize
- Mask PVE_PASSWORD in logs via ::add-mask:: to prevent leaking

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Clint Branham
2026-03-19 12:46:21 -05:00
parent d6aa5274d4
commit c4a1abf5b1
2 changed files with 10 additions and 1 deletions
+3
View File
@@ -119,6 +119,9 @@ jobs:
vm_name: pve-test-pve8
steps:
- name: Mask test password
run: echo "::add-mask::${PVE_PASSWORD}"
- uses: actions/checkout@v5
- name: Download module artifact
@@ -29,11 +29,17 @@ echo "Downloading and customizing Debian cloud image on nested PVE..."
${SSH_CMD} bash <<REMOTE
set -e
# Ensure libguestfs-tools is available (not installed by default on fresh PVE)
if ! command -v virt-customize &>/dev/null; then
echo "Installing libguestfs-tools..."
apt-get update -qq && apt-get install -y -qq libguestfs-tools
fi
# Download the cloud image
echo "Downloading Debian cloud image..."
curl -sL -o /tmp/debian-cloud.qcow2 "${CLOUD_IMAGE_URL}"
# Install qemu-guest-agent into the image using PVE's built-in libguestfs
# Install qemu-guest-agent into the image
echo "Installing qemu-guest-agent into image..."
virt-customize -a /tmp/debian-cloud.qcow2 \
--install qemu-guest-agent \