aws / aws/aws-cdk

CodeCov: Unhandled error occurerd when creating PR

Open
#34,273 3 comments 2 reactions 1 assignee Claimed by @QuantumNeuralCoder View on GitHub
bug effort/medium p2 package/tools
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
2d 3h
Merged PRs (30d)
83

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](https://github.com/aws/aws-cdk/pull/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

```shell
Run actions/github-script@v7
Error: Error message: Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable
at OidcClient. (/home/runner/work/_actions/actions/github-script/v7/dist/index.js:585:23)
at Generator.next ()
at /home/runner/work/_actions/actions/github-script/v7/dist/index.js:522:71
at new Promise ()
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. (/home/runner/work/_actions/actions/github-script/v7/dist/index.js:421:46)
at Generator.next ()
at /home/runner/work/_actions/actions/github-script/v7/dist/index.js:133:71
at new Promise ()
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

```shell
Run actions/github-script@v7
Error: Error message: Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable
at OidcClient. (/home/runner/work/_actions/actions/github-script/v7/dist/index.js:585:23)
at Generator.next ()
at /home/runner/work/_actions/actions/github-script/v7/dist/index.js:522:71
at new Promise ()
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. (/home/runner/work/_actions/actions/github-script/v7/dist/index.js:421:46)
at Generator.next ()
at /home/runner/work/_actions/actions/github-script/v7/dist/index.js:133:71
at new Promise ()
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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.