-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump @octokit dependencies to newer versions #1960
Comments
To temporarily resolve the issue, you can add the following to your package.json: ` "@nx-tools/container-metadata/**/@octokit/plugin-paginate-rest": "11.4.1", "@nx-tools/container-metadata/**/@octokit/core": "6.1.4" } ` |
Looks like there was some updates overnight that fixed most of them. Now only |
@martincostello According to the vuln page it seems that issue is patched in 9.2.2 so it should be fixed right? AFAIK this should be unblocked now. |
Looks like dependabot security updates isn't able to do anything about it for some reason, but running |
Had a quick go but it seemed to me that some of the packages have to be bumped several majors and I honestly don't have the time to make sure it works. Doesn't seem like a hard job though, just a time thing. |
Minimal repro:
Edit: This looks like it's caused by npm/cli#8125. |
Thanks everyone for the info so far, especially @crazymykl who pointed out the I've also explored a short spike on what it would take to migrate to the newest Octokit version, but it was a whole can of worms that I gave up on shortly after. This project uses |
Jest is a pain for ESM, and TypeScript. If you bump all Octokit packages to their latest version there shouldn't be any issues. It should be mostly compatible with existing code. If you need help migrating, feel free to reach out (I am a community maintainer of the JS Octokit packages) |
What if Jest tests are migrate to vitest, would it solve this ESM problem, no ? We could try to use codemod (like this one https://codemod.com/registry/jest-to-vitest) to make it faster ? |
I second a swap to vitest. Apart from some imports and the test setup, it's basically a drop in replacement |
@actions/github
depends on relatively old versions of@octokit
packages that make it impossible to update to the latest versions without breaking changes.This is particularly noticeable now that dependabot alerts are being opened in repositories using them due to GHSA-h5c3-5r3r-rr8q, GHSA-rmvr-2pp2-xj38 and GHSA-x4c5-c7rf-jjgv.
Please update the dependencies to newer versions that make it easier to keep up-to-date with the GitHub API's evolution while also resolving these vulnerabilities.
The text was updated successfully, but these errors were encountered: