We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a865809 commit 5226aacCopy full SHA for 5226aac
src/main.js
@@ -27,6 +27,11 @@ async function run() {
27
core.exportVariable("CLOUDSMITH_API_KEY", apiKey);
28
core.info("Using provided API key for authentication.");
29
} else if (orgName && serviceAccountSlug) {
30
+
31
+ if (!process.env.ACTIONS_ID_TOKEN_REQUEST_URL) {
32
+ throw new Error("Environment variable ACTIONS_ID_TOKEN_REQUEST_URL is not set. Did you add the permission 'id-token: write' to your workflow?");
33
+ }
34
35
await oidcAuth.authenticate(orgName, serviceAccountSlug, apiHost, oidcAuthRetry);
36
} else {
37
throw new Error("Either API key or OIDC inputs (namespace and service account slug) must be provided for authentication.");
0 commit comments