diff --git a/.github/workflows/third-party.yaml b/.github/workflows/third-party.yaml index 0102cb4c3..ddf5c50d7 100644 --- a/.github/workflows/third-party.yaml +++ b/.github/workflows/third-party.yaml @@ -4,12 +4,15 @@ on: workflow_dispatch: schedule: - cron: "0 */12 * * *" + push: + branches: + - third-party-workflow-updates permissions: contents: read jobs: - version: + update: if: ${{ github.repository }} == 'chainguard-dev/malcontent' runs-on: ubuntu-latest permissions: @@ -28,6 +31,14 @@ jobs: with: scope: chainguard-dev/malcontent identity: third-party + - name: install 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