Skip to content

Commit 995b13a

Browse files
authored
Merge pull request #7304 from LibreSign/chore/ci-harden-app-certificate-download-main
chore(ci): harden app certificate download
2 parents c60565f + 464ae48 commit 995b13a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/appstore-build-publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,10 @@ jobs:
171171
cd ../../../
172172
# Setting up keys
173173
echo '${{ secrets.APP_PRIVATE_KEY }}' > ${{ env.APP_NAME }}.key
174-
wget --quiet "https://github.com/nextcloud/app-certificate-requests/raw/master/${{ env.APP_NAME }}/${{ env.APP_NAME }}.crt"
174+
curl --fail --show-error --location \
175+
--retry 5 --retry-all-errors --retry-delay 2 \
176+
--output ${{ env.APP_NAME }}.crt \
177+
"https://raw.githubusercontent.com/nextcloud/app-certificate-requests/master/${{ env.APP_NAME }}/${{ env.APP_NAME }}.crt"
175178
# Signing
176179
php nextcloud/occ integrity:sign-app --privateKey=../${{ env.APP_NAME }}.key --certificate=../${{ env.APP_NAME }}.crt --path=../${{ env.APP_NAME }}/build/artifacts/${{ env.APP_NAME }}
177180
# Rebuilding archive

0 commit comments

Comments
 (0)