diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 411e8d6d..e19b28cf 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -327,7 +327,13 @@ jobs: # repository so APT verifies the package via GPG instead of a plain wget download. - name: Install OpenSSL 1.1 for .NET 5.0 run: | - echo "deb https://security.ubuntu.com/ubuntu focal-security main" | sudo tee /etc/apt/sources.list.d/focal-security.list + # signed-by= points apt at the Canonical archive keyring that ships on all + # GitHub-hosted Ubuntu runners. It contains the same signing key Canonical + # uses across releases (focal, jammy, noble), so it can verify focal-security + # packages from a non-focal runner without disabling signature checking. + # Earlier iteration used [trusted=yes] (skipping verification) as a quick + # unblock; this restores end-to-end signature verification. + echo "deb [signed-by=/usr/share/keyrings/ubuntu-archive-keyring.gpg] https://security.ubuntu.com/ubuntu focal-security main" | sudo tee /etc/apt/sources.list.d/focal-security.list sudo apt-get update -q sudo apt-get install --yes libssl1.1 sudo rm /etc/apt/sources.list.d/focal-security.list