ci: Pass secrets as environment variables to test step

This commit is contained in:
courtmanr@gmail.com
2025-04-30 16:23:10 +01:00
parent caf9313a0f
commit 3f74647fac
+8
View File
@@ -30,4 +30,12 @@ jobs:
run: npm ci # Use ci for faster, more reliable installs in CI
- name: Run tests
env: # Add environment variables from GitHub secrets
PROXMOX_HOST: ${{ secrets.PROXMOX_HOST }}
PROXMOX_TOKEN_ID: ${{ secrets.PROXMOX_TOKEN_ID }}
PROXMOX_TOKEN_SECRET: ${{ secrets.PROXMOX_TOKEN_SECRET }}
# Add other required primary variables here if needed, e.g.:
# PBS_HOST: ${{ secrets.PBS_HOST }}
# PBS_TOKEN_ID: ${{ secrets.PBS_TOKEN_ID }}
# PBS_TOKEN_SECRET: ${{ secrets.PBS_TOKEN_SECRET }}
run: npm test