From c6543005037bbecf1e96a9b24d6b9453763fc630 Mon Sep 17 00:00:00 2001 From: Dunemask Date: Sat, 24 Aug 2024 20:49:46 -0600 Subject: [PATCH] [CHORE] Tweak Secret Usage --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 69ad512..fb100f4 100644 --- a/action.yml +++ b/action.yml @@ -51,7 +51,7 @@ runs: # For each environment for i in "${!path_list[@]}"; do echo "Getting secrets from path '${path_list[i]}' from '${env_list[i]}'" - ./infisical export --domain ${{ inputs.api-url }} --projectId ${{ inputs.project-id }} --token ${{ inputs.infisical-token }} --env "${env_list[i]}" --path "${path_list[i]}" --format yaml | tee >(./yq -r 'to_entries[] | .key + "=" +.value' >> $GITHUB_ENV) | ./yq -r 'to_entries[] | "echo ::add-mask::\"" + .value + "\""' >> mask.sh | ./yq -r 'to_entries[] | echo .key; + ./infisical export --domain ${{ inputs.api-url }} --projectId ${{ inputs.project-id }} --token ${{ inputs.infisical-token }} --env "${env_list[i]}" --path "${path_list[i]}" --format yaml | tee >(./yq -r 'to_entries[] | .key + "=" +.value' >> $GITHUB_ENV) | ./yq -r 'to_entries[] | "echo ::add-mask::\"" + .value + "\""' >> mask.sh | ./yq -r 'to_entries[] | echo .key;'' chmod +x mask.sh ./mask.sh rm mask.sh