Skip to content

Commit d4c2f2a

Browse files
committed
Add debugging step for API Key in deployment workflow
1 parent 2ce0432 commit d4c2f2a

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/deploy-apprunner.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,16 @@ jobs:
5656
pip install -r requirements.txt
5757
pip install pytest
5858
59+
# --- LANGKAH DEBUGGING BARU ---
60+
- name: Debug API Key
61+
run: |
62+
KEY_VALUE="${{ secrets.TEST_API_KEY }}"
63+
echo "API Key Length: ${#KEY_VALUE}"
64+
echo "API Key First 5 Chars: ${KEY_VALUE:0:5}"
65+
echo "API Key Last 5 Chars: ${KEY_VALUE: -5}"
66+
5967
- name: Run tests with pytest
60-
# PERBAIKAN: Menggunakan secret TEST_API_KEY yang berisi satu kunci valid
68+
# Menggunakan secret TEST_API_KEY yang berisi satu kunci valid
6169
env:
6270
TEST_API_KEY: ${{ secrets.TEST_API_KEY }}
6371
run: pytest

0 commit comments

Comments
 (0)