Skip to content

Commit e42aa31

Browse files
amtiYoclaude
andcommitted
ci: pin every action to a commit, one version across the family
A `uses: actions/checkout@v6` names a tag, and a tag is a pointer its owner can move at any time. These workflows hold `packages: write` and a registry credential, so what that pointer resolves to on the next run matters. A commit SHA cannot be moved. The versions had also drifted apart on their own -- checkout was on v4 in one repository, v5 in another and v6 in a third -- so this also puts every repository on the same one. The inputs in use (fetch-depth, go-version-file, python-version, cache) are unchanged across those majors. actions/github-script is the one that moves more than a major here: v7 and v8 are Node runtime bumps and the scripts only use github.rest.* and context.repo, which are unchanged, but it is the reference worth watching on the first run. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FxNv1rk7jMQtb9tMBREc5B
1 parent 222f5fa commit e42aa31

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818
name: Build, vet, test
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5
22-
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
21+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
22+
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
2323
with:
2424
go-version-file: go.mod
2525
cache: true
@@ -52,8 +52,8 @@ jobs:
5252
--health-timeout 5s
5353
--health-retries 20
5454
steps:
55-
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5
56-
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
55+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
56+
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
5757
with:
5858
go-version-file: go.mod
5959
cache: true
@@ -66,8 +66,8 @@ jobs:
6666
name: Vulnerability scan
6767
runs-on: ubuntu-latest
6868
steps:
69-
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5
70-
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
69+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
70+
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
7171
with:
7272
go-version-file: go.mod
7373
cache: true
@@ -80,7 +80,7 @@ jobs:
8080
name: Docker build
8181
runs-on: ubuntu-latest
8282
steps:
83-
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5
83+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
8484
- name: Build image
8585
run: docker build -t voicy:ci .
8686
- name: Validate Compose

‎.github/workflows/release.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ jobs:
1414
name: Verify release source
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5
17+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
1818
with:
1919
fetch-depth: 0
2020
- name: Require tag commit on main
2121
run: |
2222
git fetch origin main
2323
git merge-base --is-ancestor "$GITHUB_SHA" origin/main
24-
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
24+
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
2525
with:
2626
go-version-file: go.mod
2727
cache: true
@@ -65,8 +65,8 @@ jobs:
6565
--health-timeout 5s
6666
--health-retries 20
6767
steps:
68-
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5
69-
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
68+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
69+
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
7070
with:
7171
go-version-file: go.mod
7272
cache: true
@@ -80,7 +80,7 @@ jobs:
8080
needs: [verify, database]
8181
runs-on: ubuntu-latest
8282
steps:
83-
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5
83+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
8484
- name: Resolve build metadata
8585
id: meta
8686
run: |

0 commit comments

Comments
 (0)