← harnesscd-example-apps

Create secret-sanitization.yaml

3db8bf9f2355d42c2e3e41c73db6e66757030eae · Pravin M · Jul 18, 2023 18:03

+30 · 1 file changed

  • secrets/secret-sanitization.yaml +30 −0
diff --git a/secrets/secret-sanitization.yaml b/secrets/secret-sanitization.yaml
new file mode 100644
index 0000000..14b1763
--- /dev/null
+++ b/secrets/secret-sanitization.yaml
@@ -0,0 +1,30 @@
+pipeline:
+  name: Print secret
+  identifier: Print_secret
+  projectIdentifier: default_project
+  orgIdentifier: default
+  tags: {}
+  stages:
+    - stage:
+        name: print secret
+        identifier: print_secret
+        description: ""
+        type: Custom
+        spec:
+          execution:
+            steps:
+              - step:
+                  type: ShellScript
+                  name: ShellScript_1
+                  identifier: ShellScript_1
+                  spec:
+                    shell: Bash
+                    onDelegate: true
+                    source:
+                      type: Inline
+                      spec:
+                        script: "echo \"text secret is: \" <+secrets.getValue(\"docsecret\")>"
+                    environmentVariables: []
+                    outputVariables: []
+                  timeout: 10m
+        tags: {}