ftp-deployer icon indicating copy to clipboard operation
ftp-deployer copied to clipboard

[DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

Open BaseMax opened this issue 2 years ago • 10 comments

Config code:

      - name: FTP Deployer
        uses: sand4rt/[email protected]
        with:
          sftp: true
          host: ${{ secrets.SERVER_HOST }}
          port: 22
          username: ${{ secrets.SERVER_USERNAME }}
          password: ${{ secrets.SERVER_PASSWORD }}
          remote_folder: ${{ secrets.SERVER_PATH }}
          local_folder: '.'
          cleanup: false
          include: '[ "*", "**/*" ]'
          exclude: '["node_modules/**", ".github/**", ".git/**", "*.env"]'
          pasive: true

Error:

[DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

BaseMax avatar Feb 11 '23 17:02 BaseMax

Can you retry with the latest version?

sand4rt avatar Feb 11 '23 17:02 sand4rt

I must change 1.4 to 1.7?

BaseMax avatar Feb 11 '23 17:02 BaseMax

Yeah

sand4rt avatar Feb 11 '23 18:02 sand4rt

After change version 1.4 to1 .7:

Warning: Unexpected input(s) 'pasive', valid inputs are ['sftp', 'host', 'port', 'username', 'password', 'remote_folder', 'local_folder', 'cleanup', 'include', 'exclude', 'passive']
Run sand4rt/[email protected]
Deploying...
(node:16[2](https://github.com/BaseMax/****/actions/runs/****/jobs/7193954733#step:3:2)7) [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)
Deploy finished:

BaseMax avatar Feb 12 '23 22:02 BaseMax

I deleted pasive parameter from GitHub Action. Still it's same and the warning:

Run sand4rt/[email protected]
Deploying...
(node:[17](https://github.com/BaseMax/*****/actions/runs/4158637741/jobs/7193992520#step:3:18)[1](https://github.com/BaseMax/*****/actions/runs/4158637741/jobs/7193992520#step:6:1)[3](https://github.com/BaseMax/*****/actions/runs/4158637741/jobs/7193992520#step:6:3)) [DEP000[5](https://github.com/BaseMax/*****/actions/runs/4158637741/jobs/7193992520#step:6:5)] 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)
Deploy finished:

Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (Use node --trace-deprecation ... to show where the warning was created)

BaseMax avatar Feb 12 '23 23:02 BaseMax

Related to: https://github.com/sand4rt/ftp-deployer/issues/4 and https://github.com/simonh1000/ftp-deploy/issues/116

sand4rt avatar Feb 18 '23 15:02 sand4rt