Skip to content

Commit

Permalink
Add ability to ignore default SSH known hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
RensHoskens authored and qcastel committed Dec 15, 2022
1 parent dfc313e commit 5e59d27
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,11 @@ Although you may want to additional one, using the following properties:
ssh-extra-known-host: "my-awesome-private-git-host.com"
```

You can also disable the default hosts (for example, if you are behind a corporate proxy) like so:
```yaml
with:
ssh-ignore-default-hosts: true
```

### log Timestamp

Expand Down
6 changes: 5 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ inputs:
description: 'The SSH passphrase'
required: false
ssh-extra-known-host:
description: 'Addtion SSH known host'
description: 'Additional SSH known host'
required: false
ssh-ignore-default-hosts:
description: 'Do not add the default SSH known hosts'
required: false

git-release-bot-name:
Expand Down Expand Up @@ -141,6 +144,7 @@ runs:
SSH_ROOT_FOLDER: /root/.ssh
SSH_PASSPHRASE: ${{ inputs.ssh-passphrase }}
SSH_EXTRA_KNOWN_HOST: ${{ inputs.ssh-extra-known-host }}
SSH_IGNORE_DEFAULT_HOSTS: ${{ inputs.ssh-ignore-default-hosts }}

MAVEN_REPO_SERVER_ID: ${{ inputs.maven-repo-server-id }}
MAVEN_REPO_SERVER_USERNAME: ${{ inputs.maven-repo-server-username }}
Expand Down

0 comments on commit 5e59d27

Please sign in to comment.