5
0
Fork 0
mirror of https://github.com/hashicorp/vault-action.git synced 2025-11-09 16:16:55 +00:00

revert build.yml test

This commit is contained in:
JM Faircloth 2023-06-20 11:25:45 -05:00
parent c3509cc095
commit 47fb2b7d1e

View file

@ -153,7 +153,8 @@ jobs:
my-secret/test altSecret | NAMED_ALTSECRET ; my-secret/test altSecret | NAMED_ALTSECRET ;
my-secret/nested/test otherAltSecret ; my-secret/nested/test otherAltSecret ;
- name: Test Vault Action (JSON string format) # 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 id: import-secrets
uses: ./ uses: ./
with: with:
@ -161,8 +162,10 @@ jobs:
token: testtoken token: testtoken
secrets: | secrets: |
secret/data/test-json-string jsonString | JSON_STRING ; secret/data/test-json-string jsonString | JSON_STRING ;
- name: Test Vault Action JSON String Format (part 2/2)
run: | run: |
echo "${{ env.JSON_STRING }}" > secrets.json echo "${{ steps.import-secrets.outputs.jsonString }}" > secrets.json
cat secrets.json cat secrets.json
# we should be able to parse the output as JSON # we should be able to parse the output as JSON
jq -c . < secrets.json jq -c . < secrets.json