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

Secret not being used: FTP_PASSWORD is not recognized (Login Failed) #492

Open
jadchahine111 opened this issue Feb 5, 2025 · 0 comments

Comments

@jadchahine111
Copy link

I'm having trouble with the FTP-Deploy-Action. The workflow doesn't appear to be using the FTP_PASSWORD secret correctly. When I add a debugging step to check if the secret exists, it confirms availability, but the deployment fails with a LOGIN FAILED error.

I tested by hardcoding the FTP password directly into the workflow file, and it worked as expected. However, when using GitHub Secrets, the authentication fails.

What I did:

  1. Add the FTP_PASSWORD secret in the repository settings.
  2. Use it in the workflow as ${{ secrets.FTP_PASSWORD }}.
  3. Push a commit to trigger the workflow.
  4. Observe the workflow logs.
  5. Got the error

Workflow YAML:

on: push
name: 🚀 Deploy website on push
jobs:
  web-deploy:
    name: 🎉 Deploy
    runs-on: ubuntu-latest
    steps:
    - name: 🚚 Get latest code
      uses: actions/checkout@v4
    
    - name: 📂 Sync files
      uses: SamKirkland/FTP-Deploy-Action@v4.3.5
      with:
        server: ftp.api.jadchahine.me
        username: u812263148.jadchahine
        password: ${{ secrets.FTP_PASSWORD }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant