Files
secret/script/vault-setup.ps1
maze c00bca7ba5
Some checks failed
Test / tests (darwin-amd64) (push) Successful in 20s
Test / tests (linux-amd64) (push) Successful in 25s
Run Gosec / tests (push) Successful in 50s
Test / tests (linux-arm64) (push) Successful in 2m58s
Test / tests (windows-amd64) (push) Failing after 15s
Move scripts out of the workflow itself
2025-09-09 15:09:00 +02:00

8 lines
359 B
PowerShell
Executable File

# Populate our test secrets
Write-Output "🔐 Populating test secrets:"
& "./vault.exe" vault kv put "${{ vars.TEST_VAULT_KEY }}" data="${{ vars.TEST_VAULT_VALUE }}"
# Populate our test transit backend with key
Write-Output "🔐 Populating test transit backend:"
& "./vault.exe" vault secrets enable transit
& "./vault.exe" vault write -f transit/keys/test