From abe03f2f8d739903bd9f657a2f06fda8ea92d091 Mon Sep 17 00:00:00 2001 From: Evan Gibler <20933572+egibs@users.noreply.github.com> Date: Fri, 1 Nov 2024 07:55:57 -0500 Subject: [PATCH] Install yara in third-party rule update Workflow (#559) Signed-off-by: egibs <20933572+egibs@users.noreply.github.com> --- .github/workflows/third-party.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/third-party.yaml b/.github/workflows/third-party.yaml index 0102cb4c3..acf514e48 100644 --- a/.github/workflows/third-party.yaml +++ b/.github/workflows/third-party.yaml @@ -9,7 +9,7 @@ permissions: contents: read jobs: - version: + update: if: ${{ github.repository }} == 'chainguard-dev/malcontent' runs-on: ubuntu-latest permissions: @@ -28,6 +28,14 @@ jobs: with: scope: chainguard-dev/malcontent identity: third-party + - name: Install yara and libyara-dev + run: | + sudo add-apt-repository -n -y "deb http://archive.ubuntu.com/ubuntu/ mantic main restricted universe multiverse" + sudo add-apt-repository -n -y "deb http://archive.ubuntu.com/ubuntu/ mantic-updates main restricted universe multiverse" + sudo add-apt-repository -n -y "deb http://archive.ubuntu.com/ubuntu/ mantic-backports main restricted universe multiverse" + sudo add-apt-repository -n -y "deb http://security.ubuntu.com/ubuntu mantic-security main restricted universe multiverse" + + sudo apt update && sudo apt install yara libyara-dev -y - name: Run make update-third-party run: | make update-third-party