Commit 521c6e05c5 for strongswan.org
commit 521c6e05c543677c18082d0dd8e2856c9489b146
Author: Tobias Brunner <tobias@strongswan.org>
Date: Tue Apr 7 18:57:40 2026 +0200
github: Update actions so they don't use deprecated Node.js 20
diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml
index 9ec33ee8ea..a36ebb93da 100644
--- a/.github/workflows/android.yml
+++ b/.github/workflows/android.yml
@@ -33,7 +33,7 @@ jobs:
# since the NDK might be newly installed, we have to use this to avoid cache misses
CCACHE_COMPILERCHECK: content
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
# make sure the NDK we reference is installed and exported so we can use it to build OpenSSL
- name: Install NDK
id: ndk-install
@@ -42,14 +42,14 @@ jobs:
echo Using NDK ${NDK_VERSION}
yes | ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --install "ndk;${NDK_VERSION}"
echo "ANDROID_NDK_ROOT=${ANDROID_HOME}/ndk/${NDK_VERSION}" >> "$GITHUB_OUTPUT"
- - uses: actions/cache@v4
+ - uses: actions/cache@v5
with:
path: ~/.cache/ccache
key: ccache-android-${{ github.sha }}
restore-keys: |
ccache-android-
# necessary for newer versions of the Gradle plugin
- - uses: actions/setup-java@v4
+ - uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: 17
@@ -62,7 +62,7 @@ jobs:
env:
ANDROID_NDK_ROOT: ${{ steps.ndk-install.outputs.ANDROID_NDK_ROOT }}
- run: ccache -s
- - uses: actions/upload-artifact@v4
+ - uses: actions/upload-artifact@v6
with:
name: Lint Results
path: src/frontends/android/app/build/reports/lint-results*.xml
diff --git a/.github/workflows/cifuzz.yml b/.github/workflows/cifuzz.yml
index 2857bb9b2e..b9c1336c22 100644
--- a/.github/workflows/cifuzz.yml
+++ b/.github/workflows/cifuzz.yml
@@ -40,7 +40,7 @@ jobs:
sanitizer: ${{ matrix.sanitizer }}
- name: Upload Crash
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v6
if: failure() && steps.build.outcome == 'success'
with:
name: ${{ matrix.sanitizer }}-artifacts
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
index 79f198b797..6343818d2a 100644
--- a/.github/workflows/codeql.yml
+++ b/.github/workflows/codeql.yml
@@ -38,20 +38,20 @@ jobs:
matrix:
language: [ 'cpp', 'python', 'ruby' ]
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
- name: Initialize CodeQL
- uses: github/codeql-action/init@v3
+ uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql/config.yml
- if: matrix.language == 'python' || matrix.language == 'ruby'
name: Autobuild
- uses: github/codeql-action/autobuild@v3
+ uses: github/codeql-action/autobuild@v4
# this follows the steps of the Linux workflow
- if: matrix.language == 'cpp'
- uses: actions/cache@v4
+ uses: actions/cache@v5
with:
path: ~/.cache/ccache
key: ccache-ubuntu-latest-gcc-codeql-${{ github.sha }}
@@ -73,6 +73,6 @@ jobs:
run: ccache -s
- name: Perform CodeQL Analysis
- uses: github/codeql-action/analyze@v3
+ uses: github/codeql-action/analyze@v4
with:
category: "/language:${{matrix.language}}"
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml
index 4e900f83fb..458b45b838 100644
--- a/.github/workflows/linux.yml
+++ b/.github/workflows/linux.yml
@@ -64,8 +64,8 @@ jobs:
CC: ${{ matrix.compiler || 'gcc' }}
TEST: ${{ matrix.test }}
steps:
- - uses: actions/checkout@v4
- - uses: actions/cache@v4
+ - uses: actions/checkout@v6
+ - uses: actions/cache@v5
with:
path: ~/.cache/ccache
# with regards to ccache, monolithic builds don't differ from regular
@@ -91,7 +91,7 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
- if: ${{ failure() }}
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v6
with:
name: Logs ${{ github.job }}
path: config.log
@@ -122,8 +122,8 @@ jobs:
TEST: ${{ matrix.test }}
ACTIVE_TRANSFORMS_REF: .github/active-transforms/${{ matrix.test }}
steps:
- - uses: actions/checkout@v4
- - uses: actions/cache@v4
+ - uses: actions/checkout@v6
+ - uses: actions/cache@v5
with:
# path is different on newer systems
path: |
@@ -142,7 +142,7 @@ jobs:
echo "TESTS_ACTIVE_TRANSFORMS=$HOME/active-transforms.log" >> $GITHUB_ENV
- uses: ./.github/actions/default
- name: Upload active transforms
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v6
with:
name: active-transforms-${{ matrix.test }}-${{ matrix.os }}-${{ matrix.leak-detective }}
path: ${{ env.TESTS_ACTIVE_TRANSFORMS }}
@@ -152,7 +152,7 @@ jobs:
test ! -f $ACTIVE_TRANSFORMS_REF || diff -u --color=always $ACTIVE_TRANSFORMS_REF $TESTS_ACTIVE_TRANSFORMS
- run: ccache -s
- if: ${{ failure() }}
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v6
with:
name: Logs ${{ github.job }}
path: config.log
@@ -175,8 +175,8 @@ jobs:
CC: ${{ matrix.compiler || 'gcc' }}
TEST: ${{ matrix.test }}
steps:
- - uses: actions/checkout@v4
- - uses: actions/cache@v4
+ - uses: actions/checkout@v6
+ - uses: actions/cache@v5
with:
# path is different on newer systems
path: |
@@ -193,7 +193,7 @@ jobs:
- uses: ./.github/actions/default
- run: ccache -s
- if: ${{ failure() }}
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v6
with:
name: Logs ${{ github.job }}
path: config.log
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml
index 2ec7fcf0f2..2bd155bfc7 100644
--- a/.github/workflows/macos.yml
+++ b/.github/workflows/macos.yml
@@ -35,8 +35,8 @@ jobs:
env:
TEST: macos
steps:
- - uses: actions/checkout@v4
- - uses: actions/cache@v4
+ - uses: actions/checkout@v6
+ - uses: actions/cache@v5
with:
path: ~/Library/Caches/ccache
key: ccache-${{ runner.os }}-${{ github.sha }}
@@ -51,7 +51,7 @@ jobs:
- uses: ./.github/actions/default
- run: ccache -s
- if: ${{ failure() }}
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v6
with:
name: Logs ${{ github.job }}
path: config.log
diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml
index 7b4424a52a..47d9e8be2f 100644
--- a/.github/workflows/sonarcloud.yml
+++ b/.github/workflows/sonarcloud.yml
@@ -30,10 +30,10 @@ jobs:
env:
TEST: sonarcloud
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
with:
fetch-depth: 0
- - uses: actions/cache@v4
+ - uses: actions/cache@v5
with:
path: |
~/.cache/ccache
@@ -44,11 +44,11 @@ jobs:
sudo apt-get install -qq ccache
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
ccache -z
- - uses: SonarSource/sonarqube-scan-action/install-build-wrapper@v6.0.0
+ - uses: SonarSource/sonarqube-scan-action/install-build-wrapper@v7.1.0
- run: |
echo "BUILD_WRAPPER_OUT_DIR=$HOME/bw-output" >> $GITHUB_ENV
- uses: ./.github/actions/default
- - uses: SonarSource/sonarqube-scan-action@v6.0.0
+ - uses: SonarSource/sonarqube-scan-action@v7.1.0
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
diff --git a/.github/workflows/tkm.yml b/.github/workflows/tkm.yml
index 241f22c780..c6be0af310 100644
--- a/.github/workflows/tkm.yml
+++ b/.github/workflows/tkm.yml
@@ -31,8 +31,8 @@ jobs:
env:
TEST: tkm
steps:
- - uses: actions/checkout@v4
- - uses: actions/cache@v4
+ - uses: actions/checkout@v6
+ - uses: actions/cache@v5
with:
path: ${{ env.CCACHE_DIR }}
key: ccache-tkm-${{ github.sha }}
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index cba0512aca..8adce49bd5 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -38,8 +38,8 @@ jobs:
OS_NAME: linux
TEST: ${{ matrix.test }}
steps:
- - uses: actions/checkout@v4
- - uses: actions/cache@v4
+ - uses: actions/checkout@v6
+ - uses: actions/cache@v5
with:
path: ~/.cache/ccache
key: ccache-${{ runner.os }}-${{ matrix.test }}-${{ github.sha }}
@@ -52,7 +52,7 @@ jobs:
- uses: ./.github/actions/default
- run: ccache -s
- if: ${{ failure() }}
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v6
with:
name: Logs ${{ github.job }}
path: config.log