Skip to content

Commit 3492c42

Browse files
nddipiazzaCopilot
andcommitted
TIKA-4703: Pin docker/* actions to SHA digests per ASF policy (INFRA-27837)
ASF GitHub Actions policy requires actions to be pinned to exact commit SHAs rather than floating version tags. Align with the same approach used in apache/cloudberry PR #1688 (per guidance from Dianjin Wang on INFRA-27837). - docker/setup-buildx-action@v3 -> @8d2750c68a42422c14e847fe6c8ac0403b4cbd6f (v3.12.0) - docker/login-action@v3 -> @c94ce9fb468520275223c153574b00df6fe4bcc9 (v3.7.0) - docker/build-push-action@v6 -> @10e90e3645eae34f1e60eeb005ba3a3d33f178e8 (v6.19.2) - docker/setup-qemu-action -> replaced with native CLI (still not allowlisted per INFRA-27837) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent fd16980 commit 3492c42

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

.github/workflows/docker-release.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,19 @@ jobs:
3737
echo "tag=${TAG_NAME}" >> "$GITHUB_OUTPUT"
3838
3939
- name: Set up Docker Buildx
40-
uses: docker/setup-buildx-action@v3
40+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
4141

4242
- name: Set up QEMU for multi-arch
43-
uses: docker/setup-qemu-action@v3
43+
run: docker run --privileged --rm tonistiigi/binfmt --install all
4444

4545
- name: Login to Docker Hub
46-
uses: docker/login-action@v3
46+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
4747
with:
4848
username: ${{ secrets.DOCKERHUB_USERNAME }}
4949
password: ${{ secrets.DOCKERHUB_TOKEN }}
5050

5151
- name: Build and push tika-server minimal
52-
uses: docker/build-push-action@v6
52+
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
5353
with:
5454
file: tika-server/docker-build/minimal/Dockerfile
5555
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/s390x
@@ -61,7 +61,7 @@ jobs:
6161
apache/tika:latest
6262
6363
- name: Build and push tika-server full
64-
uses: docker/build-push-action@v6
64+
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
6565
with:
6666
file: tika-server/docker-build/full/Dockerfile
6767
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/s390x
@@ -96,13 +96,13 @@ jobs:
9696
run: mvn clean install -DskipTests -B "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"
9797

9898
- name: Set up Docker Buildx
99-
uses: docker/setup-buildx-action@v3
99+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
100100

101101
- name: Set up QEMU for multi-arch
102-
uses: docker/setup-qemu-action@v3
102+
run: docker run --privileged --rm tonistiigi/binfmt --install all
103103

104104
- name: Login to Docker Hub
105-
uses: docker/login-action@v3
105+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
106106
with:
107107
username: ${{ secrets.DOCKERHUB_USERNAME }}
108108
password: ${{ secrets.DOCKERHUB_TOKEN }}
@@ -142,7 +142,7 @@ jobs:
142142
cp "tika-grpc/docker-build/Dockerfile" "${OUT_DIR}/Dockerfile"
143143
144144
- name: Build and push tika-grpc
145-
uses: docker/build-push-action@v6
145+
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
146146
with:
147147
context: target/tika-grpc-docker
148148
platforms: linux/amd64,linux/arm64

.github/workflows/docker-snapshot.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ jobs:
4949
run: mvn clean install -DskipTests -B "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"
5050

5151
- name: Set up Docker Buildx
52-
uses: docker/setup-buildx-action@v3
52+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
5353

5454
- name: Set up QEMU for multi-arch
55-
uses: docker/setup-qemu-action@v3
55+
run: docker run --privileged --rm tonistiigi/binfmt --install all
5656

5757
- name: Login to Docker Hub
58-
uses: docker/login-action@v3
58+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
5959
with:
6060
username: ${{ secrets.DOCKERHUB_USERNAME }}
6161
password: ${{ secrets.DOCKERHUB_TOKEN }}
@@ -70,7 +70,7 @@ jobs:
7070
cp "tika-server/docker-build/minimal/Dockerfile.snapshot" "${OUT_DIR}/Dockerfile"
7171
7272
- name: Build and push tika-server minimal snapshot
73-
uses: docker/build-push-action@v6
73+
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
7474
with:
7575
context: target/tika-server-minimal-docker
7676
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/s390x
@@ -90,7 +90,7 @@ jobs:
9090
cp "tika-server/docker-build/full/Dockerfile.snapshot" "${OUT_DIR}/Dockerfile"
9191
9292
- name: Build and push tika-server full snapshot
93-
uses: docker/build-push-action@v6
93+
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
9494
with:
9595
context: target/tika-server-full-docker
9696
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/s390x
@@ -136,7 +136,7 @@ jobs:
136136
cp "tika-grpc/docker-build/Dockerfile" "${OUT_DIR}/Dockerfile"
137137
138138
- name: Build and push tika-grpc snapshot
139-
uses: docker/build-push-action@v6
139+
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
140140
with:
141141
context: target/tika-grpc-docker
142142
platforms: linux/amd64,linux/arm64

0 commit comments

Comments
 (0)