We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69758f6 commit bcb1d7aCopy full SHA for bcb1d7a
.github/workflows/ci.yml
@@ -147,10 +147,11 @@ jobs:
147
# Create ssh keyfile with locked down permissions and ensure its removal
148
# Unfortunately process substitution won't work because ssh closes
149
# all fd > 2
150
- touch /tmp/key
151
- chmod 0600 /tmp/key
+ (
+ umask 077
152
+ echo "${SSH_KEY}" > /tmp/key
153
+ )
154
trap 'rm -f -- /tmp/key' EXIT
- echo "${SSH_KEY}" > /tmp/key
155
156
ssh -T "${SERVER}" -p "${PORT}" -i /tmp/key \
157
-o StrictHostKeyChecking=no \
0 commit comments