Open
Description
Describe the bug
An unhandled error Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable
occurs when creating a pull request.
It seems that the solution in #34169 does not work...?
This error appears to happen on every PR.
Is there a way to fix it?
Example: https://github.com/aws/aws-cdk/actions/runs/14630503794/job/41051726081?pr=34198
Run actions/github-script@v7
Error: Error message: Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable
at OidcClient.<anonymous> (/home/runner/work/_actions/actions/github-script/v7/dist/index.js:585:23)
at Generator.next (<anonymous>)
at /home/runner/work/_actions/actions/github-script/v7/dist/index.js:522:71
at new Promise (<anonymous>)
at __webpack_modules__.8041.__awaiter (/home/runner/work/_actions/actions/github-script/v7/dist/index.js:518:12)
at OidcClient.getIDToken (/home/runner/work/_actions/actions/github-script/v7/dist/index.js:571:16)
at Object.<anonymous> (/home/runner/work/_actions/actions/github-script/v7/dist/index.js:421:46)
at Generator.next (<anonymous>)
at /home/runner/work/_actions/actions/github-script/v7/dist/index.js:133:71
at new Promise (<anonymous>)
Error: Unhandled error: Error: Error message: Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable
Regression Issue
- Select this option if this issue appears to be a regression.
Last Known Working CDK Version
No response
Expected Behavior
The CodeCov job passes.
Current Behavior
Run actions/github-script@v7
Error: Error message: Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable
at OidcClient.<anonymous> (/home/runner/work/_actions/actions/github-script/v7/dist/index.js:585:23)
at Generator.next (<anonymous>)
at /home/runner/work/_actions/actions/github-script/v7/dist/index.js:522:71
at new Promise (<anonymous>)
at __webpack_modules__.8041.__awaiter (/home/runner/work/_actions/actions/github-script/v7/dist/index.js:518:12)
at OidcClient.getIDToken (/home/runner/work/_actions/actions/github-script/v7/dist/index.js:571:16)
at Object.<anonymous> (/home/runner/work/_actions/actions/github-script/v7/dist/index.js:421:46)
at Generator.next (<anonymous>)
at /home/runner/work/_actions/actions/github-script/v7/dist/index.js:133:71
at new Promise (<anonymous>)
Error: Unhandled error: Error: Error message: Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable
Example: https://github.com/aws/aws-cdk/actions/runs/14630503794/job/41051726081?pr=34198
Reproduction Steps
Creating a pull request
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.1007.0 (build d3f6c3c)
Framework Version
No response
Node.js Version
v22.14.0
OS
macOS 15.4.1
Language
TypeScript
Language Version
No response
Other information
No response