Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Commit

Permalink
feat(ci): Verify base image with cosign before building
Browse files Browse the repository at this point in the history
Validate the integrity of base image being built from via cosign before continuing to build. Ensures we only build from signed images
  • Loading branch information
EyeCantCU authored Dec 24, 2023
1 parent 323c91b commit aa02242
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,18 @@ jobs:
- base_image_name: onyx
major_version: 38
steps:
- name: Maximize build space
uses: ublue-os/remove-unwanted-software@v6

# Checkout push-to-registry action GitHub repository
- name: Checkout Push to Registry action
uses: actions/checkout@v3

- name: Verify base image
uses: EyeCantCU/cosign-action/verify@v0.2.1
with:
containers: ${{ matrix.base_image_name }}${{ matrix.image_flavor }}:${{ matrix.major_version }}

- name: Maximize build space
uses: ublue-os/remove-unwanted-software@v6

- name: Matrix Variables
run: |
echo "BASE_IMAGE_NAME=${{ matrix.base_image_name }}" >> $GITHUB_ENV
Expand Down

0 comments on commit aa02242

Please sign in to comment.