Skip to content

Commit e1c5b90

Browse files
authored
Merge pull request #59 from Burnett01/release/7.0.0
Release/7.0.0
2 parents c04732d + 93f02b8 commit e1c5b90

File tree

5 files changed

+63
-16
lines changed

5 files changed

+63
-16
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM drinternet/rsync:v1.4.3
1+
FROM drinternet/rsync:v1.4.4
22

33
# Copy entrypoint
44
COPY entrypoint.sh /entrypoint.sh

README.md

Lines changed: 47 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This GitHub Action (amd64) deploys files in `GITHUB_WORKSPACE` to a remote folde
44

55
Use this action in a CD workflow which leaves deployable code in `GITHUB_WORKSPACE`.
66

7-
The base-image [drinternet/rsync](https://github.com/JoshPiper/rsync-docker/) of this action is very small and is based on Alpine 3.17.2 (no cache) which results in fast deployments.
7+
The base-image [drinternet/rsync](https://github.com/JoshPiper/rsync-docker/) of this action is very small and is based on Alpine 3.19.1 (no cache) which results in fast deployments.
88

99
---
1010

@@ -14,6 +14,8 @@ The base-image [drinternet/rsync](https://github.com/JoshPiper/rsync-docker/) of
1414

1515
- `rsh` - Remote shell commands
1616

17+
- `legacy_allow_rsa_hostkeys` - Enables support for legacy RSA host keys on OpenSSH 8.8+. ("true" / "false")
18+
1719
- `path` - The source path. Defaults to GITHUB_WORKSPACE and is relative to it
1820

1921
- `remote_path`* - The deployment target path
@@ -55,7 +57,7 @@ jobs:
5557
steps:
5658
- uses: actions/checkout@v3
5759
- name: rsync deployments
58-
uses: burnett01/rsync-deployments@6.0.0
60+
uses: burnett01/rsync-deployments@7.0.0
5961
with:
6062
switches: -avzr --delete
6163
path: src/
@@ -74,7 +76,7 @@ jobs:
7476
steps:
7577
- uses: actions/checkout@v3
7678
- name: rsync deployments
77-
uses: burnett01/rsync-deployments@6.0.0
79+
uses: burnett01/rsync-deployments@7.0.0
7880
with:
7981
switches: -avzr --delete --exclude="" --include="" --filter=""
8082
path: src/
@@ -94,7 +96,7 @@ jobs:
9496
steps:
9597
- uses: actions/checkout@v3
9698
- name: rsync deployments
97-
uses: burnett01/rsync-deployments@6.0.0
99+
uses: burnett01/rsync-deployments@7.0.0
98100
with:
99101
switches: -avzr --delete
100102
path: src/
@@ -114,7 +116,7 @@ jobs:
114116
steps:
115117
- uses: actions/checkout@v3
116118
- name: rsync deployments
117-
uses: burnett01/rsync-deployments@6.0.0
119+
uses: burnett01/rsync-deployments@7.0.0
118120
with:
119121
switches: -avzr --delete
120122
path: src/
@@ -125,9 +127,46 @@ jobs:
125127
remote_key: ${{ secrets.DEPLOY_KEY }}
126128
remote_key_pass: ${{ secrets.DEPLOY_KEY_PASS }}
127129
```
130+
128131
---
129132

130-
## Version 5.0, 5.1 & 5.2
133+
#### Legacy RSA Hostkeys support for OpenSSH Servers >= 8.8+
134+
135+
If your remote OpenSSH Server still uses RSA hostkeys, then you have to
136+
manually enable legacy support for this by using ``legacy_allow_rsa_hostkeys: "true"``.
137+
138+
```
139+
jobs:
140+
deploy:
141+
runs-on: ubuntu-latest
142+
steps:
143+
- uses: actions/checkout@v3
144+
- name: rsync deployments
145+
uses: burnett01/rsync-deployments@7.0.0
146+
with:
147+
switches: -avzr --delete
148+
legacy_allow_rsa_hostkeys: "true"
149+
path: src/
150+
remote_path: ${{ secrets.DEPLOY_PATH }}
151+
remote_host: ${{ secrets.DEPLOY_HOST }}
152+
remote_port: ${{ secrets.DEPLOY_PORT }}
153+
remote_user: ${{ secrets.DEPLOY_USER }}
154+
remote_key: ${{ secrets.DEPLOY_KEY }}
155+
```
156+
157+
See [#49](https://github.com/Burnett01/rsync-deployments/issues/49) and [#24](https://github.com/Burnett01/rsync-deployments/issues/24) for more information.
158+
159+
---
160+
161+
## Version 6.0 (MAINTENANCE)
162+
163+
Check here:
164+
165+
- https://github.com/Burnett01/rsync-deployments/tree/6.0 (alpine 3.17.2)
166+
167+
---
168+
169+
## Version 5.0, 5.1 & 5.2 & 5.x (DEPRECATED)
131170

132171
Check here:
133172

@@ -136,10 +175,10 @@ Check here:
136175
- https://github.com/Burnett01/rsync-deployments/tree/5.2 (alpine 3.15.0)
137176
- https://github.com/Burnett01/rsync-deployments/tree/5.2.1 (alpine 3.16.1)
138177
- https://github.com/Burnett01/rsync-deployments/tree/5.2.2 (alpine 3.17.2)
139-
-
178+
140179
---
141180

142-
## Version 4.0 & 4.1
181+
## Version 4.0 & 4.1 (EOL)
143182

144183
Check here:
145184

SECURITY.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ The following versions are currently being supported with security updates:
66

77
| Version | Supported |
88
| ------- | ------------------ |
9-
| 6.x | :white_check_mark: |
10-
| 5.x | :white_check_mark: |
11-
| 4.x | :white_check_mark: |
12-
| 3.0 | :x: |
13-
| 2.0 | :x: |
14-
| 1.0 | :x: |
9+
| 7.x | :white_check_mark: |
10+
| 6.x | :information_source: MAINTENANCE |
11+
| 5.x | :warning: DEPRECATED |
12+
| 4.x | :x: EOL |
13+
| 3.0 | :x: EOL |
14+
| 2.0 | :x: EOL |
15+
| 1.0 | :x: EOL |
1516

1617
## Reporting a Vulnerability
1718

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ inputs:
99
description: 'The remote shell argument'
1010
required: false
1111
default: ''
12+
legacy_allow_rsa_hostkeys:
13+
description: 'Enables support for legacy RSA host keys on OpenSSH 8.8+'
14+
required: false
15+
default: 'false'
1216
path:
1317
description: 'The local path'
1418
required: false

entrypoint.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ echo "$INPUT_REMOTE_KEY" | SSH_PASS="$INPUT_REMOTE_KEY_PASS" agent-add
1313
set -eu
1414

1515
# Variables.
16+
LEGACY_RSA_HOSTKEYS="-o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa"
17+
LEGACY_RSA_HOSTKEYS=$([ "$INPUT_LEGACY_ALLOW_RSA_HOSTKEYS" = "true" ] && echo "$LEGACY_RSA_HOSTKEYS" || echo "")
18+
1619
SWITCHES="$INPUT_SWITCHES"
17-
RSH="ssh -o StrictHostKeyChecking=no -p $INPUT_REMOTE_PORT $INPUT_RSH"
20+
RSH="ssh -o StrictHostKeyChecking=no $LEGACY_RSA_HOSTKEYS -p $INPUT_REMOTE_PORT $INPUT_RSH"
1821
LOCAL_PATH="$GITHUB_WORKSPACE/$INPUT_PATH"
1922
DSN="$INPUT_REMOTE_USER@$INPUT_REMOTE_HOST"
2023

0 commit comments

Comments
 (0)