Skip to content

Commit 06555ee

Browse files
committed
feat(ci): Verify base image with cosign before building
Validate the integrity of base image being built from via cosign before continuing to build. Ensures we only build from signed images
1 parent 91f0301 commit 06555ee

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/build.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,18 @@ jobs:
6262
- base_name: bazzite-deck
6363
image_flavor: surface-nvidia
6464
steps:
65-
- name: Maximize build space
66-
uses: ublue-os/remove-unwanted-software@v6
67-
6865
# Checkout push-to-registry action GitHub repository
6966
- name: Checkout Push to Registry action
7067
uses: actions/checkout@v4
7168

69+
- name: Verify base image
70+
uses: EyeCantCU/cosign-action/[email protected]
71+
with:
72+
containers: ${{ matrix.base_image_name }}-${{ matrix.image_flavor }}:${{ matrix.major_version }}
73+
74+
- name: Maximize build space
75+
uses: ublue-os/remove-unwanted-software@v6
76+
7277
- name: Check just syntax
7378
uses: ublue-os/just-action@v1
7479

0 commit comments

Comments
 (0)