From e5605de996dd15fb2338bc305de93163d16c9391 Mon Sep 17 00:00:00 2001 From: JM Faircloth Date: Wed, 5 Jul 2023 12:30:19 -0500 Subject: [PATCH] fix lint and pass token to build --- .github/workflows/actionlint.yaml | 5 ++++- .github/workflows/build.yml | 4 ++-- scripts/parse.js | 3 +++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/actionlint.yaml b/.github/workflows/actionlint.yaml index ee79a64..28b25c4 100644 --- a/.github/workflows/actionlint.yaml +++ b/.github/workflows/actionlint.yaml @@ -16,4 +16,7 @@ jobs: # in our e2e tests. # This error occurs because vault-action's outputs are dynamic but # actionlint expects action.yml to define them. - args: '-ignore "property \"othersecret\" is not defined in object type"' + args: > + -ignore "property \"othersecret\" is not defined in object type" + -ignore "property \"jsonstring\" is not defined in object type" + -ignore "property \"jsonstringmultiline\" is not defined in object type" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5f9f811..7fc7462 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -190,10 +190,10 @@ jobs: uses: ./ with: url: https://localhost:8200 - token: ${{ env.VAULT_TOKEN }} + token: testtoken secrets: | secret/data/test-json-string jsonString; - secret/data/test-json-multiline jsonStringMultiline; + secret/data/test-json-string-multiline jsonStringMultiline; - name: Test Parsing Secrets (part 2/2) # this step will call a JS script to test that we can successfully parse diff --git a/scripts/parse.js b/scripts/parse.js index d6f6173..bcd9aa0 100644 --- a/scripts/parse.js +++ b/scripts/parse.js @@ -1,3 +1,6 @@ +// This script is used by the e2e tests in build.yml to test that we can +// successfully parse JSON string data into JS objects + try { let inputs = [ process.env.JSONSTRING,