Skip to content

Commit 8c178c4

Browse files
amoyrtilclaude
andcommitted
ci: pin third-party actions to commit SHA
Pin actions/checkout, docker/setup-buildx-action and docker/login-action to full commit SHAs (with version comments so Renovate can still bump them) instead of mutable major tags. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 0e7d1c2 commit 8c178c4

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
kernel_image: ${{ steps.meta.outputs.kernel_image }}
3030
steps:
3131
- name: Checkout
32-
uses: actions/checkout@v7
32+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
3333

3434
- name: Clone siderolabs/talos
3535
run: |
@@ -63,10 +63,10 @@ jobs:
6363
git -C /tmp/pkgs apply --3way "${{ github.workspace }}/patches/kernel-config.patch"
6464
6565
- name: Set up Docker Buildx
66-
uses: docker/setup-buildx-action@v4
66+
uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
6767

6868
- name: Log in to GHCR
69-
uses: docker/login-action@v4
69+
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4
7070
with:
7171
registry: ghcr.io
7272
username: ${{ github.actor }}
@@ -114,7 +114,7 @@ jobs:
114114
installer_image: ${{ steps.meta.outputs.installer_image }}
115115
steps:
116116
- name: Checkout
117-
uses: actions/checkout@v7
117+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
118118

119119
- name: Set image tags
120120
id: meta
@@ -124,7 +124,7 @@ jobs:
124124
echo "installer_image=${INSTALLER_IMAGE}:${TAG}" >> "$GITHUB_OUTPUT"
125125
126126
- name: Log in to GHCR
127-
uses: docker/login-action@v4
127+
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4
128128
with:
129129
registry: ghcr.io
130130
username: ${{ github.actor }}
@@ -179,7 +179,7 @@ jobs:
179179
180180
- name: Set up Docker Buildx (with insecure local registry)
181181
if: steps.check-talos.outputs.exists == 'false'
182-
uses: docker/setup-buildx-action@v4
182+
uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
183183
with:
184184
buildkitd-config-inline: |
185185
[registry."localhost:5000"]
@@ -269,10 +269,10 @@ jobs:
269269
issues: write
270270
steps:
271271
- name: Checkout
272-
uses: actions/checkout@v7
272+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
273273

274274
- name: Log in to GHCR
275-
uses: docker/login-action@v4
275+
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4
276276
with:
277277
registry: ghcr.io
278278
username: ${{ github.actor }}

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
timeout-minutes: 15
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v7
15+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
1616

1717
- name: Get latest Talos release tag
1818
id: talos-version
@@ -78,7 +78,7 @@ jobs:
7878
if: contains(github.event.pull_request.title, '[full-test]')
7979
steps:
8080
- name: Checkout
81-
uses: actions/checkout@v7
81+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
8282
with:
8383
fetch-depth: 0
8484

@@ -128,7 +128,7 @@ jobs:
128128
129129
- name: Set up Docker Buildx
130130
if: steps.changes.outputs.patches_changed == 'true'
131-
uses: docker/setup-buildx-action@v4
131+
uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
132132

133133
- name: Build kernel (compilation test)
134134
if: steps.changes.outputs.patches_changed == 'true'

0 commit comments

Comments
 (0)