Skip to content

Commit e7ee1be

Browse files
committed
feat: Attach sbom and provenance to images
1 parent 73aa4bd commit e7ee1be

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

.github/workflows/main.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,16 @@ jobs:
4444
nginx-tag: "${{ steps.target_nginx_tag.outputs.tag }}"
4545
matrix-nginx: "${{ matrix.nginx }}"
4646
docker-repository: "${{ vars.DOCKER_REPOSITORY }}"
47-
- uses: docker/setup-qemu-action@v2
47+
- uses: docker/setup-qemu-action@v3
4848
name: Set up QEMU
49-
- uses: docker/setup-buildx-action@v2
49+
- uses: docker/setup-buildx-action@v3
5050
name: Set up Docker Buildx
51-
- uses: docker/login-action@v2
51+
- uses: docker/login-action@v3
5252
name: Login to Docker Hub
5353
with:
5454
username: ${{ secrets.DOCKER_USERNAME }}
5555
password: ${{ secrets.DOCKER_PASSWORD }}
56-
- uses: docker/build-push-action@v4
56+
- uses: docker/build-push-action@v6
5757
name: Build and push
5858
if: ${{ steps.target_tags.outputs.tags != '' }}
5959
with:
@@ -63,3 +63,5 @@ jobs:
6363
pull: true
6464
tags: ${{ steps.target_tags.outputs.tags }}
6565
build-args: NGINX_TAG=${{ steps.target_nginx_tag.outputs.tag }}
66+
provenance: mode=max
67+
sbom: true

.github/workflows/update.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,16 @@ jobs:
7070
if: steps.check_if_update_is_necessary.outputs.needs_update == 'true'
7171
- run: "make test NGINX_TAG=\"${{ steps.target_nginx_tag.outputs.tag }}\""
7272
if: steps.check_if_update_is_necessary.outputs.needs_update == 'true'
73-
- uses: docker/setup-qemu-action@v2
73+
- uses: docker/setup-qemu-action@v3
7474
name: Set up QEMU
75-
- uses: docker/setup-buildx-action@v2
75+
- uses: docker/setup-buildx-action@v3
7676
name: Set up Docker Buildx
77-
- uses: docker/login-action@v2
77+
- uses: docker/login-action@v3
7878
name: Login to Docker Hub
7979
with:
8080
username: ${{ secrets.DOCKER_USERNAME }}
8181
password: ${{ secrets.DOCKER_PASSWORD }}
82-
- uses: docker/build-push-action@v4
82+
- uses: docker/build-push-action@v6
8383
name: Build and push
8484
if: ${{ steps.check_if_update_is_necessary.outputs.needs_update == 'true' && steps.target_image_name.outputs.tags != '' }}
8585
with:
@@ -89,3 +89,5 @@ jobs:
8989
pull: true
9090
tags: ${{ steps.target_image_name.outputs.tags }}
9191
build-args: NGINX_TAG=${{ steps.target_nginx_tag.outputs.tag }}
92+
provenance: mode=max
93+
sbom: true

0 commit comments

Comments
 (0)