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.
This commit is contained in:
Naglis Jonaitis 2024-04-09 10:35:35 +03:00 committed by Alex Pyrgiotis
parent fc503d0a96
commit 7c4e62954f
No known key found for this signature in database
GPG key ID: B6C15EBA0357C9AA
4 changed files with 16 additions and 16 deletions

View file

@ -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

View file

@ -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: |

View file

@ -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)

View file

@ -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