diff --git a/core/inputs.go b/core/inputs.go index 0de5586..b236022 100644 --- a/core/inputs.go +++ b/core/inputs.go @@ -435,16 +435,19 @@ func (n *Inputs) InputValueById(ec *ExecutionState, host NodeWithInputs, inputId if !inputDefExists { inputDef, inputDefExists = n.inputDefs[inputId] } - if inputDefExists && inputDef.Type == "option" { - switch c := finalValue.(type) { - case string: - finalValue = strings.Trim(c, " \n\r") - case int8, int16, int32, int64, int, uint8, uint16, uint32, uint64, uint: - nv := reflect.ValueOf(c).Int() - if len(inputDef.Options) > 0 && int(nv) >= len(inputDef.Options) { - return nil, CreateErr(ec, nil, "option value out of range: %v", nv) + if inputDefExists { + switch inputDef.Type { + case "option": + switch c := finalValue.(type) { + case string: + finalValue = strings.Trim(c, " \n\r") + case int8, int16, int32, int64, int, uint8, uint16, uint32, uint64, uint: + nv := reflect.ValueOf(c).Int() + if len(inputDef.Options) > 0 && int(nv) >= len(inputDef.Options) { + return nil, CreateErr(ec, nil, "option value out of range: %v", nv) + } + finalValue = inputDef.Options[nv].Value } - finalValue = inputDef.Options[nv].Value } } diff --git a/nodes/group@v1.go b/nodes/group@v1.go index fe93457..00d6397 100644 --- a/nodes/group@v1.go +++ b/nodes/group@v1.go @@ -20,9 +20,36 @@ type GroupNode struct { } func (n *GroupNode) OutputValueById(c *core.ExecutionState, outputId core.OutputId) (any, error) { - v, err := n.InputValueById(c, n, core.InputId(outputId), nil) - if err != nil { - return nil, err + + var ( + err error + v any + ) + + // Nodes are responsible for resolving secrets, so is the group node if the secret input name + // is coming from the group node itself. Like the other nodes, secrets are empty if not found. + _, connected := n.GetDataSource(core.InputId(outputId)) + if !connected { + inputDef, _, inputDefExists := n.Inputs.InputDefByPortId(string(outputId)) + if inputDefExists && inputDef.Type == "secret" { + v, err = core.InputValueById[core.SecretValue](c, n, core.InputId(outputId)) + if err != nil { + if strings.HasPrefix(err.Error(), "no secret found for") { + // empty secrets are ignored, similar to the core/secret-get node + // since the caller is responsible for checking the value + v = "" + } else { + return nil, err + } + } + } + } + + if v == nil { + v, err = n.InputValueById(c, n, core.InputId(outputId), nil) + if err != nil { + return nil, err + } } return v, nil diff --git a/tests_e2e/references/reference_error_no_output.sh_l8 b/tests_e2e/references/reference_error_no_output.sh_l8 index 6bfd8d1..0f0dd56 100644 --- a/tests_e2e/references/reference_error_no_output.sh_l8 +++ b/tests_e2e/references/reference_error_no_output.sh_l8 @@ -37,11 +37,11 @@ github.com/actionforge/actrun-cli/core.(*Outputs).OutputValueById github.com/actionforge/actrun-cli/core.(*Inputs).InputValueById inputs.go:364 github.com/actionforge/actrun-cli/core.inputValueById[...] - inputs.go:475 + inputs.go:478 github.com/actionforge/actrun-cli/core.InputValueFromSubInputs[...] - inputs.go:470 + inputs.go:473 github.com/actionforge/actrun-cli/core.InputArrayValueById[...] - inputs.go:552 + inputs.go:555 github.com/actionforge/actrun-cli/nodes.(*PrintNode).ExecuteImpl print@v1.go:27 github.com/actionforge/actrun-cli/core.(*Executions).Execute diff --git a/tests_e2e/references/reference_group-error.sh_l8 b/tests_e2e/references/reference_group-error.sh_l8 index dc9ef92..7ba32cf 100644 --- a/tests_e2e/references/reference_group-error.sh_l8 +++ b/tests_e2e/references/reference_group-error.sh_l8 @@ -138,7 +138,7 @@ github.com/actionforge/actrun-cli/nodes.(*GroupInputsNode).ExecuteImpl github.com/actionforge/actrun-cli/core.(*Executions).Execute executions.go:56 github.com/actionforge/actrun-cli/nodes.(*GroupNode).ExecuteImpl - group@v1.go:75 + group@v1.go:102 github.com/actionforge/actrun-cli/core.(*Executions).Execute executions.go:56 github.com/actionforge/actrun-cli/nodes.(*PrintNode).ExecuteImpl @@ -146,7 +146,7 @@ github.com/actionforge/actrun-cli/nodes.(*PrintNode).ExecuteImpl github.com/actionforge/actrun-cli/core.(*Executions).Execute executions.go:56 github.com/actionforge/actrun-cli/nodes.(*GroupNode).ExecuteImpl - group@v1.go:75 + group@v1.go:102 github.com/actionforge/actrun-cli/core.(*Executions).Execute executions.go:56 github.com/actionforge/actrun-cli/nodes.(*GroupOutputsNode).ExecuteImpl @@ -162,7 +162,7 @@ github.com/actionforge/actrun-cli/nodes.(*GroupInputsNode).ExecuteImpl github.com/actionforge/actrun-cli/core.(*Executions).Execute executions.go:56 github.com/actionforge/actrun-cli/nodes.(*GroupNode).ExecuteImpl - group@v1.go:75 + group@v1.go:102 github.com/actionforge/actrun-cli/core.(*Executions).Execute executions.go:56 github.com/actionforge/actrun-cli/nodes.(*PrintNode).ExecuteImpl @@ -170,7 +170,7 @@ github.com/actionforge/actrun-cli/nodes.(*PrintNode).ExecuteImpl github.com/actionforge/actrun-cli/core.(*Executions).Execute executions.go:56 github.com/actionforge/actrun-cli/nodes.(*GroupNode).ExecuteImpl - group@v1.go:75 + group@v1.go:102 github.com/actionforge/actrun-cli/core.(*Executions).Execute executions.go:56 github.com/actionforge/actrun-cli/nodes.(*GroupOutputsNode).ExecuteImpl @@ -178,7 +178,7 @@ github.com/actionforge/actrun-cli/nodes.(*GroupOutputsNode).ExecuteImpl github.com/actionforge/actrun-cli/core.(*Executions).Execute executions.go:56 github.com/actionforge/actrun-cli/nodes.(*GroupNode).ExecuteImpl - group@v1.go:75 + group@v1.go:102 github.com/actionforge/actrun-cli/core.(*Executions).Execute executions.go:56 github.com/actionforge/actrun-cli/nodes.(*GroupOutputsNode).ExecuteImpl @@ -194,7 +194,7 @@ github.com/actionforge/actrun-cli/nodes.(*GroupInputsNode).ExecuteImpl github.com/actionforge/actrun-cli/core.(*Executions).Execute executions.go:56 github.com/actionforge/actrun-cli/nodes.(*GroupNode).ExecuteImpl - group@v1.go:75 + group@v1.go:102 github.com/actionforge/actrun-cli/core.(*Executions).Execute executions.go:56 github.com/actionforge/actrun-cli/nodes.(*GroupInputsNode).ExecuteImpl @@ -202,7 +202,7 @@ github.com/actionforge/actrun-cli/nodes.(*GroupInputsNode).ExecuteImpl github.com/actionforge/actrun-cli/core.(*Executions).Execute executions.go:56 github.com/actionforge/actrun-cli/nodes.(*GroupNode).ExecuteImpl - group@v1.go:75 + group@v1.go:102 github.com/actionforge/actrun-cli/core.(*Executions).Execute executions.go:56 github.com/actionforge/actrun-cli/nodes.(*PrintNode).ExecuteImpl @@ -210,7 +210,7 @@ github.com/actionforge/actrun-cli/nodes.(*PrintNode).ExecuteImpl github.com/actionforge/actrun-cli/core.(*Executions).Execute executions.go:56 github.com/actionforge/actrun-cli/nodes.(*GroupNode).ExecuteImpl - group@v1.go:75 + group@v1.go:102 github.com/actionforge/actrun-cli/core.(*Executions).Execute executions.go:56 github.com/actionforge/actrun-cli/nodes.(*GroupOutputsNode).ExecuteImpl @@ -218,7 +218,7 @@ github.com/actionforge/actrun-cli/nodes.(*GroupOutputsNode).ExecuteImpl github.com/actionforge/actrun-cli/core.(*Executions).Execute executions.go:56 github.com/actionforge/actrun-cli/nodes.(*GroupNode).ExecuteImpl - group@v1.go:75 + group@v1.go:102 github.com/actionforge/actrun-cli/core.(*Executions).Execute executions.go:56 github.com/actionforge/actrun-cli/nodes.(*GroupOutputsNode).ExecuteImpl @@ -234,7 +234,7 @@ github.com/actionforge/actrun-cli/nodes.(*GroupInputsNode).ExecuteImpl github.com/actionforge/actrun-cli/core.(*Executions).Execute executions.go:56 github.com/actionforge/actrun-cli/nodes.(*GroupNode).ExecuteImpl - group@v1.go:75 + group@v1.go:102 github.com/actionforge/actrun-cli/core.(*Executions).Execute executions.go:56 github.com/actionforge/actrun-cli/nodes.(*GroupInputsNode).ExecuteImpl @@ -242,7 +242,7 @@ github.com/actionforge/actrun-cli/nodes.(*GroupInputsNode).ExecuteImpl github.com/actionforge/actrun-cli/core.(*Executions).Execute executions.go:56 github.com/actionforge/actrun-cli/nodes.(*GroupNode).ExecuteImpl - group@v1.go:75 + group@v1.go:102 github.com/actionforge/actrun-cli/core.(*Executions).Execute executions.go:56 github.com/actionforge/actrun-cli/nodes.(*StartNode).ExecuteImpl diff --git a/tests_e2e/references/reference_group-port-collision.sh_l13 b/tests_e2e/references/reference_group-port-collision.sh_l13 index 683482b..8ff5c4d 100644 --- a/tests_e2e/references/reference_group-port-collision.sh_l13 +++ b/tests_e2e/references/reference_group-port-collision.sh_l13 @@ -21,7 +21,7 @@ error: stack trace: github.com/actionforge/actrun-cli/nodes.init.39.func1 - group@v1.go:128 + group@v1.go:155 github.com/actionforge/actrun-cli/core.NewNodeInstance base.go:610 github.com/actionforge/actrun-cli/core.LoadNode diff --git a/tests_e2e/references/reference_index.sh_l20 b/tests_e2e/references/reference_index.sh_l20 index 8fe1af6..9e2f278 100644 --- a/tests_e2e/references/reference_index.sh_l20 +++ b/tests_e2e/references/reference_index.sh_l20 @@ -66,11 +66,11 @@ github.com/actionforge/actrun-cli/nodes.(*ArrayGet).OutputValueById github.com/actionforge/actrun-cli/core.(*Inputs).InputValueById inputs.go:364 github.com/actionforge/actrun-cli/core.inputValueById[...] - inputs.go:475 + inputs.go:478 github.com/actionforge/actrun-cli/core.InputValueFromSubInputs[...] - inputs.go:470 + inputs.go:473 github.com/actionforge/actrun-cli/core.InputArrayValueById[...] - inputs.go:552 + inputs.go:555 github.com/actionforge/actrun-cli/nodes.(*PrintNode).ExecuteImpl print@v1.go:27 github.com/actionforge/actrun-cli/core.(*Executions).Execute diff --git a/tests_e2e/references/reference_secret.sh_l12 b/tests_e2e/references/reference_secret.sh_l12 index b677c21..003cde3 100644 --- a/tests_e2e/references/reference_secret.sh_l12 +++ b/tests_e2e/references/reference_secret.sh_l12 @@ -21,3 +21,30 @@ PushNodeVisit: secret-v1-orange-blueberry-red, execute: false PushNodeVisit: core-secret-get-v1-duck-starfruit-silver, execute: false THIS_IS_A_SECRET_FROM_BASH THIS_IS_A_SECRET_2_FROM_BASH +🟢 Execute 'Print (core-print-v1-plum-pink-green)' +PushNodeVisit: core-print-v1-plum-pink-green, execute: true +PushNodeVisit: core-secret-get-v1-navy-coconut-black, execute: false + +🟢 Execute 'Set Secret (core-secret-set-v1-purple-strawberry-parrot)' +PushNodeVisit: core-secret-set-v1-purple-strawberry-parrot, execute: true +🟢 Execute 'Print (core-print-v1-dragonfruit-hippopotamus-blackberry)' +PushNodeVisit: core-print-v1-dragonfruit-hippopotamus-blackberry, execute: true +PushNodeVisit: core-secret-get-v1-pineapple-navy-maroon, execute: false +my-set-secret +🟢 Execute 'Group (core-group-v1-sheep-papaya-date)' +PushNodeVisit: core-group-v1-sheep-papaya-date, execute: true +🟢 Execute 'Group Inputs (core-group-inputs-v1-goose-boysenberry-pineapple)' +PushNodeVisit: core-group-inputs-v1-goose-boysenberry-pineapple, execute: true +🟢 Execute 'Print (core-print-v1-snake-green-turquoise)' +PushNodeVisit: core-print-v1-snake-green-turquoise, execute: true +PushNodeVisit: core-group-inputs-v1-goose-boysenberry-pineapple, execute: false +PushNodeVisit: core-group-v1-sheep-papaya-date, execute: false +PushNodeVisit: core-secret-get-v1-pineapple-navy-maroon, execute: false +PushNodeVisit: core-group-inputs-v1-goose-boysenberry-pineapple, execute: false +PushNodeVisit: core-group-v1-sheep-papaya-date, execute: false +my-set-secret +{my-set-secret} +🟢 Execute 'Group Output (core-group-outputs-v1-parrot-purple-shark)' +PushNodeVisit: core-group-outputs-v1-parrot-purple-shark, execute: true +🟢 Execute 'Group (core-group-v1-sheep-papaya-date)' +PushNodeVisit: core-group-v1-sheep-papaya-date, execute: true diff --git a/tests_e2e/references/reference_secret.sh_l17 b/tests_e2e/references/reference_secret.sh_l17 index 054771a..edcbecf 100644 --- a/tests_e2e/references/reference_secret.sh_l17 +++ b/tests_e2e/references/reference_secret.sh_l17 @@ -21,3 +21,30 @@ PushNodeVisit: secret-v1-orange-blueberry-red, execute: false PushNodeVisit: core-secret-get-v1-duck-starfruit-silver, execute: false THIS_IS_ANOTHER_SECRET_FROM_BASH THIS_IS_ANOTHER_SECRET_2_FROM_BASH +🟢 Execute 'Print (core-print-v1-plum-pink-green)' +PushNodeVisit: core-print-v1-plum-pink-green, execute: true +PushNodeVisit: core-secret-get-v1-navy-coconut-black, execute: false + +🟢 Execute 'Set Secret (core-secret-set-v1-purple-strawberry-parrot)' +PushNodeVisit: core-secret-set-v1-purple-strawberry-parrot, execute: true +🟢 Execute 'Print (core-print-v1-dragonfruit-hippopotamus-blackberry)' +PushNodeVisit: core-print-v1-dragonfruit-hippopotamus-blackberry, execute: true +PushNodeVisit: core-secret-get-v1-pineapple-navy-maroon, execute: false +my-set-secret +🟢 Execute 'Group (core-group-v1-sheep-papaya-date)' +PushNodeVisit: core-group-v1-sheep-papaya-date, execute: true +🟢 Execute 'Group Inputs (core-group-inputs-v1-goose-boysenberry-pineapple)' +PushNodeVisit: core-group-inputs-v1-goose-boysenberry-pineapple, execute: true +🟢 Execute 'Print (core-print-v1-snake-green-turquoise)' +PushNodeVisit: core-print-v1-snake-green-turquoise, execute: true +PushNodeVisit: core-group-inputs-v1-goose-boysenberry-pineapple, execute: false +PushNodeVisit: core-group-v1-sheep-papaya-date, execute: false +PushNodeVisit: core-secret-get-v1-pineapple-navy-maroon, execute: false +PushNodeVisit: core-group-inputs-v1-goose-boysenberry-pineapple, execute: false +PushNodeVisit: core-group-v1-sheep-papaya-date, execute: false +my-set-secret +{my-set-secret} +🟢 Execute 'Group Output (core-group-outputs-v1-parrot-purple-shark)' +PushNodeVisit: core-group-outputs-v1-parrot-purple-shark, execute: true +🟢 Execute 'Group (core-group-v1-sheep-papaya-date)' +PushNodeVisit: core-group-v1-sheep-papaya-date, execute: true diff --git a/tests_e2e/references/reference_secret.sh_l21 b/tests_e2e/references/reference_secret.sh_l21 index 649f845..6a4545b 100644 --- a/tests_e2e/references/reference_secret.sh_l21 +++ b/tests_e2e/references/reference_secret.sh_l21 @@ -22,3 +22,30 @@ PushNodeVisit: secret-v1-orange-blueberry-red, execute: false PushNodeVisit: core-secret-get-v1-duck-starfruit-silver, execute: false THIS_IS_API_KEY_123_FROM_SECRET_ACTCONFIG ALIAS_FROM_SECRET_ACTCONFIG +🟢 Execute 'Print (core-print-v1-plum-pink-green)' +PushNodeVisit: core-print-v1-plum-pink-green, execute: true +PushNodeVisit: core-secret-get-v1-navy-coconut-black, execute: false + +🟢 Execute 'Set Secret (core-secret-set-v1-purple-strawberry-parrot)' +PushNodeVisit: core-secret-set-v1-purple-strawberry-parrot, execute: true +🟢 Execute 'Print (core-print-v1-dragonfruit-hippopotamus-blackberry)' +PushNodeVisit: core-print-v1-dragonfruit-hippopotamus-blackberry, execute: true +PushNodeVisit: core-secret-get-v1-pineapple-navy-maroon, execute: false +my-set-secret +🟢 Execute 'Group (core-group-v1-sheep-papaya-date)' +PushNodeVisit: core-group-v1-sheep-papaya-date, execute: true +🟢 Execute 'Group Inputs (core-group-inputs-v1-goose-boysenberry-pineapple)' +PushNodeVisit: core-group-inputs-v1-goose-boysenberry-pineapple, execute: true +🟢 Execute 'Print (core-print-v1-snake-green-turquoise)' +PushNodeVisit: core-print-v1-snake-green-turquoise, execute: true +PushNodeVisit: core-group-inputs-v1-goose-boysenberry-pineapple, execute: false +PushNodeVisit: core-group-v1-sheep-papaya-date, execute: false +PushNodeVisit: core-secret-get-v1-pineapple-navy-maroon, execute: false +PushNodeVisit: core-group-inputs-v1-goose-boysenberry-pineapple, execute: false +PushNodeVisit: core-group-v1-sheep-papaya-date, execute: false +my-set-secret +{my-set-secret} +🟢 Execute 'Group Output (core-group-outputs-v1-parrot-purple-shark)' +PushNodeVisit: core-group-outputs-v1-parrot-purple-shark, execute: true +🟢 Execute 'Group (core-group-v1-sheep-papaya-date)' +PushNodeVisit: core-group-v1-sheep-papaya-date, execute: true diff --git a/tests_e2e/references/reference_select-data.sh_l9 b/tests_e2e/references/reference_select-data.sh_l9 index 4d670c6..2f85e52 100644 --- a/tests_e2e/references/reference_select-data.sh_l9 +++ b/tests_e2e/references/reference_select-data.sh_l9 @@ -73,11 +73,11 @@ github.com/actionforge/actrun-cli/nodes.(*SelectDataNode).OutputValueById github.com/actionforge/actrun-cli/core.(*Inputs).InputValueById inputs.go:364 github.com/actionforge/actrun-cli/core.inputValueById[...] - inputs.go:475 + inputs.go:478 github.com/actionforge/actrun-cli/core.InputValueFromSubInputs[...] - inputs.go:470 + inputs.go:473 github.com/actionforge/actrun-cli/core.InputArrayValueById[...] - inputs.go:552 + inputs.go:555 github.com/actionforge/actrun-cli/nodes.(*PrintNode).ExecuteImpl print@v1.go:27 github.com/actionforge/actrun-cli/core.(*Executions).Execute diff --git a/tests_e2e/references/reference_string-transform.sh_l61 b/tests_e2e/references/reference_string-transform.sh_l61 index 7e4bbaa..78959f5 100644 --- a/tests_e2e/references/reference_string-transform.sh_l61 +++ b/tests_e2e/references/reference_string-transform.sh_l61 @@ -37,11 +37,11 @@ github.com/actionforge/actrun-cli/nodes.(*StringTransform).OutputValueById github.com/actionforge/actrun-cli/core.(*Inputs).InputValueById inputs.go:364 github.com/actionforge/actrun-cli/core.inputValueById[...] - inputs.go:475 + inputs.go:478 github.com/actionforge/actrun-cli/core.InputValueFromSubInputs[...] - inputs.go:470 + inputs.go:473 github.com/actionforge/actrun-cli/core.InputArrayValueById[...] - inputs.go:552 + inputs.go:555 github.com/actionforge/actrun-cli/nodes.(*PrintNode).ExecuteImpl print@v1.go:27 github.com/actionforge/actrun-cli/core.(*Executions).Execute diff --git a/tests_e2e/scripts/secret.act b/tests_e2e/scripts/secret.act index 9ef9126..76b55c8 100644 --- a/tests_e2e/scripts/secret.act +++ b/tests_e2e/scripts/secret.act @@ -3,13 +3,13 @@ nodes: - id: start type: core/start@v1 position: - x: 160 - y: 190 + x: 60 + y: 20 - id: run-v1-butterfly-gray-shark type: core/run@v1 position: - x: 880 - y: 100 + x: 710 + y: 10 inputs: shell: python script: |- @@ -19,8 +19,8 @@ nodes: - id: secret-v1-orange-blueberry-red type: core/secret-get@v1 position: - x: -70 - y: 580 + x: -10 + y: 240 inputs: name: API_KEY_123 prefix: FOO= @@ -29,21 +29,136 @@ nodes: - id: env-array-v1-lemon-grape-lion type: core/env-array@v1 position: - x: 370 - y: 570 + x: 380 + y: 310 inputs: env[0]: '' env[1]: '' - id: core-secret-get-v1-duck-starfruit-silver type: core/secret-get@v1 position: - x: -60 - y: 820 + x: -20 + y: 530 inputs: name: API_KEY_ALIAS prefix: FOO_ALIAS= label: '' comment: old core/secret@v1 + - id: core-secret-set-v1-purple-strawberry-parrot + type: core/secret-set@v1 + position: + x: 2110 + y: 150 + inputs: + value: my-set-secret + name: MY_SET_SECRET + - id: core-print-v1-plum-pink-green + type: core/print@v1 + position: + x: 1870 + y: 140 + inputs: + values[0]: null + - id: core-secret-get-v1-navy-coconut-black + type: core/secret-get@v1 + position: + x: 1500 + y: 280 + inputs: + name: SECRET_DOESNT_EXIST + prefix: SHOULD_BE_EMPTY= + - id: core-group-v1-sheep-papaya-date + type: core/group@v1 + position: + x: 2710 + y: 250 + inputs: + secret2: MY_SET_SECRET + graph: + entry: core-group-inputs-v1-goose-boysenberry-pineapple + type: group + nodes: + - id: core-group-inputs-v1-goose-boysenberry-pineapple + type: core/group-inputs@v1 + position: + x: -240 + y: 110 + - id: core-group-outputs-v1-parrot-purple-shark + type: core/group-outputs@v1 + position: + x: 530 + y: 110 + - id: core-print-v1-snake-green-turquoise + type: core/print@v1 + position: + x: 210 + y: 50 + inputs: + values[0]: null + values[1]: null + color: fg_red + connections: + - src: + node: core-group-inputs-v1-goose-boysenberry-pineapple + port: secret1 + dst: + node: core-print-v1-snake-green-turquoise + port: values[0] + - src: + node: core-group-inputs-v1-goose-boysenberry-pineapple + port: secret2 + dst: + node: core-print-v1-snake-green-turquoise + port: values[1] + executions: + - src: + node: core-group-inputs-v1-goose-boysenberry-pineapple + port: exec-cow-monkey-monkey + dst: + node: core-print-v1-snake-green-turquoise + port: exec + - src: + node: core-print-v1-snake-green-turquoise + port: exec + dst: + node: core-group-outputs-v1-parrot-purple-shark + port: exec-jackfruit-chicken-pomegranate + inputs: + exec-cow-monkey-monkey: + name: '' + type: '' + index: 0 + exec: true + required: true + secret1: + name: Secret 1 + type: secret + index: 1 + secret2: + name: Secret 2 + type: secret + index: 2 + outputs: + exec-jackfruit-chicken-pomegranate: + name: '' + type: '' + index: 0 + exec: true + - id: core-secret-get-v1-pineapple-navy-maroon + type: core/secret-get@v1 + position: + x: 2090 + y: 340 + inputs: + name: MY_SET_SECRET + - id: core-print-v1-dragonfruit-hippopotamus-blackberry + type: core/print@v1 + position: + x: 2470 + y: 170 + inputs: + color: fg_green + values[0]: null connections: - src: node: env-array-v1-lemon-grape-lion @@ -63,6 +178,24 @@ connections: dst: node: env-array-v1-lemon-grape-lion port: env[1] + - src: + node: core-secret-get-v1-navy-coconut-black + port: secret + dst: + node: core-print-v1-plum-pink-green + port: values[0] + - src: + node: core-secret-get-v1-pineapple-navy-maroon + port: secret + dst: + node: core-group-v1-sheep-papaya-date + port: secret1 + - src: + node: core-secret-get-v1-pineapple-navy-maroon + port: secret + dst: + node: core-print-v1-dragonfruit-hippopotamus-blackberry + port: values[0] executions: - src: node: start @@ -70,3 +203,27 @@ executions: dst: node: run-v1-butterfly-gray-shark port: exec + - src: + node: core-print-v1-plum-pink-green + port: exec + dst: + node: core-secret-set-v1-purple-strawberry-parrot + port: exec + - src: + node: core-secret-set-v1-purple-strawberry-parrot + port: exec-success + dst: + node: core-print-v1-dragonfruit-hippopotamus-blackberry + port: exec + - src: + node: core-print-v1-dragonfruit-hippopotamus-blackberry + port: exec + dst: + node: core-group-v1-sheep-papaya-date + port: exec-cow-monkey-monkey + - src: + node: run-v1-butterfly-gray-shark + port: exec-success + dst: + node: core-print-v1-plum-pink-green + port: exec