Skip to content

cannot set a secret named PATH in the script. #402

@shintaro-nagaya

Description

@shintaro-nagaya

Describe the bug

Using a secret named PATH within the script causes an error.

Yaml Config

jobs:
  job1:
    name: DeployStg Corporate site
    runs-on: ubuntu-latest
    steps:

      - name: ssh and deploy
        uses: appleboy/ssh-action@master
        with:
          host: ${{ secrets.SSH_HOST }}
          username: ${{ secrets.SSH_USERNAME }}
          key: ${{ secrets.SSH_PRIVATE_KEY }}
          port: ${{ secrets.SSH_PORT }}
          script: |
            cd ${{ secrets.PATH }}
Image

It worked fine except for the name PATH.

jobs:
  job1:
    name: DeployStg Corporate site
    runs-on: ubuntu-latest
    steps:

      - name: ssh and deploy
        uses: appleboy/ssh-action@master
        with:
          host: ${{ secrets.SSH_HOST }}
          username: ${{ secrets.SSH_USERNAME }}
          key: ${{ secrets.SSH_PRIVATE_KEY }}
          port: ${{ secrets.SSH_PORT }}
          script: |
            cd ${{ secrets.STG_PATH }}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions