From bd5814472ffe523edbfb22d21747306e2b2ec371 Mon Sep 17 00:00:00 2001 From: Clint Branham Date: Wed, 18 Mar 2026 13:06:39 -0500 Subject: [PATCH] fix(ci): update integration workflow for PVE 9 and self-hosted runner - Connectivity check: pass API token and check /nodes instead of /version (PVE 9 requires authentication for all API endpoints including /version) - Runner labels updated to proxmox,integration externally - PVETEST secrets configured for integration test target Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/integration-tests.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 653f15f..3220872 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -69,9 +69,12 @@ jobs: env: PVETEST_HOST: ${{ inputs.pve_host || secrets.PVETEST_HOST }} PVETEST_PORT: ${{ secrets.PVETEST_PORT || '8006' }} + PVETEST_APITOKEN: ${{ secrets.PVETEST_APITOKEN }} run: | echo "Testing connectivity to PVE API at ${PVETEST_HOST}:${PVETEST_PORT}..." - if curl -sk --connect-timeout 10 "https://${PVETEST_HOST}:${PVETEST_PORT}/api2/json/version" | grep -q '"version"'; then + if curl -sk --connect-timeout 10 \ + -H "Authorization: PVEAPIToken=${PVETEST_APITOKEN}" \ + "https://${PVETEST_HOST}:${PVETEST_PORT}/api2/json/nodes" | grep -q '"node"'; then echo "PVE API is responsive" else echo "::error::Cannot reach PVE API at ${PVETEST_HOST}:${PVETEST_PORT}"