[CHORE] Tweak Secret Usage
This commit is contained in:
parent
11fe49dd2a
commit
aefb84fb1b
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ runs:
|
||||||
# For each environment
|
# For each environment
|
||||||
for i in "${!path_list[@]}";
|
for i in "${!path_list[@]}";
|
||||||
do echo "Getting secrets from path '${path_list[i]}' from '${env_list[i]}'"
|
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;
|
./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
|
chmod +x mask.sh
|
||||||
./mask.sh
|
./mask.sh
|
||||||
rm mask.sh
|
rm mask.sh
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue