Skip to content

Commit f274da8

Browse files
committed
feat(search): FTRS-729 debug if token is reaching the script
1 parent 12b8c50 commit f274da8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/actions/deploy-to-proxygen/action.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ runs:
5858
# Debug: Check if ACCESS_TOKEN is set
5959
if [ -z "$ACCESS_TOKEN" ]; then
6060
echo "ERROR: ACCESS_TOKEN is empty after assignment from inputs"
61-
echo "Input value length: ${#{{ inputs.access_token }}}"
6261
exit 1
6362
fi
6463
echo "ACCESS_TOKEN is set (length: ${#ACCESS_TOKEN} characters)"

.github/workflows/deploy-to-proxygen.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ jobs:
4444
echo "Environment: ${{ inputs.environment }}"
4545
echo "Workspace: ${{ inputs.workspace }}"
4646
echo "API Name: ${{ inputs.api_name }}"
47+
echo "Proxy Env: ${{ inputs.proxy_env }}"
48+
# Check if access_token input is received (without exposing value)
49+
if [ -z "${{ inputs.access_token }}" ]; then
50+
echo "ERROR: access_token input is EMPTY at workflow level"
51+
exit 1
52+
fi
53+
echo "access_token input received (length: ${{ length(inputs.access_token) }} characters)"
4754
4855
- name: Deploy API Specification
4956
uses: ./.github/actions/deploy-to-proxygen

0 commit comments

Comments
 (0)