Skip to content

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

@marchesir

Description

@marchesir

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions