[TEST] Initial switch to elysium-actions
This commit is contained in:
parent
3c8fd06967
commit
6ecc42fde5
1 changed files with 5 additions and 1 deletions
|
@ -22,11 +22,15 @@ inputs:
|
||||||
runs:
|
runs:
|
||||||
using: 'composite'
|
using: 'composite'
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install JQ
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
curl https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-amd64 >> ./jq
|
||||||
- name: Fetch secrets from Infisical and add them to the environment
|
- name: Fetch secrets from Infisical and add them to the environment
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
curl "${{ inputs.api-url }}/api/v3/secrets/raw?environment=${{ inputs.environment }}&secretPath=${{ inputs.secret-path }}&workspaceId=${{ inputs.workspace-id }}" \
|
curl "${{ inputs.api-url }}/api/v3/secrets/raw?environment=${{ inputs.environment }}&secretPath=${{ inputs.secret-path }}&workspaceId=${{ inputs.workspace-id }}" \
|
||||||
--header "Authorization: Bearer ${{ inputs.infisical-token }}" \
|
--header "Authorization: Bearer ${{ inputs.infisical-token }}" \
|
||||||
| jq -r '.secrets[] | "\(.secretKey)=\(.secretValue)"' > $GITHUB_ENV
|
| ./jq -r '.secrets[] | "\(.secretKey)=\(.secretValue)"' > $GITHUB_ENV
|
||||||
- shell: bash
|
- shell: bash
|
||||||
run: echo "Secrets added to environment!".
|
run: echo "Secrets added to environment!".
|
Loading…
Add table
Add a link
Reference in a new issue