sand4rt / ftp-deployer

Simple SFTP / FTP deployment with NodeJS.
https://github.com/marketplace/actions/ftp-deployer
MIT License
47 stars 12 forks source link

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

Open BaseMax opened 1 year ago

BaseMax commented 1 year ago

Config code:

      - name: FTP Deployer
        uses: sand4rt/ftp-deployer@v1.4
        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.
sand4rt commented 1 year ago

Can you retry with the latest version?

BaseMax commented 1 year ago

I must change 1.4 to 1.7?

sand4rt commented 1 year ago

Yeah

BaseMax commented 1 year ago

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/ftp-deployer@v1.7
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 commented 1 year ago

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

Run sand4rt/ftp-deployer@v1.7
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)

sand4rt commented 1 year ago

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