Skip to content

Commit

Permalink
fix github action leaking verification code
Browse files Browse the repository at this point in the history
  • Loading branch information
zpatronus committed Dec 29, 2024
1 parent 5db28de commit cf93865
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,16 @@ jobs:
- name: Send deployment request to AuthRun
id: send_post
run: |
# Mask the code in the logs
echo "::add-mask::${{ env.code }}"
# Disable command echoing to avoid printing the curl command with the code
set +x
response=$(curl -X POST "${{ secrets.FLASK_VERIFIER_URL }}/verify" \
-d "code=${{ env.code }}" -s)
# Re-enable command echoing
set -x
echo "Response: $response"
echo "$response" > response.json
success=$(echo $response | jq -r '.success')
Expand Down

0 comments on commit cf93865

Please sign in to comment.