Skip to content

Commit 492ef33

Browse files
authored
Merge pull request #11 from nrkno/vault-secret-fix
2 parents 74dd5fb + 12ceb5b commit 492ef33

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,4 @@ inputs:
7777

7878
runs:
7979
using: "docker"
80-
image: "docker://ghcr.io/nrkno/github-action-setenv:v2.0.0"
80+
image: "docker://ghcr.io/nrkno/github-action-setenv:v2.0.1"

setenv.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,9 @@ def azure_check_resource_group(tenant_id: str, subscription_id: str, resource_gr
355355
if args.vault_secret:
356356
status("Getting secrets from vault...")
357357
for vault_secret in args.vault_secret:
358-
if vault_secret == "None":
358+
if vault_secret == "None" or vault_secret == "":
359359
continue
360+
360361
path, key, var_name = vault_secret.split(':')
361362
if key == '*':
362363
status(f"Fetching all keys from secret at {path}...")

0 commit comments

Comments
 (0)