Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run bash script with master branch version #317

Open
bobcoin98 opened this issue Apr 17, 2024 · 9 comments
Open

Unable to run bash script with master branch version #317

bobcoin98 opened this issue Apr 17, 2024 · 9 comments
Labels
bug Something isn't working

Comments

@bobcoin98
Copy link

/usr/bin/env: ‘bash’: Permission denied
Error: Process completed with exit code 126.

Setting user to root already

@bobcoin98
Copy link
Author

image

@appleboy
Copy link
Owner

@bobcoin98 Please post your yaml config.

@bobcoin98
Copy link
Author

    - 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

@bobcoin98
Copy link
Author

reverting back to appleboy/ssh-action@v1.0.3 -> it works
so please check your master branch

@appleboy
Copy link
Owner

@bobcoin98 Can you post your raw data of yaml file?

@appleboy
Copy link
Owner

appleboy commented Apr 18, 2024

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?

@bobcoin98
Copy link
Author

bobcoin98 commented Apr 18, 2024

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

@ddjerqq
Copy link

ddjerqq commented Apr 18, 2024

v1.0.3 indeed works, master is broken!!!

@appleboy
Copy link
Owner

appleboy commented May 5, 2024

I will take a look master branch.

@appleboy appleboy changed the title Unable to run bash script Unable to run bash script with master branch version May 5, 2024
@appleboy appleboy added the bug Something isn't working label May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants