From 2f9da18ec8f339728ceef41e4a5d64d0a2517efa Mon Sep 17 00:00:00 2001 From: Christian Göttsche Date: Sat, 17 Sep 2022 16:58:25 +0200 Subject: ci: update dependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update checkout action to v3 Update python-setup action to v4 Update SELinux userspace to 3.3 Also print basic output from apt-get to debug potential flaky failures. Signed-off-by: Christian Göttsche Signed-off-by: Kenton Groombridge --- .github/workflows/tests.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3046d3446..ae7069384 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -3,29 +3,31 @@ name: Build tests on: [push, pull_request] env: - SELINUX_USERSPACE_VERSION: checkpolicy-3.1 + # 3.4 fails to validate, fixed with 88a703399f3f + # ("libsepol: fix validation of user declarations in modules") + SELINUX_USERSPACE_VERSION: checkpolicy-3.3 jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 # This version should be the minimum required to run the fc checker - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: 3.7 - name: Install dependencies run: | - sudo apt-get update -qq + sudo apt-get update -q # Install SELint from Debian testing wget -O - https://ftp-master.debian.org/keys/archive-key-10.asc 2>/dev/null | sudo apt-key add - sudo add-apt-repository 'deb http://deb.debian.org/debian/ testing main' -y - sudo apt-get install -qqy selint + sudo apt-get install -qy selint selint -V - name: Create generated policy files @@ -70,18 +72,18 @@ jobs: - {type: mls, distro: gentoo, monolithic: y, systemd: n, apps-off: unconfined} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 # This should be the minimum required Python version to build refpolicy. - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: 3.5 - name: Install dependencies run: | - sudo apt-get update -qq - sudo apt-get install -qqy \ + sudo apt-get update -q + sudo apt-get install -qy \ bison \ flex \ gettext \ -- cgit v1.2.3-65-gdbad