Skip to content

Commit 2376cfa

Browse files
committed
chore: #139 Pin GitHub Actions versions
Signed-off-by: Laurent Broudoux <[email protected]>
1 parent 5679f34 commit 2376cfa

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/build-verify.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,13 @@ jobs:
2727
run: echo "date=$(date +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
2828

2929
- name: Checkout Code
30-
uses: actions/checkout@v4
30+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4
3131

3232
- name: Setup Go
33-
uses: actions/setup-go@v5
33+
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b #v5.4.0
3434
with:
35-
go-version: '1.21.3'
35+
go-version-file: ./go.mod
36+
cache-dependency-path: ./go.sum
3637

3738
- name: Build Go packages
3839
run: |
@@ -52,15 +53,16 @@ jobs:
5253
fi
5354
5455
- name: Install Cosign
55-
uses: sigstore/[email protected]
56+
if: github.repository_owner == 'microcks' && env.PACKAGE_IMAGE == 'true'
57+
uses: sigstore/cosign-installer@d7d6bc7722e3daa8354c50bcb52f4837da5e9b6a # v3.8.1
5658

5759
- name: Set up QEMU
5860
if: github.repository_owner == 'microcks' && env.PACKAGE_IMAGE == 'true'
59-
uses: docker/setup-qemu-action@v3
61+
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
6062

6163
- name: Set up Docker Buildx
6264
if: github.repository_owner == 'microcks' && env.PACKAGE_IMAGE == 'true'
63-
uses: docker/setup-buildx-action@v3
65+
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
6466

6567
- name: Login to Quay.io and Docker Hub registries and setup multi-arch builder
6668
if: github.repository_owner == 'microcks' && env.PACKAGE_IMAGE == 'true'
@@ -72,7 +74,7 @@ jobs:
7274
7375
- name: Build and push container image for cli
7476
id: build-and-push
75-
uses: docker/[email protected]
77+
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.0
7678
if: github.repository_owner == 'microcks' && env.PACKAGE_IMAGE == 'true'
7779
with:
7880
context: .
@@ -88,6 +90,7 @@ jobs:
8890
tags: quay.io/microcks/microcks-cli:${{env.IMAGE_TAG}},docker.io/microcks/microcks-cli:${{env.IMAGE_TAG}}
8991

9092
- name: Sign the image with GitHub OIDC Token
93+
if: github.repository_owner == 'microcks' && env.PACKAGE_IMAGE == 'true'
9194
env:
9295
DIGEST: ${{ steps.build-and-push.outputs.digest }}
9396
TAGS: quay.io/microcks/microcks-cli:${{env.IMAGE_TAG}} docker.io/microcks/microcks-cli:${{env.IMAGE_TAG}}

0 commit comments

Comments
 (0)