From d70a0c42025599b14c0a0bc0b6d78190daa4f998 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Fri, 19 Jan 2024 15:42:26 +0100 Subject: test: Only install pam modules from archives We had to workaround this since the ddebs archive wasn't updated with latest security updates, now it is so just use debug symbols packages from official repositories. --- .github/workflows/test.yaml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 1a296fa..ff083ab 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -12,8 +12,19 @@ jobs: uses: actions/setup-go@v4 with: go-version: ${{ matrix.go-version }} - - name: Install PAM - run: sudo apt install -y libpam-dev + - name: Update system + run: | + sudo apt-get update -y + sudo apt-get dist-upgrade -y + - name: Install PAM with debug symbols + run: | + sudo apt-get install ubuntu-dbgsym-keyring -y + echo "deb http://ddebs.ubuntu.com $(lsb_release -cs) main restricted universe multiverse + deb http://ddebs.ubuntu.com $(lsb_release -cs)-updates main restricted universe multiverse + deb http://ddebs.ubuntu.com $(lsb_release -cs)-proposed main restricted universe multiverse" | \ + sudo tee -a /etc/apt/sources.list.d/ddebs.list + sudo apt-get update -y + sudo apt-get install -y libpam-dev libpam-modules-dbgsym libpam0*-dbgsym - name: Add a test user run: sudo useradd -d /tmp/test -p '$1$Qd8H95T5$RYSZQeoFbEB.gS19zS99A0' -s /bin/false test - name: Checkout code -- cgit v1.2.3