Another logger in JS. This one offers a console.log-like API and formatting, colored lines and timestamps (or not if desired), all that with 0 dependencies.

Commit 43a5b2e1

43a5b2e1bb25Merged

Maxence Lecanu <[email protected]> · 5 months ago · 1 file · ~1 modified

Description

debug(ci): print OIDC token claims to diagnose trusted publishing mismatch

Details

Commit
43a5b2e1bb25
Parent
a2d3fa7f593d

.github/workflows/release.ymlmodifiedView file

@@ -41,6 +41,13 @@
4141 - name: Build
4242 run: pnpm run build
4343
44+ - name: Debug OIDC token claims
45+ run: |
46+ TOKEN=$(curl -sS -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \
47+ "${ACTIONS_ID_TOKEN_REQUEST_URL}&audience=npm:registry.npmjs.org" | jq -r '.value')
48+ echo "=== OIDC token claims ==="
49+ echo "$TOKEN" | cut -d. -f2 | base64 -d 2>/dev/null | jq .
50+
4451 - name: Release
4552 env:
4653 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}