Skip to content

Commit 4ffc1d6

Browse files
authored
Merge pull request #189 from vue-pivottable/develop
chore: verify app id
2 parents 8fb4f21 + 573409f commit 4ffc1d6

File tree

1 file changed

+7
-27
lines changed

1 file changed

+7
-27
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -17,39 +17,19 @@ jobs:
1717
pull-requests: write
1818
id-token: write
1919
steps:
20-
- name: Debug Secret Storage
20+
- name: Verify App ID
2121
run: |
22-
echo "Checking secret storage..."
22+
echo "Verifying App ID..."
23+
echo "Expected App ID: 1254720"
24+
echo "Actual App ID from secret: $APP_ID"
2325
24-
# Check if secrets are accessible
25-
if [ -z "$APP_ID" ]; then
26-
echo "ERROR: APP_ID is empty"
26+
if [ "$APP_ID" = "1254720" ]; then
27+
echo "✓ App ID matches expected value"
2728
else
28-
echo "✓ APP_ID exists (length: ${#APP_ID})"
29-
fi
30-
31-
if [ -z "$PRIVATE_KEY" ]; then
32-
echo "ERROR: APP_PRIVATE_KEY is empty"
33-
else
34-
echo "✓ APP_PRIVATE_KEY exists (length: ${#PRIVATE_KEY})"
35-
36-
# Check line count
37-
LINE_COUNT=$(echo "$PRIVATE_KEY" | wc -l)
38-
echo " Private key line count: $LINE_COUNT"
39-
40-
# Check if it's one line (might be base64 encoded or escaped)
41-
if [ "$LINE_COUNT" -eq 1 ]; then
42-
echo " WARNING: Private key is on a single line"
43-
44-
# Check if it contains literal \n
45-
if [[ "$PRIVATE_KEY" == *"\\n"* ]]; then
46-
echo " Contains literal \\n - needs unescaping"
47-
fi
48-
fi
29+
echo "✗ App ID mismatch!"
4930
fi
5031
env:
5132
APP_ID: ${{ secrets.APP_ID }}
52-
PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
5333

5434
- name: Generate GitHub App Token
5535
id: generate-token

0 commit comments

Comments
 (0)