ci: name the exact tag each docker action pin is
The floating v4 and v7 tags of setup-buildx-action and build-push-action
have moved past the pinned commits, so zizmor reads their comments as
lies. Each pin now names the release that is that commit.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AHtenXohDhpqANgMby5weB
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 8bbaec0..4fa895b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -54,22 +54,22 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- - uses: docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e # v4
- - uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4
+ - uses: docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e # v4.3.0
+ - uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- id: short-sha
run: echo "sha=${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT"
- - uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6
+ - uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6.2.0
id: meta
with:
images: ghcr.io/${{ github.repository }}
flavor: latest=true
tags: |
type=raw,value={{date 'YYYYMMDD-HHmm'}}-${{ steps.short-sha.outputs.sha }}
- - uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7
+ - uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
with:
context: .
push: true
@@ -102,13 +102,13 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- - uses: docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e # v4
- - uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4
+ - uses: docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e # v4.3.0
+ - uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- - uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6
+ - uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6.2.0
id: meta
with:
images: ghcr.io/${{ github.repository }}
@@ -116,7 +116,7 @@ jobs:
tags: |
type=raw,value=${{ needs.build.outputs.version }}-ruby-head-zjit
type=raw,value=ruby-head-zjit
- - uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7
+ - uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
with:
context: .
# Pulled fresh each time: HEAD is the point, so a cached base