From 7c4e62954f4ee71726de0a23655c8f791f05f290 Mon Sep 17 00:00:00 2001 From: Naglis Jonaitis Date: Tue, 9 Apr 2024 10:35:35 +0300 Subject: [PATCH] Update GitHub actions The `checkout`, `setup-python`, `upload-artifact` and `download-artifact` actions produce warnings about deprecated Node.js 16. Update the actions to use Node.js 20. --- .github/workflows/check_push.yml | 2 +- .github/workflows/ci.yml | 22 +++++++++++----------- .github/workflows/scan.yml | 4 ++-- .github/workflows/scan_released.yml | 4 ++-- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/check_push.yml b/.github/workflows/check_push.yml index dfb01fc17..0b92efca4 100644 --- a/.github/workflows/check_push.yml +++ b/.github/workflows/check_push.yml @@ -11,7 +11,7 @@ jobs: version: bookworm steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: prevent fixup commits run: | git fetch origin diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 469b944e8..0e5576bfa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,8 +12,8 @@ jobs: env: DUMMY_CONVERSION: 1 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: '3.11' - run: pip install poetry @@ -33,8 +33,8 @@ jobs: env: DUMMY_CONVERSION: 1 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: '3.11' - run: pip install poetry @@ -50,9 +50,9 @@ jobs: version: bookworm steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: '3.10' @@ -75,7 +75,7 @@ jobs: run --dev --no-gui ./dangerzone/install/linux/build-deb.py - name: Upload Dangerzone .deb - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: dangerzone.deb path: "deb_dist/dangerzone_*_all.deb" @@ -107,14 +107,14 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: '3.10' - name: Download Dangerzone .deb - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: dangerzone.deb path: "deb_dist/" @@ -171,7 +171,7 @@ jobs: - version: "39" steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Build dev environment run: | diff --git a/.github/workflows/scan.yml b/.github/workflows/scan.yml index 86452e7bc..baeb18b75 100644 --- a/.github/workflows/scan.yml +++ b/.github/workflows/scan.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install container build dependencies run: sudo apt install pipx && pipx install poetry - name: Build container image @@ -45,7 +45,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 # NOTE: Scan first without failing, else we won't be able to read the scan # report. - name: Scan application (no fail) diff --git a/.github/workflows/scan_released.yml b/.github/workflows/scan_released.yml index fe64d5634..bcec5aee5 100644 --- a/.github/workflows/scan_released.yml +++ b/.github/workflows/scan_released.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Download container image for the latest release run: | VERSION=$(curl https://api.github.com/repos/freedomofpress/dangerzone/releases/latest | jq -r '.tag_name') @@ -44,7 +44,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Checkout the latest released tag