From a33fde83e2141d9de7b27342e34ca9a0c8ef9a18 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Wed, 24 Apr 2024 11:10:35 -0400 Subject: [PATCH] Verify sha256sums.txt and signatures in CI Avoids a situation like , where wheels are updated, but the sha256sums and associated signatures are not. --- .github/workflows/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2ff027e..27be3ee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,3 +27,21 @@ jobs: run: | . ./.venv/bin/activate make test + + checksums: + runs-on: ubuntu-latest + container: debian:bookworm + steps: + - name: Bootstrap Debian system package dependencies + run: | + apt-get update && apt-get install --yes --no-install-recommends make git git-lfs gnupg ca-certificates + - uses: actions/checkout@v4 + with: + lfs: true + - name: Verify checksums and signatures + run: | + git config --global --add safe.directory '*' + ./scripts/verify-sha256sum-signature securedrop-client + ./scripts/verify-sha256sum-signature securedrop-export + ./scripts/verify-sha256sum-signature securedrop-log + ./scripts/verify-sha256sum-signature securedrop-proxy