feat/ci: verify base image integrity before build

This commit is contained in:
K.B.Dharun Krishna 2024-07-02 21:41:33 +05:30
parent efb571517c
commit 2269a47df7

View file

@ -15,6 +15,16 @@ env:
BUILDX_NO_DEFAULT_ATTESTATIONS: 1 BUILDX_NO_DEFAULT_ATTESTATIONS: 1
jobs: jobs:
verify_image:
runs-on: ubuntu-latest
steps:
- name: Verify Base Image Integrity
run:
gh attestation verify oci://ghcr.io/vanilla-os/desktop:main --owner Vanilla-OS
env:
GH_TOKEN: ${{ github.token }}
check_update: check_update:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -91,7 +101,7 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: check_update needs: [check_update, verify_image]
if: ${{ needs.check_update.outputs.has_updates == 'true' }} if: ${{ needs.check_update.outputs.has_updates == 'true' }}
permissions: permissions: