This is an automated email from the ASF dual-hosted git repository.

sjanc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git

commit 18b5e4cc7a2f4564a79965041390a262d8768bda
Author: Szymon Janc <[email protected]>
AuthorDate: Wed Oct 14 00:52:07 2026 +0200

    ci: Update GitHub actions to latest versions
    
    Workflows use mix of old action versions, some of them (e.g. checkout
    v3, setup-go v3) still running on deprecated Node.js versions. Update
    all actions used by build, test, compliance, CodeQL and labeler
    workflows to latest versions. Workflows adding CI approval label and
    checking workflows changes are not updated as those are going to be
    replaced.
    
    Cache in setup-go is disabled as there is no go.sum file in
    repository and newt is installed with go install.
    
    Assisted-by: Claude:claude-opus-5-5
---
 .github/workflows/build_all_apps.yml     |  7 ++++---
 .github/workflows/build_cc_target.yml    |  7 ++++---
 .github/workflows/build_ports.yml        |  6 +++---
 .github/workflows/build_targets.yml      |  7 ++++---
 .github/workflows/codeql.yml             | 12 ++++++------
 .github/workflows/compliance_check.yml   | 10 +++++-----
 .github/workflows/format_file_check.yml  |  4 ++--
 .github/workflows/labeler.yml            |  6 +++---
 .github/workflows/newt_test_all.yml      |  5 +++--
 .github/workflows/ports_syscfg_check.yml |  9 +++++----
 10 files changed, 39 insertions(+), 34 deletions(-)

diff --git a/.github/workflows/build_all_apps.yml 
b/.github/workflows/build_all_apps.yml
index 63aa9a15b..b4fbf365c 100644
--- a/.github/workflows/build_all_apps.yml
+++ b/.github/workflows/build_all_apps.yml
@@ -34,11 +34,12 @@ jobs:
     name: Build all apps
     runs-on: ubuntu-latest
     steps:
-      - uses: actions/checkout@v3
-      - uses: actions/setup-go@v3
+      - uses: actions/checkout@v7
+      - uses: actions/setup-go@v7
         with:
           go-version: 'stable'
-      - uses: carlosperate/[email protected]
+          cache: false
+      - uses: carlosperate/[email protected]
         with:
           release: '15.2.Rel1'
       - name: Install Dependencies
diff --git a/.github/workflows/build_cc_target.yml 
b/.github/workflows/build_cc_target.yml
index 07b55b2f0..e41f3b60b 100644
--- a/.github/workflows/build_cc_target.yml
+++ b/.github/workflows/build_cc_target.yml
@@ -38,11 +38,12 @@ jobs:
         gcc: ['15.2.Rel1', '14.2.Rel1', '13.2.Rel1', '12.2.Rel1', '11.3.Rel1', 
'10.3-2021.10', '9-2020-q2', '8-2019-q3']
     runs-on: ubuntu-latest
     steps:
-      - uses: actions/checkout@v3
-      - uses: actions/setup-go@v3
+      - uses: actions/checkout@v7
+      - uses: actions/setup-go@v7
         with:
           go-version: 'stable'
-      - uses: carlosperate/[email protected]
+          cache: false
+      - uses: carlosperate/[email protected]
         with:
           release: ${{ matrix.gcc }}
       - name: Install newt
diff --git a/.github/workflows/build_ports.yml 
b/.github/workflows/build_ports.yml
index 513978395..7297cc801 100644
--- a/.github/workflows/build_ports.yml
+++ b/.github/workflows/build_ports.yml
@@ -34,8 +34,8 @@ jobs:
     name: Build ports
     runs-on: ubuntu-latest
     steps:
-      - uses: actions/checkout@v3
-      - uses: carlosperate/[email protected]
+      - uses: actions/checkout@v7
+      - uses: carlosperate/[email protected]
         with:
           release: '15.2.Rel1'
       - name: Install Dependencies
@@ -45,7 +45,7 @@ jobs:
              sudo apt-get install -y make ccache gcc-multilib g++-multilib 
kconfig-frontends libmbedtls-dev cmake build-essential
       - name: Cache 32-bit Mbed TLS 3.6
         id: cache-mbedtls
-        uses: actions/cache@v4
+        uses: actions/cache@v6
         with:
           path: ${{ github.workspace }}/mbedtls_install
           key: ${{ runner.os }}-mbedtls-3.6.5
diff --git a/.github/workflows/build_targets.yml 
b/.github/workflows/build_targets.yml
index dab86989e..e75d34799 100644
--- a/.github/workflows/build_targets.yml
+++ b/.github/workflows/build_targets.yml
@@ -38,11 +38,12 @@ jobs:
         os: [ubuntu-latest, windows-latest, macos-latest]
     runs-on: ${{ matrix.os }}
     steps:
-      - uses: actions/checkout@v3
-      - uses: actions/setup-go@v3
+      - uses: actions/checkout@v7
+      - uses: actions/setup-go@v7
         with:
           go-version: 'stable'
-      - uses: carlosperate/[email protected]
+          cache: false
+      - uses: carlosperate/[email protected]
         with:
           release: '15.2.Rel1'
       - name: Install Dependencies
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
index 563cb4023..d693eab02 100644
--- a/.github/workflows/codeql.yml
+++ b/.github/workflows/codeql.yml
@@ -49,13 +49,13 @@ jobs:
 
     steps:
     - name: Checkout repository
-      uses: actions/checkout@v3
+      uses: actions/checkout@v7
       with:
         submodules: recursive
 
     # Initializes the CodeQL tools for scanning.
     - name: Initialize CodeQL
-      uses: github/codeql-action/init@v3
+      uses: github/codeql-action/init@v4
       with:
         languages: ${{ matrix.language }}
         # If you wish to specify custom queries, you can do so here or in a 
config file.
@@ -70,7 +70,7 @@ jobs:
     # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, 
or Swift).
     # If this step fails, then you should remove it and run the build manually 
(see below)
     #- name: Autobuild
-    #  uses: github/codeql-action/autobuild@v3
+    #  uses: github/codeql-action/autobuild@v4
 
     # â„šī¸ Command-line programs to run using the OS shell.
     # 📚 See 
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -82,7 +82,7 @@ jobs:
         ./.github/workflows/codeql-buildscript.sh
 
     - name: Perform CodeQL Analysis
-      uses: github/codeql-action/analyze@v3
+      uses: github/codeql-action/analyze@v4
       with:
         category: "/language:${{matrix.language}}"
         upload: false
@@ -111,14 +111,14 @@ jobs:
         output: ${{ steps.step1.outputs.sarif-output }}/cpp.sarif
 
     - name: Upload CodeQL results to code scanning
-      uses: github/codeql-action/upload-sarif@v3
+      uses: github/codeql-action/upload-sarif@v4
       with:
         sarif_file: ${{ steps.step1.outputs.sarif-output }}
         category: "/language:${{matrix.language}}"
 
     - name: Upload CodeQL results as an artifact
       if: success() || failure()
-      uses: actions/upload-artifact@v4
+      uses: actions/upload-artifact@v7
       with:
         name: codeql-results
         path: ${{ steps.step1.outputs.sarif-output }}
diff --git a/.github/workflows/compliance_check.yml 
b/.github/workflows/compliance_check.yml
index 7e051ae2a..f62c7d775 100644
--- a/.github/workflows/compliance_check.yml
+++ b/.github/workflows/compliance_check.yml
@@ -32,7 +32,7 @@ jobs:
     name: Coding style
     runs-on: ubuntu-24.04
     steps:
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v7
         with:
           fetch-depth: 0
       - name: Install Dependencies
@@ -42,7 +42,7 @@ jobs:
 
       - name: Check label
         id: label_check
-        uses: actions/github-script@v7
+        uses: actions/github-script@v9
         with:
           script: |
             const labelName = 'skip-style-check';
@@ -82,7 +82,7 @@ jobs:
     name: Licensing
     runs-on: ubuntu-24.04
     steps:
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v7
         with:
           fetch-depth: 0
       - name: Install Dependencies
@@ -102,7 +102,7 @@ jobs:
     name: Doxygen Style
     runs-on: ubuntu-24.04
     steps:
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v7
         with:
           fetch-depth: 0
       - name: Install Dependencies
@@ -119,7 +119,7 @@ jobs:
     name: Check commit messages
     runs-on: ubuntu-latest
     steps:
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v7
         with:
           fetch-depth: 0
 
diff --git a/.github/workflows/format_file_check.yml 
b/.github/workflows/format_file_check.yml
index f67a05311..92dbe0e46 100644
--- a/.github/workflows/format_file_check.yml
+++ b/.github/workflows/format_file_check.yml
@@ -33,7 +33,7 @@ jobs:
     if: github.event.repository.fork == false
     steps:
       - name: Checkout current repo
-        uses: actions/checkout@v4
+        uses: actions/checkout@v7
 
       - name: Download .clang-format from source
         run: |
@@ -55,7 +55,7 @@ jobs:
 
       - name: Create Pull Request
         if: steps.changed.outputs.changed == 'true'
-        uses: peter-evans/create-pull-request@v7
+        uses: peter-evans/create-pull-request@v8
         with:
           author: Mynewt Bot <[email protected]>
           token: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml
index c084f29d8..930a77513 100644
--- a/.github/workflows/labeler.yml
+++ b/.github/workflows/labeler.yml
@@ -30,16 +30,16 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - name: Checkout repository
-        uses: actions/checkout@v3
+        uses: actions/checkout@v7
 
       - name: Assign labels based on paths
-        uses: actions/labeler@v5
+        uses: actions/labeler@v7
         with:
           sync-labels: true
           configuration-path: .github/labeler_cfg.yml
 
       - name: Assign labels based on the PR's size
-        uses: codelytv/[email protected]
+        uses: codelytv/[email protected]
         with:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           ignore_file_deletions: true
diff --git a/.github/workflows/newt_test_all.yml 
b/.github/workflows/newt_test_all.yml
index b3241673c..289270279 100644
--- a/.github/workflows/newt_test_all.yml
+++ b/.github/workflows/newt_test_all.yml
@@ -34,10 +34,11 @@ jobs:
     name: Run newt test all
     runs-on: ubuntu-latest
     steps:
-      - uses: actions/checkout@v3
-      - uses: actions/setup-go@v3
+      - uses: actions/checkout@v7
+      - uses: actions/setup-go@v7
         with:
           go-version: 'stable'
+          cache: false
       - name: Install Dependencies
         shell: bash
         run: |
diff --git a/.github/workflows/ports_syscfg_check.yml 
b/.github/workflows/ports_syscfg_check.yml
index 75332eb98..e49b33c58 100644
--- a/.github/workflows/ports_syscfg_check.yml
+++ b/.github/workflows/ports_syscfg_check.yml
@@ -35,11 +35,12 @@ jobs:
       pull-requests: write
     if: github.event.repository.fork == false
     steps:
-      - uses: actions/checkout@v3
-      - uses: actions/setup-go@v3
+      - uses: actions/checkout@v7
+      - uses: actions/setup-go@v7
         with:
           go-version: 'stable'
-      - uses: carlosperate/[email protected]
+          cache: false
+      - uses: carlosperate/[email protected]
         with:
           release: '15.2.Rel1'
       - name: Install Dependencies
@@ -91,7 +92,7 @@ jobs:
           cd ../../..
           rm -rf build
       - name: Create Pull Request
-        uses: peter-evans/create-pull-request@v6
+        uses: peter-evans/create-pull-request@v8
         with:
           author: Mynewt Bot <[email protected]>
           token: ${{ secrets.GITHUB_TOKEN }}

Reply via email to