@@ -42,13 +42,13 @@ jobs:
4242 if : github.head_ref == '' && github.ref == 'refs/heads/main'
4343 run : echo "BUILD_CONTEXT=main" >> $GITHUB_ENV
4444 # checkout branch
45- - uses : actions/checkout@v6
45+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
4646 # Set up QEMU for multi-architecture builds
4747 - name : Set up QEMU
48- uses : docker/setup-qemu-action@v4
48+ uses : docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # v4
4949 # Set up Docker Buildx
5050 - name : Set up Docker Buildx
51- uses : docker/setup-buildx-action@v4
51+ uses : docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4
5252 # set image version
5353 - name : Set main-branch environment
5454 if : env.BUILD_CONTEXT == 'main'
@@ -61,14 +61,14 @@ jobs:
6161 run : |
6262 echo "VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
6363 - name : Log in to the Container registry
64- uses : docker/login-action@v4
64+ uses : docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4
6565 with :
6666 registry : ${{ env.IMG_REGISTRY }}
6767 username : ${{ env.DOCKER_USER }}
6868 password : ${{ env.DOCKER_PWD }}
6969 - name : Extract metadata (tags, labels) for Docker
7070 id : meta
71- uses : docker/metadata-action@v5
71+ uses : docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5
7272 with :
7373 images : " ${{ env.IMG_REGISTRY }}/${{ env.IMG_ORG }}/${{ env.IMG_REPO }}"
7474 tags : |
7777 type=raw,value=main,enable=${{ env.BUILD_CONTEXT == 'main' }}
7878 - name : Build and push Docker image
7979 id : build-push
80- uses : docker/build-push-action@v7
80+ uses : docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7
8181 with :
8282 context : .
8383 platforms : ${{ env.PLATFORMS }}
@@ -88,12 +88,12 @@ jobs:
8888 cache-to : type=gha,mode=max
8989 provenance : mode=max
9090 - name : Install Cosign
91- uses : sigstore/cosign-installer@v3
91+ uses : sigstore/cosign-installer@7e8b541eb2e61bf99390e1afd4be13a184e9ebc5 # v3
9292 - name : Sign image with cosign
9393 run : |
9494 cosign sign --yes "${{ env.IMG_REGISTRY }}/${{ env.IMG_ORG }}/${{ env.IMG_REPO }}@${{ steps.build-push.outputs.digest }}"
9595 - name : Generate SBOM
96- uses : anchore/sbom-action@v0
96+ uses : anchore/sbom-action@57aae528053a48a3f6235f2d9461b05fbcb7366d # v0
9797 with :
9898 image : " ${{ env.IMG_REGISTRY }}/${{ env.IMG_ORG }}/${{ env.IMG_REPO }}@${{ steps.build-push.outputs.digest }}"
9999 format : spdx-json # default, but making sure of the format
0 commit comments