From 33c3bd32044564e0ecfabf7569819df5a813793b Mon Sep 17 00:00:00 2001 From: Radostin Stoyanov Date: Wed, 8 Feb 2023 17:53:48 +0000 Subject: [PATCH] ci: update actions/checkout from v2 to v4 Signed-off-by: Radostin Stoyanov --- .github/workflows/alpine-test.yml | 2 +- .github/workflows/archlinux-test.yml | 2 +- .github/workflows/check-commits.yml | 2 +- .github/workflows/codeql.yml | 48 ++++++++++----------- .github/workflows/compat-test.yml | 2 +- .github/workflows/cross-compile-daily.yml | 4 +- .github/workflows/cross-compile.yml | 25 +++++------ .github/workflows/docker-test.yml | 2 +- .github/workflows/fedora-asan-test.yml | 2 +- .github/workflows/fedora-rawhide-test.yml | 2 +- .github/workflows/gcov-test.yml | 2 +- .github/workflows/java-test.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/loongarch64-qemu-test.yml | 4 +- .github/workflows/podman-test.yml | 2 +- .github/workflows/stream-test.yml | 2 +- .github/workflows/x86-64-clang-test.yml | 2 +- .github/workflows/x86-64-gcc-test.yml | 2 +- 18 files changed, 52 insertions(+), 57 deletions(-) diff --git a/.github/workflows/alpine-test.yml b/.github/workflows/alpine-test.yml index 5757fa82b8a..73530d79ae7 100644 --- a/.github/workflows/alpine-test.yml +++ b/.github/workflows/alpine-test.yml @@ -15,6 +15,6 @@ jobs: target: [GCC=1, CLANG=1] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Run Alpine ${{ matrix.target }} Test run: sudo -E make -C scripts/ci alpine ${{ matrix.target }} diff --git a/.github/workflows/archlinux-test.yml b/.github/workflows/archlinux-test.yml index ec43707e770..500a60eab21 100644 --- a/.github/workflows/archlinux-test.yml +++ b/.github/workflows/archlinux-test.yml @@ -12,6 +12,6 @@ jobs: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Run Arch Linux Test run: sudo -E make -C scripts/ci archlinux diff --git a/.github/workflows/check-commits.yml b/.github/workflows/check-commits.yml index be2fbd28560..0a39c0efe7e 100644 --- a/.github/workflows/check-commits.yml +++ b/.github/workflows/check-commits.yml @@ -12,7 +12,7 @@ jobs: # Check if pull request does not have label "not-selfcontained-ok" if: "!contains(github.event.pull_request.labels.*.name, 'not-selfcontained-ok')" steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: # Needed to rebase against the base branch fetch-depth: 0 diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 518d9b8ae0d..7a52634b9c8 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -2,11 +2,11 @@ name: "CodeQL" on: push: - branches: [ "criu-dev", "master" ] + branches: ["criu-dev", "master"] pull_request: - branches: [ "criu-dev" ] + branches: ["criu-dev"] schedule: - - cron: "11 6 * * 3" + - cron: "11 6 * * 3" # Cancel any preceding run on the pull request. concurrency: @@ -25,26 +25,26 @@ jobs: strategy: fail-fast: false matrix: - language: [ python, cpp ] + language: [python, cpp] steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Install Packages (cpp) - if: ${{ matrix.language == 'cpp' }} - run: | - sudo scripts/ci/apt-install protobuf-c-compiler libprotobuf-c-dev libprotobuf-dev build-essential libprotobuf-dev libprotobuf-c-dev protobuf-c-compiler protobuf-compiler python3-protobuf libnet-dev pkg-config libnl-3-dev libbsd0 libbsd-dev iproute2 libcap-dev libaio-dev libbsd-dev python3-yaml libnl-route-3-dev gnutls-dev - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 - with: - languages: ${{ matrix.language }} - queries: +security-and-quality - - - name: Autobuild - uses: github/codeql-action/autobuild@v2 - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 - with: - category: "/language:${{ matrix.language }}" + - name: Checkout + uses: actions/checkout@v4 + + - name: Install Packages (cpp) + if: ${{ matrix.language == 'cpp' }} + run: | + sudo scripts/ci/apt-install protobuf-c-compiler libprotobuf-c-dev libprotobuf-dev build-essential libprotobuf-dev libprotobuf-c-dev protobuf-c-compiler protobuf-compiler python3-protobuf libnet-dev pkg-config libnl-3-dev libbsd0 libbsd-dev iproute2 libcap-dev libaio-dev libbsd-dev python3-yaml libnl-route-3-dev gnutls-dev + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + queries: +security-and-quality + + - name: Autobuild + uses: github/codeql-action/autobuild@v2 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 + with: + category: "/language:${{ matrix.language }}" diff --git a/.github/workflows/compat-test.yml b/.github/workflows/compat-test.yml index 8612d29ea52..7220c94e3a6 100644 --- a/.github/workflows/compat-test.yml +++ b/.github/workflows/compat-test.yml @@ -15,6 +15,6 @@ jobs: target: [GCC, CLANG] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Run Compat Tests (${{ matrix.target }}) run: sudo -E make -C scripts/ci local COMPAT_TEST=y ${{ matrix.target }}=1 diff --git a/.github/workflows/cross-compile-daily.yml b/.github/workflows/cross-compile-daily.yml index 927ddced26b..ae349bc2171 100644 --- a/.github/workflows/cross-compile-daily.yml +++ b/.github/workflows/cross-compile-daily.yml @@ -2,7 +2,7 @@ name: Daily Cross Compile Tests on: schedule: - - cron: '30 12 * * *' + - cron: '30 12 * * *' jobs: build: @@ -14,7 +14,7 @@ jobs: branches: [criu-dev, master] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: ref: ${{ matrix.branches }} - name: Run Cross Compilation Targets diff --git a/.github/workflows/cross-compile.yml b/.github/workflows/cross-compile.yml index 4da5d397c67..0def27cbb82 100644 --- a/.github/workflows/cross-compile.yml +++ b/.github/workflows/cross-compile.yml @@ -16,24 +16,19 @@ jobs: fail-fast: false matrix: experimental: [false] - target: [ - armv7-stable-cross, - aarch64-stable-cross, - ppc64-stable-cross, - mips64el-stable-cross, - ] + target: [armv7-stable-cross, aarch64-stable-cross, ppc64-stable-cross, mips64el-stable-cross] include: - - experimental: true - target: armv7-unstable-cross - - experimental: true - target: aarch64-unstable-cross - - experimental: true - target: ppc64-unstable-cross - - experimental: true - target: mips64el-unstable-cross + - experimental: true + target: armv7-unstable-cross + - experimental: true + target: aarch64-unstable-cross + - experimental: true + target: ppc64-unstable-cross + - experimental: true + target: mips64el-unstable-cross steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Run Cross Compilation Targets run: > sudo make -C scripts/ci ${{ matrix.target }} diff --git a/.github/workflows/docker-test.yml b/.github/workflows/docker-test.yml index f2bb2060840..eb9d42245fb 100644 --- a/.github/workflows/docker-test.yml +++ b/.github/workflows/docker-test.yml @@ -12,6 +12,6 @@ jobs: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Run Docker Test (${{ matrix.os }}) run: sudo make -C scripts/ci docker-test diff --git a/.github/workflows/fedora-asan-test.yml b/.github/workflows/fedora-asan-test.yml index 11233f4575f..02dc9a1b3fd 100644 --- a/.github/workflows/fedora-asan-test.yml +++ b/.github/workflows/fedora-asan-test.yml @@ -12,6 +12,6 @@ jobs: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Run Fedora ASAN Test run: sudo -E make -C scripts/ci fedora-asan diff --git a/.github/workflows/fedora-rawhide-test.yml b/.github/workflows/fedora-rawhide-test.yml index fae544900c9..83e2ead8255 100644 --- a/.github/workflows/fedora-rawhide-test.yml +++ b/.github/workflows/fedora-rawhide-test.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Run Fedora Rawhide Test # We need to pass environment variables from the CI environment to # distinguish between CI environments. However, we need to make sure that diff --git a/.github/workflows/gcov-test.yml b/.github/workflows/gcov-test.yml index f221fabb5b4..cc4e1d44ac3 100644 --- a/.github/workflows/gcov-test.yml +++ b/.github/workflows/gcov-test.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Run Coverage Tests run: sudo -E make -C scripts/ci local GCOV=1 - name: Run gcov diff --git a/.github/workflows/java-test.yml b/.github/workflows/java-test.yml index 43fed1ab345..73b6b9c0be9 100644 --- a/.github/workflows/java-test.yml +++ b/.github/workflows/java-test.yml @@ -12,6 +12,6 @@ jobs: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Run Java Test run: sudo make -C scripts/ci java-test diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f52bce81237..7cd52694f5b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -16,7 +16,7 @@ jobs: - name: Install tools run: sudo dnf -y install git make python3-flake8 xz clang-tools-extra which codespell git-clang-format ShellCheck - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set git safe directory # https://github.com/actions/checkout/issues/760 diff --git a/.github/workflows/loongarch64-qemu-test.yml b/.github/workflows/loongarch64-qemu-test.yml index ba22fa25ff8..c76fb60146a 100644 --- a/.github/workflows/loongarch64-qemu-test.yml +++ b/.github/workflows/loongarch64-qemu-test.yml @@ -11,5 +11,5 @@ jobs: build: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 - - run: sudo make -C scripts/ci loongarch64-qemu-test + - uses: actions/checkout@v4 + - run: sudo make -C scripts/ci loongarch64-qemu-test diff --git a/.github/workflows/podman-test.yml b/.github/workflows/podman-test.yml index e28c376d879..a73c8fb2671 100644 --- a/.github/workflows/podman-test.yml +++ b/.github/workflows/podman-test.yml @@ -12,6 +12,6 @@ jobs: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Run Podman Test run: sudo make -C scripts/ci podman-test diff --git a/.github/workflows/stream-test.yml b/.github/workflows/stream-test.yml index efb217e16b3..76bd96edf7b 100644 --- a/.github/workflows/stream-test.yml +++ b/.github/workflows/stream-test.yml @@ -12,6 +12,6 @@ jobs: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Run CRIU Image Streamer Test run: sudo -E make -C scripts/ci local STREAM_TEST=1 diff --git a/.github/workflows/x86-64-clang-test.yml b/.github/workflows/x86-64-clang-test.yml index 78c6eb295d7..5815050bc9d 100644 --- a/.github/workflows/x86-64-clang-test.yml +++ b/.github/workflows/x86-64-clang-test.yml @@ -12,6 +12,6 @@ jobs: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Run X86_64 CLANG Test run: sudo make -C scripts/ci x86_64 CLANG=1 diff --git a/.github/workflows/x86-64-gcc-test.yml b/.github/workflows/x86-64-gcc-test.yml index a5880d3cf74..88ef3993773 100644 --- a/.github/workflows/x86-64-gcc-test.yml +++ b/.github/workflows/x86-64-gcc-test.yml @@ -12,6 +12,6 @@ jobs: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Run X86_64 GCC Test run: sudo make -C scripts/ci x86_64