Skip to content

Commit 35edb8b

Browse files
committed
chore(release): add OIDC availability diagnostic step
Prints whether ACTIONS_ID_TOKEN_REQUEST_URL is present to determine if GitHub is actually granting id-token: write. Presence only, never the value.
1 parent ab9c2ed commit 35edb8b

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/release.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@ jobs:
4545
# publishing (OIDC) only activates when NO auth token is configured, so
4646
# configuring a token would make `npm publish` skip OIDC entirely.
4747
# The default registry is already https://registry.npmjs.org/.
48+
- name: Debug OIDC availability
49+
# GitHub only injects ACTIONS_ID_TOKEN_REQUEST_URL when `id-token: write`
50+
# is actually granted. Prints presence only (never the value/token).
51+
run: |
52+
if [ -n "$ACTIONS_ID_TOKEN_REQUEST_URL" ]; then
53+
echo "OIDC id-token IS available -> id-token: write is granted, OIDC can run."
54+
else
55+
echo "OIDC id-token is NOT available (ACTIONS_ID_TOKEN_REQUEST_URL is empty)."
56+
echo "=> GitHub is not granting id-token: write for this run."
57+
fi
4858
- name: Determine new template version
4959
run: echo "VERSION=$(./scripts/bumpedTemplateVersion.sh ${{ inputs.version }})" >> $GITHUB_ENV
5060
- name: Update versions to input one

0 commit comments

Comments
 (0)