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:
parent
c3509cc095
commit
47fb2b7d1e
1 changed files with 5 additions and 2 deletions
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue