5454 # https://github.com/docker/login-action
5555 - name : Log into registry ${{ env.REGISTRY }}
5656 if : github.event_name != 'pull_request'
57- uses : docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0 .0
57+ uses : docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1 .0
5858 with :
5959 registry : ${{ env.REGISTRY }}
6060 username : ${{ github.actor }}
8383 # https://github.com/docker/build-push-action
8484 - name : Build and push Docker image
8585 id : build-and-push
86- uses : docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0 .0
86+ uses : docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1 .0
8787 with :
8888 sbom : true
8989 provenance : mode=max
9999 # This automaticaly re-uses the previously generated stage from cache, so we get the exact sbom from previous build step
100100 - name : Export Application SBOM from artifact stage
101101 if : ${{ github.event_name != 'pull_request' }}
102- uses : docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0 .0
102+ uses : docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1 .0
103103 with :
104104 context : ${{ env.BUILD_CONTEXT }}
105105 file : ${{ env.DOCKERFILE_PATH }}
@@ -118,7 +118,7 @@ jobs:
118118 # Generate container SBOM.
119119 - name : Run Trivy in GitHub SBOM mode to generate CycloneDX SBOM for container
120120 if : ${{ github.event_name != 'pull_request' }}
121- uses : aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # 0.35 .0
121+ uses : aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # 0.36 .0
122122 with :
123123 scan-type : ' image'
124124 format : ' cyclonedx'
@@ -128,7 +128,7 @@ jobs:
128128
129129 - name : Upload trivy/container AND application SBOMs as a Github artifact
130130 if : ${{ github.event_name != 'pull_request' }}
131- uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
131+ uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
132132 with :
133133 name : sbom
134134 path : ' ${{ github.workspace }}/sbom-output/'
0 commit comments