Skip to content

Commit 49ec8e2

Browse files
feat: add support for ignoring missing secrets to get-vault-secrets action (#1236)
* add support for ignoring missing secrets * lint
1 parent 185000d commit 49ec8e2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

actions/get-vault-secrets/action.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ inputs:
3232
Whether to export secrets as environment variables, making them available to all subsequent steps. Defaults to `true`.
3333
default: "true"
3434

35+
ignore_missing:
36+
description: |
37+
When set to true, prevents the action from failing when a secret does not exist.
38+
default: "false"
39+
3540
outputs:
3641
secrets:
3742
description: "JSON object containing all the secrets"
@@ -119,3 +124,4 @@ runs:
119124
secrets: |
120125
${{ steps.translate-secrets.outputs.secrets }}
121126
exportEnv: ${{ inputs.export_env }}
127+
ignoreNotFound: ${{ inputs.ignore_missing }}

0 commit comments

Comments
 (0)