fix(e2e): drop the job-level runner.temp and pin the tenant kubeconfig handling

jobs.e2e.env set COZY_PROXMOX_WORKDIR from runner.temp, but the runner
context is not available in job-level env, so GitHub would refuse the
whole workflow at load time and the Proxmox lane would stop starting.
actionlint reports it as `context "runner" is not allowed here`.

Drop the variable. run-proxmox.sh already falls back to RUNNER_TEMP,
which the runner exports into every step, and the cleanup step removes
the file from there.

Pin the behaviour the previous commit added, none of which a test
covered: the fetched kubeconfig carries no group or other bits under
umask 022, apply-tenant removes a file an earlier run left, and the
suite's finally removes the file on the keep_tenant path, so diagnostics
after it prints no tenant section. Each case goes red with its line
removed.

Signed-off-by: Marian Koreniuk <moriarti@cp.if.ua>
Assisted-by: LLM
(cherry picked from commit 3d97e912b4)
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
This commit is contained in:
Marian Koreniuk authored and Myasnikov Daniil committed 2026-11-10 12:40:53 +00:00
1 parent 2af6053079
commit 77227c55e9
3 files changed
+69 -11

No files matched your search

+5 -8
View File
@@ -49,11 +49,6 @@ jobs:
COZY_PVE_SSH: ${{ vars.PROXMOX_SSH }}
COZY_PVE_SSH_KEY: ${{ github.workspace }}/.ssh-pve
COZY_KEEP_TENANT: ${{ inputs.keep_tenant == true }}
# Where run-proxmox.sh keeps the tenant's super-admin kubeconfig for the
# run. runner.temp is emptied by the runner between jobs, and the cleanup
# step below removes the file as well; see the script for why neither is
# left to /tmp.
COZY_PROXMOX_WORKDIR: ${{ runner.temp }}
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
@@ -162,6 +157,8 @@ jobs:
- name: Remove staged credentials
if: always()
# The tenant kubeconfig is the suite's, fetched by run-proxmox.sh; its
# finally removes it too, but a run killed mid-step never reaches that.
run: rm -f "$GITHUB_WORKSPACE/.kubeconfig" "$COZY_PVE_SSH_KEY" "$COZY_PROXMOX_WORKDIR/proxmox-e2e-tenant.kubeconfig"
# The tenant kubeconfig is the suite's, fetched by run-proxmox.sh into
# RUNNER_TEMP, which the runner exports into every step (the runner
# context is not allowed in job-level env); its finally removes it too,
# but a run killed mid-step never reaches that.
run: rm -f "$GITHUB_WORKSPACE/.kubeconfig" "$COZY_PVE_SSH_KEY" "$RUNNER_TEMP/proxmox-e2e-tenant.kubeconfig"