Skip to content

Commit

Permalink
Masking secrets output
Browse files Browse the repository at this point in the history
  • Loading branch information
vitornere committed Jul 16, 2022
1 parent fd7aaa8 commit 8b9beac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ runs:
export AWS_ACCESS_KEY_ID=${{ inputs.aws_access_key_id }}
export AWS_SECRET_ACCESS_KEY=${{ inputs.aws_secret_access_key }}
export AWS_DEFAULT_REGION=${{ inputs.aws_region }}
echo Syncing Doppler to AWS Lambda
secrets=$(doppler secrets download --no-file | jq '.[]')
while read -r secret;
do
echo "::add-mask::${secret}"
done <<< "$secrets"
aws lambda update-function-configuration --function-name ${{ inputs.function_name }} \
--environment "$(doppler secrets download --no-file | jq '{Variables: .}')"
shell: bash

0 comments on commit 8b9beac

Please sign in to comment.