Skip to content

Commit 3831cf5

Browse files
committed
Add debug step for GitHub App secrets in CI
Introduces a step to check and display the length of APP_ID and APP_PEM secrets, ensuring they are set before proceeding in the CI workflow. This helps diagnose issues related to missing or incorrectly configured secrets.
1 parent a7dce5d commit 3831cf5

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,25 @@ jobs:
1414
steps:
1515
- name: Checkout code
1616
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
17+
- name: Debug secrets
18+
run: |
19+
echo "APP_ID length: ${#APP_ID}"
20+
echo "APP_PEM length: ${#APP_PEM}"
21+
if [[ -z "$APP_ID" ]]; then
22+
echo "❌ APP_ID is empty or not set"
23+
exit 1
24+
else
25+
echo "✅ APP_ID is set"
26+
fi
27+
if [[ -z "$APP_PEM" ]]; then
28+
echo "❌ APP_PEM is empty or not set"
29+
exit 1
30+
else
31+
echo "✅ APP_PEM is set"
32+
fi
33+
env:
34+
APP_ID: ${{ secrets.APP_ID }}
35+
APP_PEM: ${{ secrets.APP_PEM }}
1736
- name: Generate GitHub App Token
1837
id: github_app_token
1938
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0

0 commit comments

Comments
 (0)