git » spf » commit 112b78d

ci: Update versions of actions/checkout and actions/setup-go

author Alberto Bertogli
2026-08-22 09:21:16 UTC
committer Alberto Bertogli
2026-08-22 09:23:17 UTC
parent 5c91a7f1fe51ce590e634da6a1a9f0bce2b8ba3c

ci: Update versions of actions/checkout and actions/setup-go

The versions of actions/checkout and actions/setup-go we use are
deprecated and may stop working in the future.

This patch updates them to the latest, and also set explicit permissions
to read-only.

.github/workflows/tests.yaml +7 -4

diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml
index 325cd22..63551c0 100644
--- a/.github/workflows/tests.yaml
+++ b/.github/workflows/tests.yaml
@@ -9,6 +9,9 @@ on:
   schedule:
     - cron: '16 21 * * 6'
 
+permissions:
+  contents: read
+
 jobs:
   tests:
     runs-on: ubuntu-latest
@@ -18,8 +21,8 @@ jobs:
         # Oldest supported version, and latest.
         go-version: [ '1.25.x', '1.x' ]
     steps:
-      - uses: actions/checkout@v3
-      - uses: actions/setup-go@v3
+      - uses: actions/checkout@v7
+      - uses: actions/setup-go@v7
         with:
           go-version: ${{ matrix.go-version }}
           check-latest: true
@@ -33,8 +36,8 @@ jobs:
     runs-on: ubuntu-latest
     timeout-minutes: 5
     steps:
-      - uses: actions/checkout@v3
-      - uses: actions/setup-go@v3
+      - uses: actions/checkout@v7
+      - uses: actions/setup-go@v7
         with:
           go-version: '1.x'
           check-latest: true