-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from Burnett01/release/7.0.1
- Pin @JoshPiper [drinternet/rsync](https://github.com/JoshPiper/rsync-docker) image by SHA-256 hash rather than version. (Immutability) Added via #60 The docker image of this action is now pinned to the specific SHA-256 hash of the version rather than just the version. This means for the latest `drinternet/rsync:v1.4.4` the corresponding hash is `drinternet/rsync@sha256:15b2949838074bd93c49421c22380396a0cd53a322439e799ac87afcadcfe234` Check for validation: https://hub.docker.com/layers/drinternet/rsync/v1.4.4/images/sha256-15b2949838074bd93c49421c22380396a0cd53a322439e799ac87afcadcfe234 With that, usage of this action is even more secure due to a consistent dependency chain of trust, since changes accompanied by a docker image hash are immutable. Thanks to @XComp
- Loading branch information
Showing
3 changed files
with
10 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
FROM drinternet/rsync:v1.4.4 | ||
# drinternet/[email protected] | ||
FROM drinternet/rsync@sha256:15b2949838074bd93c49421c22380396a0cd53a322439e799ac87afcadcfe234 | ||
|
||
# Copy entrypoint | ||
COPY entrypoint.sh /entrypoint.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,8 @@ This action needs secret variables for the ssh private key of your key pair. The | |
For simplicity, we are using `DEPLOY_*` as the secret variables throughout the examples. | ||
|
||
## Current Version: 7.0.1 | ||
|
||
## Example usage | ||
|
||
Simple: | ||
|
@@ -57,7 +59,7 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
- name: rsync deployments | ||
uses: burnett01/[email protected].0 | ||
uses: burnett01/[email protected].1 | ||
with: | ||
switches: -avzr --delete | ||
path: src/ | ||
|
@@ -76,7 +78,7 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
- name: rsync deployments | ||
uses: burnett01/[email protected].0 | ||
uses: burnett01/[email protected].1 | ||
with: | ||
switches: -avzr --delete --exclude="" --include="" --filter="" | ||
path: src/ | ||
|
@@ -96,7 +98,7 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
- name: rsync deployments | ||
uses: burnett01/[email protected].0 | ||
uses: burnett01/[email protected].1 | ||
with: | ||
switches: -avzr --delete | ||
path: src/ | ||
|
@@ -116,7 +118,7 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
- name: rsync deployments | ||
uses: burnett01/[email protected].0 | ||
uses: burnett01/[email protected].1 | ||
with: | ||
switches: -avzr --delete | ||
path: src/ | ||
|
@@ -142,7 +144,7 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
- name: rsync deployments | ||
uses: burnett01/[email protected].0 | ||
uses: burnett01/[email protected].1 | ||
with: | ||
switches: -avzr --delete | ||
legacy_allow_rsa_hostkeys: "true" | ||
|