Skip to content
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

[bug] node DeprecationWarning: Buffer() is deprecated due to security and usability issues.... #381

Open
marchesir opened this issue Feb 27, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@marchesir
Copy link

marchesir commented Feb 27, 2025

What happened?

hi
running on self-hosted runners actions/download-artifact@v4 i get this error
Starting download of artifact to: /xxxx/xxxx
(node:137) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use node --trace-deprecation ... to show where the warning was created)

iv checked the actions/upload-artifact@v4 action which does not have this error and seems actions/github node package needs to be upgraded to 6.x.x.

https://github.com/actions/upload-artifact/blob/main/package.json#L34 has 6..0.0 and https://github.com/actions/download-artifact/blob/main/package.json#L33 has 5.1.1.

reference of simular issue: actions/toolkit#1618

regards

What did you expect to happen?

no DeprecationWarning: Buffer() error or simular, action should run smoothly

How can we reproduce it?

any usage of actions/download-artifact@v4

Anything else we need to know?

be happy to raise pr if it helps

What version of the action are you using?

4 (latest)

What are your runner environments?

linux, self-hosted

Are you on GitHub Enterprise Server? If so, what version?

GHEC

@marchesir marchesir added the bug Something isn't working label Feb 27, 2025
@marchesir marchesir changed the title [bug] [bug] [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues.... Feb 28, 2025
@marchesir marchesir changed the title [bug] [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues.... [bug] node DeprecationWarning: Buffer() is deprecated due to security and usability issues.... Feb 28, 2025
@brainstorm
Copy link

@marchesir
Copy link
Author

marchesir commented Mar 7, 2025

@brainstorm yes its been happening for sometime now, it happens on every call to the download action as far as i can see. it just needs actions/github to be bumped upto v6.x.x. like the upload action has,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants