You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Bug: The audience should not include the protocol (http:// or https://)."
22
-
);
23
-
}
24
-
returnaudience;
6
+
constaudience=url.replace(/^https?:\/\//,"");
7
+
if(audience.startsWith("http://")||audience.startsWith("https://"))thrownewError("Bug: The audience should not include the protocol (http:// or https://).");
"Please ensure the 'id-token' permission is set to 'write' in your workflow. For more information, see: https://docs.github.com/en/actions/security-for-github-actions/security-hardening-your-deployments/about-security-hardening-with-openid-connect#adding-permissions-settings"
50
-
);
51
-
}
30
+
if(process.env.ACTIONS_ID_TOKEN_REQUEST_URL===void0||!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)thrownewError("Please ensure the 'id-token' permission is set to 'write' in your workflow. For more information, see: https://docs.github.com/en/actions/security-for-github-actions/security-hardening-your-deployments/about-security-hardening-with-openid-connect#adding-permissions-settings");
52
31
}
53
32
asyncfunctiongetJwtToken(audience){
54
-
core2.info(`Retrieving GitHub Actions JWT token with audience: ${audience}`);
55
-
constjwtToken=awaitcore2.getIDToken(audience);
56
-
if(!jwtToken){
57
-
thrownewError("Failed to retrieve JWT token from GitHub Actions");
58
-
}
59
-
core2.info("Retrieved JWT token successfully");
60
-
returnjwtToken;
33
+
import_core.info(`Retrieving GitHub Actions JWT token with audience: ${audience}`);
0 commit comments