Skip to content

Commit 28dc26b

Browse files
authored
feat: mask the extra env var values
1 parent cd8ba52 commit 28dc26b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,9 @@ runs:
253253
shell: bash
254254
run: |
255255
echo '${{ inputs.extra-env-vars }}' > env.json
256+
for var in $(jq -r 'keys[]' env.json); do
257+
echo "::add-mask::$(jq -r --arg v "$var" '.[$v]' env.json)"
258+
done
256259
cat env.json | jq -r 'to_entries | .[] | "\(.key)=\(.value)"' >> $GITHUB_ENV
257260
258261
- name: Ensure argocd repo structure

0 commit comments

Comments
 (0)