Skip to content

Commit c88cb4d

Browse files
committed
chore: test SBOM generation for PR builds
1 parent cdefa69 commit c88cb4d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/build.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
with:
2828
path: dist.tar
2929
build-image:
30+
if: github.actor != 'dependabot[bot]'
3031
permissions:
3132
contents: read
3233
packages: write
@@ -45,23 +46,23 @@ jobs:
4546
- name: untar binaries
4647
run: tar -xvf dist.tar
4748
- name: Login to GHCR
48-
if: github.actor != 'dependabot[bot]'
4949
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
5050
with:
5151
registry: ghcr.io
5252
username: ${{ github.repository_owner }}
5353
password: ${{ secrets.GITHUB_TOKEN }}
54+
- name: Set up Docker Buildx to support SBOM generation
55+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
5456
- name: Get Docker metadata
55-
if: github.actor != 'dependabot[bot]'
5657
id: docker_metadata
5758
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0
5859
with:
5960
images: ghcr.io/${{ github.repository }}/${{ matrix.binary }}
6061
- name: Build and push ${{ matrix.binary }} container image
61-
if: github.actor != 'dependabot[bot]'
6262
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
6363
with:
6464
push: true
65+
sbom: true
6566
tags: ${{ steps.docker_metadata.outputs.tags }}
6667
labels: ${{ steps.docker_metadata.outputs.labels }}
6768
file: Dockerfile

0 commit comments

Comments
 (0)