mirror of
https://github.com/hashicorp/vault-action.git
synced 2026-04-07 20:50:09 +00:00
* Revert "fix secrets stored in json format (#466)"
This reverts commit b9f4d16071.
* fix build: use new Verified Publisher image hashicorp/vault
This commit is contained in:
parent
357cb9c034
commit
5213b69445
8 changed files with 12 additions and 144 deletions
4
.github/workflows/actionlint.yaml
vendored
4
.github/workflows/actionlint.yaml
vendored
|
|
@ -16,6 +16,4 @@ 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"
|
||||
-ignore "property \"jsonstring\" is not defined in object type"
|
||||
args: '-ignore "property \"othersecret\" is not defined in object type"'
|
||||
|
|
|
|||
21
.github/workflows/build.yml
vendored
21
.github/workflows/build.yml
vendored
|
|
@ -153,27 +153,6 @@ jobs:
|
|||
my-secret/test altSecret | NAMED_ALTSECRET ;
|
||||
my-secret/nested/test otherAltSecret ;
|
||||
|
||||
# The ordering of these two Test Vault Action JSON String Format steps matters
|
||||
- name: Test Vault Action JSON String Format (part 1/2)
|
||||
id: import-secrets
|
||||
uses: ./
|
||||
with:
|
||||
url: http://localhost:8200
|
||||
token: testtoken
|
||||
secrets: |
|
||||
secret/data/test-json-string jsonString | JSON_STRING ;
|
||||
secret/data/test-json-data jsonData | JSON_DATA ;
|
||||
|
||||
- name: Test Vault Action JSON String Format (part 2/2)
|
||||
run: |
|
||||
echo "${{ steps.import-secrets.outputs.jsonString }}" > string.json
|
||||
echo "${{ steps.import-secrets.outputs.jsonData }}" > data.json
|
||||
cat string.json
|
||||
cat data.json
|
||||
# we should be able to parse the output as JSON
|
||||
jq -c . < string.json
|
||||
jq -c . < data.json
|
||||
|
||||
- name: Test Vault Action (cubbyhole)
|
||||
uses: ./
|
||||
with:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue