Skip to content

Commit 2816b29

Browse files
committed
chore: #95 Force provenance to mode=max and pin action versions
Signed-off-by: Laurent Broudoux <laurent.broudoux@gmail.com>
1 parent 558f664 commit 2816b29

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/build-package.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
# Checkout repository content
2828
- name: Checkout
29-
uses: actions/checkout@v4
29+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3030

3131
- name: Set environment for branch
3232
run: |
@@ -42,15 +42,16 @@ jobs:
4242
fi
4343
4444
- name: Install Cosign
45-
uses: sigstore/cosign-installer@v3.7.0
45+
if: github.repository_owner == 'microcks' && env.PACKAGE_IMAGE == 'true'
46+
uuses: sigstore/cosign-installer@d7d6bc7722e3daa8354c50bcb52f4837da5e9b6a # v3.8.1
4647

4748
- name: Set up QEMU
4849
if: github.repository_owner == 'microcks' && env.PACKAGE_IMAGE == 'true'
49-
uses: docker/setup-qemu-action@v3
50+
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
5051

5152
- name: Set up Docker Buildx
5253
if: github.repository_owner == 'microcks' && env.PACKAGE_IMAGE == 'true'
53-
uses: docker/setup-buildx-action@v3
54+
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
5455

5556
- name: Login to Quay.io and Docker Hub registries and setup multi-arch builder
5657
if: github.repository_owner == 'microcks' && env.PACKAGE_IMAGE == 'true'
@@ -62,12 +63,13 @@ jobs:
6263
6364
- name: Build and push container image
6465
id: build-and-push
65-
uses: docker/build-push-action@v4.0.0
66+
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.0
6667
if: github.repository_owner == 'microcks' && env.PACKAGE_IMAGE == 'true'
6768
with:
6869
context: .
6970
sbom: true
7071
push: true
72+
provenance: mode=max
7173
platforms: linux/amd64,linux/arm64
7274
builder: buildx-multi-arch
7375
file: Dockerfile.ubi-minimal
@@ -77,6 +79,7 @@ jobs:
7779
tags: quay.io/microcks/microcks-postman-runtime:${{env.IMAGE_TAG}},docker.io/microcks/microcks-postman-runtime:${{env.IMAGE_TAG}}
7880

7981
- name: Sign the image with GitHub OIDC Token
82+
if: github.repository_owner == 'microcks' && env.PACKAGE_IMAGE == 'true'
8083
env:
8184
DIGEST: ${{ steps.build-and-push.outputs.digest }}
8285
TAGS: quay.io/microcks/microcks-postman-runtime:${{env.IMAGE_TAG}} docker.io/microcks/microcks-postman-runtime:${{env.IMAGE_TAG}}

0 commit comments

Comments
 (0)