From f98561d33b3cc8bbfe4b624dbefbbc5c00c572ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Tue, 24 Oct 2023 20:31:25 +0200 Subject: [PATCH] Fix workflows with complicated publish passwords --- .github/starcatcher-publish.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/starcatcher-publish.sh b/.github/starcatcher-publish.sh index 396f6fb90..6b29e48aa 100755 --- a/.github/starcatcher-publish.sh +++ b/.github/starcatcher-publish.sh @@ -3,9 +3,16 @@ set -euo pipefail IFS=$'\n\t' +cat << NETRC > ~/.netrc +machine $(echo $PUBLISH_HOSTPORT | cut -d ':' -f 1) +login $PUBLISH_USERNAME +password $PUBLISH_PASSWORD +NETRC +chmod 660 ~/.netrc + mountpoint=ftpmnt mkdir $mountpoint -curlftpfs "$PUBLISH_HOSTPORT" $mountpoint -o ssl,user="$PUBLISH_USERNAME:$PUBLISH_PASSWORD",ciphers='ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES128-GCM-SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:TLS_AES_128_CCM_8_SHA256:TLS_AES_128_CCM_SHA256' +curlftpfs "$PUBLISH_HOSTPORT" $mountpoint -o ssl,ciphers='ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES128-GCM-SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:TLS_AES_128_CCM_8_SHA256:TLS_AES_128_CCM_SHA256' cp $PUBLISH_FILENAME $mountpoint/${PUBLISH_DIRECTORY:-.}/ fusermount -u $mountpoint rmdir $mountpoint