You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(node:2042) [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)
(node:2063) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
at showFlaggedDeprecation (node:buffer:191:11)
at new Buffer (node:buffer:269:3)
at new UnzipStream (/home/runner/work/download-artifact/download-artifact/dist/index.js:110127:17)
at new Extract (/home/runner/work/download-artifact/download-artifact/dist/index.js:109833:24)
at Object.Extract (/home/runner/work/download-artifact/download-artifact/dist/index.js:109828:12)
at /home/runner/work/download-artifact/download-artifact/dist/index.js:2240:46
at new Promise (<anonymous>)
at /home/runner/work/download-artifact/download-artifact/dist/index.js:2221:16
at Generator.next (<anonymous>)
at fulfilled (/home/runner/work/download-artifact/download-artifact/dist/index.js:2150:58)
(node:2215) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
at showFlaggedDeprecation (node:buffer:191:11)
at new Buffer (node:buffer:269:3)
at new UnzipStream (/home/runner/work/toolkit/toolkit/packages/artifact/node_modules/unzip-stream/lib/unzip-stream.js:47:17)
at new Extract (/home/runner/work/toolkit/toolkit/packages/artifact/node_modules/unzip-stream/lib/extract.js:15:24)
at Object.Extract (/home/runner/work/toolkit/toolkit/packages/artifact/node_modules/unzip-stream/lib/extract.js:10:12)
at /home/runner/work/toolkit/toolkit/packages/artifact/lib/internal/download/download-artifact.js:118:46
at new Promise (<anonymous>)
at /home/runner/work/toolkit/toolkit/packages/artifact/lib/internal/download/download-artifact.js:99:16
at Generator.next (<anonymous>)
at fulfilled (/home/runner/work/toolkit/toolkit/packages/artifact/lib/internal/download/download-artifact.js:28:58)
Describe the bug
@actions/artifact causes a Node.js DEP0005 deprecation warning in @actions/download-artifact
To Reproduce
View logs of https://github.com/actions/download-artifact/actions/workflows/test.yml?query=branch%3Amain
Select the most recent run
Download artifact A
Scroll down to
DEP0005
Note DEP0005 deprecation warning.
To Debug
Add the following to https://github.com/actions/download-artifact/actions/workflows/test.yml and run:
Add the following to https://github.com/actions/toolkit/blob/main/.github/workflows/artifact-tests.yml and run:
Expected behavior
Using @actions/artifact should not cause a Node.js DEP0005 deprecation warning to be displayed when used in a GitHub JavaScript Action such as @actions/download-artifact
Additional context
This repo uses
toolkit/packages/artifact/package.json
Line 54 in 930c890
https://www.npmjs.com/package/unzip-stream
The text was updated successfully, but these errors were encountered: