From f944d7b653e53e76dab006ca994499dbb31a93f3 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Thu, 19 Oct 2023 16:06:31 -0700 Subject: [PATCH] ci/gha: fix downloading Release.key Since today, the URL from download.opensuse.org started returning a HTTP 302 redirect, so -L option for curl is needed to follow it. While at it, remove apt-key as per its man page recommendation: > Note: Instead of using this command a keyring should be placed > directly in the /etc/apt/trusted.gpg.d/ directory with a descriptive > name and either "gpg" or "asc" as file extension. Signed-off-by: Kir Kolyshkin --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5a53f1de1eb..ca7d6e21356 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -54,7 +54,7 @@ jobs: run: | # criu repo REPO=${PREFIX}_$(echo ${{ matrix.os }} | sed 's/.*-//') - curl -fSsl $REPO/Release.key | sudo apt-key add - + curl -fSsLl $REPO/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/devel_tools_criu.gpg > /dev/null echo "deb $REPO/ /" | sudo tee /etc/apt/sources.list.d/criu.list sudo apt update sudo apt install libseccomp-dev criu sshfs