@codfish/actions-playground 0.0.0-PR-98--c28fd93 → 0.0.0-PR-98--01d700e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -83,16 +83,9 @@ jobs:
|
|
|
83
83
|
run: |
|
|
84
84
|
set -euo pipefail
|
|
85
85
|
|
|
86
|
-
#
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
echo "This usually happens on forked PRs or when id-token permissions are missing."
|
|
90
|
-
exit 1
|
|
91
|
-
fi
|
|
92
|
-
|
|
93
|
-
echo "OIDC environment detected:"
|
|
94
|
-
echo "ACTIONS_ID_TOKEN_REQUEST_URL is set: ${ACTIONS_ID_TOKEN_REQUEST_URL:+yes}"
|
|
95
|
-
echo "ACTIONS_ID_TOKEN_REQUEST_TOKEN is set: ${ACTIONS_ID_TOKEN_REQUEST_TOKEN:+yes}"
|
|
86
|
+
# Unset any npm token environment variables to ensure OIDC is used
|
|
87
|
+
unset NPM_TOKEN || true
|
|
88
|
+
unset NODE_AUTH_TOKEN || true
|
|
96
89
|
|
|
97
90
|
short_sha="$(echo "$PR_SHA" | cut -c -7)"
|
|
98
91
|
version="0.0.0-PR-${PR_NUMBER}--${short_sha}"
|
package/package.json
CHANGED