summaryrefslogtreecommitdiffstats
path: root/pkg/runner/testdata/secrets
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/runner/testdata/secrets')
-rw-r--r--pkg/runner/testdata/secrets/.actrc2
-rw-r--r--pkg/runner/testdata/secrets/.env2
-rw-r--r--pkg/runner/testdata/secrets/.secrets3
-rw-r--r--pkg/runner/testdata/secrets/push.yml17
4 files changed, 24 insertions, 0 deletions
diff --git a/pkg/runner/testdata/secrets/.actrc b/pkg/runner/testdata/secrets/.actrc
new file mode 100644
index 0000000..98e7f40
--- /dev/null
+++ b/pkg/runner/testdata/secrets/.actrc
@@ -0,0 +1,2 @@
+-W .
+--secret-file .secrets
diff --git a/pkg/runner/testdata/secrets/.env b/pkg/runner/testdata/secrets/.env
new file mode 100644
index 0000000..3b66cf2
--- /dev/null
+++ b/pkg/runner/testdata/secrets/.env
@@ -0,0 +1,2 @@
+HELLO=WORLD
+MULTILINE_ENV="foo\nbar\nbaz"
diff --git a/pkg/runner/testdata/secrets/.secrets b/pkg/runner/testdata/secrets/.secrets
new file mode 100644
index 0000000..6c5b217
--- /dev/null
+++ b/pkg/runner/testdata/secrets/.secrets
@@ -0,0 +1,3 @@
+MY_SECRET=top-secret
+MULTILINE_SECRET="foo\nbar\nbaz"
+JSON_SECRET={"foo": "bar"}
diff --git a/pkg/runner/testdata/secrets/push.yml b/pkg/runner/testdata/secrets/push.yml
new file mode 100644
index 0000000..e916197
--- /dev/null
+++ b/pkg/runner/testdata/secrets/push.yml
@@ -0,0 +1,17 @@
+name: basic
+on: push
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - run: |
+ echo '${{secrets.MY_SECRET}}' | grep 'top-secret'
+ - run: |
+ echo "${{secrets.MULTILINE_SECRET}}" | wc -l | grep 3
+ - run: |
+ echo '${{secrets.JSON_SECRET}}' | grep "{\"foo\": \"bar\"}"
+ - run: |
+ echo '${{env.HELLO}}' | grep "WORLD"
+ - run: |
+ echo "${{env.MULTILINE_ENV}}" | wc -l | grep 3