appleboy / appleboy/scp-action
Your DNS server does not resolve my domain correctly
- Dominant language
- Shell
- Stars
- 1.6k
- Forks
- 178
- PR merge metrics
- No merged PRs in 30d
Description
I have the following action code:
```
name: Deploy
on:
push:
branches:
- master
jobs:
deployment:
runs-on: ubuntu-latest
environment: main
steps:
- uses: actions/checkout@v1
- name: Copy repository contents via scp
uses: appleboy/scp-action@master
with:
HOST: ${{ secrets.HOST }}
USERNAME: ${{ secrets.USERNAME }}
PASSWORD: ${{ secrets.PASSWORD }}
PORT: ${{ secrets.PORT }}
KEY: ${{ secrets.SSHKEY }}
source: "."
target: "/opt/cloudfave"
- name: Executing remote command
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
USERNAME: ${{ secrets.USERNAME }}
PASSWORD: ${{ secrets.PASSWORD }}
PORT: ${{ secrets.PORT }}
KEY: ${{ secrets.SSHKEY }}
script: sudo npm install && sudo systemctl restart nodeserver
```
It gives me this error on execution:
```drone-scp error: error copy file to dest: ***, error message: dial tcp: lookup *** on 168.63.129.16:53: no such host```
I don't want to use an IP address in my variables since it may change in the future. Should not DNS work correctly?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the workflow shown in the issue, especially the scp-action step and its HOST value, and reproduce the lookup error against 168.63.129.16:53. The issue is resolved when the configured hostname resolves from the GitHub Actions runner and the copy step completes; compare DNS configuration and runner visibility before changing the action.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions
- Domain
- devops, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100