Unable to run bash script with master branch version
/usr/bin/env: ‘bash’: Permission denied Error: Process completed with exit code 126.
Setting user to root already
@bobcoin98 Please post your yaml config.
- name: Test command SSH
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
port: ${{ secrets.PORT }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
script: cd ${{ secrets.PATH }}
if I put secrets in script like this, I got the error If I put plain text instead, then It works
reverting back to appleboy/[email protected] -> it works
so please check your master branch
@bobcoin98 Can you post your raw data of yaml file?
if I put secrets in script like this, I got the error If I put plain text instead, then It works
Is that true for the master version?
if I put secrets in script like this, I got the error If I put plain text instead, then It works
Is that true for the master version?
yes, for master version, error occurs if I put any secret in script for v1.0.3, it works fine even I put some secret in script
v1.0.3 indeed works, master is broken!!!
I will take a look master branch.
Im experiencing the same issue; with latest it gives me error, but with 1.0.3 works fine.
after: https://github.com/EncryptEx/femtolink/actions/runs/10004445985/job/27653141107 before: https://github.com/EncryptEx/femtolink/actions/runs/10004371172/job/27652989509
@EncryptEx Post your config?
Here's mine https://github.com/EncryptEx/femtolink/blob/main/.github/workflows/deploy.yml in both job runs i ran the same command: sudo /path/to/file.sh
@bobcoin98
I try your config. It is working on the master branch:
see the https://github.com/appleboy/ssh-action/actions/runs/10017868614/job/27692567991
Prepare all required actions
Run ./
Run echo "$GITHUB_ACTION_PATH" >> $GITHUB_PATH
Run entrypoint.sh
Will download drone-ssh-1.7.7-linux-amd64 from https://github.com/appleboy/drone-ssh/releases/download/v1.7.7
======= CLI Version =======
Drone SSH version 1.7.7
===========================
err: bash: line 1: cd: ***: No such file or directory
[2](https://github.com/appleboy/ssh-action/actions/runs/10017868614/job/27692567991#step:10:2)024/07/20 05:27:04 Process exited with status 1
Error: Process completed with exit code 1.
@EncryptEx
Please try the following shell script:
sudo ls -al /path/to/file.sh
sudo chmod +x /path/to/file.sh
sudo /path/to/file.sh
Please post the result. Waiting for your feedback.