From 6066287db7208fbe15bc9ae0fed26e5c32d82085 Mon Sep 17 00:00:00 2001 From: Clint Branham Date: Thu, 19 Mar 2026 12:23:32 -0500 Subject: [PATCH] fix(ci): use RUNNER_TEMP env var instead of runner.temp expression Inside a container job, ${{ runner.temp }} resolves to the host path (/opt/actions-runner/_work/_temp) which doesn't exist in the container. The RUNNER_TEMP environment variable is correctly set to the container- mapped path (/__w/_temp). Move all references to shell run: blocks where the env var expands properly. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/integration-tests.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index c0afe34..13c66e5 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -162,7 +162,7 @@ jobs: "${{ matrix.iso_base }}" \ ${RUNNER_TEMP}/answer.toml \ ${SCRIPTS_DIR}/first-boot.sh \ - "${{ runner.temp }}/${{ matrix.iso_filename }}" + "${RUNNER_TEMP}/${{ matrix.iso_filename }}" - name: Terraform init if: inputs.skip_provision != true @@ -179,11 +179,11 @@ jobs: TF_VAR_proxmox_endpoint: ${{ secrets.PVE_ENDPOINT }} TF_VAR_proxmox_api_token: ${{ secrets.PVE_API_TOKEN }} TF_VAR_target_node: ${{ secrets.PVE_TARGET_NODE }} - TF_VAR_iso_local_path: ${{ runner.temp }}/${{ matrix.iso_filename }} TF_VAR_test_vm_password: ${{ env.PVE_PASSWORD }} TF_VAR_vm_id: ${{ matrix.vm_id }} TF_VAR_vm_name: ${{ matrix.vm_name }} run: | + export TF_VAR_iso_local_path="${RUNNER_TEMP}/${{ matrix.iso_filename }}" terraform apply -auto-approve -input=false echo "vm_id=$(terraform output -raw pve_test_vm_id)" >> "$GITHUB_OUTPUT" @@ -286,10 +286,10 @@ jobs: PVETEST_APITOKEN: ${{ steps.target.outputs.token }} PVETEST_NODE: ${{ steps.target.outputs.node }} PVETEST_STORAGE: ${{ steps.target.outputs.storage }} - PVETEST_ISO_PATH: ${{ runner.temp }}/pvetest.iso PVETEST_PVE_VERSION: ${{ matrix.pve_version }} PVETEST_LINUX_VMID: ${{ steps.linux_vm.outputs.linux_vmid }} run: | + $env:PVETEST_ISO_PATH = Join-Path $env:RUNNER_TEMP "pvetest.iso" Import-Module Pester -MinimumVersion 5.0 $config = New-PesterConfiguration $config.Run.Path = "tests/PSProxmoxVE.Tests/Integration" @@ -317,11 +317,11 @@ jobs: TF_VAR_proxmox_endpoint: ${{ secrets.PVE_ENDPOINT }} TF_VAR_proxmox_api_token: ${{ secrets.PVE_API_TOKEN }} TF_VAR_target_node: ${{ secrets.PVE_TARGET_NODE }} - TF_VAR_iso_local_path: ${{ runner.temp }}/${{ matrix.iso_filename }} TF_VAR_test_vm_password: ${{ env.PVE_PASSWORD }} TF_VAR_vm_id: ${{ matrix.vm_id }} TF_VAR_vm_name: ${{ matrix.vm_name }} run: | + export TF_VAR_iso_local_path="${RUNNER_TEMP}/${{ matrix.iso_filename }}" terraform init -input=false terraform destroy -auto-approve -input=false || true rm -f terraform.tfstate terraform.tfstate.backup .terraform.tfstate.lock.info