Skip to content

Commit 3815995

Browse files
authored
chore: fix Github action including 'generate-sbom' sub-action (#311)
1 parent 663ce30 commit 3815995

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

.github/workflows/prod-docker-build-push.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,3 @@ jobs:
4949
run: |
5050
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$TAG_VERSION
5151
docker push $ECR_REGISTRY/$ECR_REPOSITORY:latest
52-
53-
- name: Docker generate SBOM
54-
uses: cds-snc/security-tools/.github/actions/generate-sbom@5a93d1deec72d4cb2737cb8418364fedba1c695c # v3.2.1
55-
env:
56-
TRIVY_DB_REPOSITORY: ${{ vars.TRIVY_DB_REPOSITORY }}
57-
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
58-
with:
59-
docker_image: "${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:${{ env.TAG_VERSION }}"
60-
dockerfile_path: "Dockerfile"
61-
sbom_name: "forms-api"
62-
token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/staging-docker-build-push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
docker push $ECR_REGISTRY/$ECR_REPOSITORY:latest
5555
5656
- name: Docker generate SBOM
57-
uses: cds-snc/security-tools/.github/actions/generate-sbom@5a93d1deec72d4cb2737cb8418364fedba1c695c # v3.2.1
57+
uses: cds-snc/security-tools/.github/actions/generate-sbom@12a0cdea1c5a515dfcbe353693db804a1793c0ed # v4.0.1
5858
env:
5959
TRIVY_DB_REPOSITORY: ${{ vars.TRIVY_DB_REPOSITORY }}
6060
ECR_REGISTRY: ${{ steps.login-ecr-staging.outputs.registry }}

0 commit comments

Comments
 (0)