TEMP: triage the publish token in the SDK job
build / build (push) Has been cancelled

This commit is contained in:
max-voitcov
2026-08-26 10:28:31 +03:00
parent 381c928342
commit cc01a956ad
+18
View File
@@ -91,6 +91,24 @@ jobs:
# Needed for the tag lookup below.
fetch-depth: 0
# TEMPORARY: triage for the npm E401 on publish. Prints lengths and
# status codes only, never a token value.
- name: Triage the publish token
env:
TOKEN: ${{ secrets.GITEA_TOKEN }}
run: |
echo "token length: ${#TOKEN}"
echo -n "GET /api/v1/user -> "
curl -s -o /dev/null -w '%{http_code}\n' \
-H "Authorization: token $TOKEN" "https://${GITEA_HOST}/api/v1/user"
echo -n "GET /api/v1/packages/owner -> "
curl -s -o /dev/null -w '%{http_code}\n' \
-H "Authorization: token $TOKEN" "https://${GITEA_HOST}/api/v1/packages/${GITEA_OWNER}?limit=1"
echo -n "npm registry GET (basic) -> "
curl -s -o /dev/null -w '%{http_code}\n' \
-u "${GITEA_OWNER}:$TOKEN" \
"https://${GITEA_HOST}/api/packages/${GITEA_OWNER}/npm/@maxvojtkov%2Fpulumi-dokploy"
- uses: actions/checkout@v4
with:
repository: ${{ env.UPSTREAM_REPO }}