-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
While I don't see how a malicious actor would be able to influence these contexts I'd rather be in the habbit of always passing contexts to scripts by way of environment variables. Also, I suspect that it this way is more likely that an unexpected context will result in a meaningful error message.
- Loading branch information
Showing
2 changed files
with
15 additions
and
5 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 |
---|---|---|
|
@@ -33,9 +33,11 @@ jobs: | |
- name: Deploy site | ||
if: github.ref == 'refs/heads/main' | ||
run: > | ||
rsync -e "ssh -i '${{ steps.ssh_cert.outputs.key_path }}'" | ||
rsync -e "ssh -i '$SSH_CERT_PATH'" | ||
--verbose --recursive --delete-after --perms --chmod=D755,F644 | ||
build/ [email protected]:/var/www/site/ | ||
env: | ||
SSH_CERT_PATH: ${{ steps.ssh_cert.outputs.key_path }} | ||
``` | ||
Do note that all client certification configuration is expected to | ||
|
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