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

Commit

Permalink
chore: add checksum signing
Browse files Browse the repository at this point in the history
sign checksum to verify it's integrity
  • Loading branch information
BobyMCbobs committed Feb 25, 2024
1 parent e36da20 commit 0811d47
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/test-iso.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
permissions:
contents: read
packages: write
id-token: write
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -55,4 +56,4 @@ jobs:
run: exit 1
- name: Exit
shell: bash
run: exit 0
run: exit 0
9 changes: 9 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ runs:
ref: ${{ inputs.ACTION_REF }}
submodules: recursive

- name: install cosign
uses: sigstore/[email protected]

- name: Install dependencies
shell: bash
run: make install-deps
Expand Down Expand Up @@ -124,6 +127,12 @@ runs:
sha256sum ${{ inputs.IMAGE_NAME }}-${{ inputs.IMAGE_TAG || inputs.VERSION }}.iso > ./end_iso/${{ inputs.IMAGE_NAME }}-${{ inputs.IMAGE_TAG || inputs.VERSION }}-CHECKSUM
mv ${{ inputs.IMAGE_NAME }}-${{ inputs.IMAGE_TAG || inputs.VERSION }}.iso end_iso/
- name: sign checksum
shell: bash
run: |
cosign sign-blob ./end_iso/${{ inputs.IMAGE_NAME }}-${{ inputs.IMAGE_TAG || inputs.VERSION }}-CHECKSUM --bundle ./end_iso/${{ inputs.IMAGE_NAME }}-${{ inputs.IMAGE_TAG || inputs.VERSION }}.bundle
cosign verify-blob ./end_iso/${{ inputs.IMAGE_NAME }}-${{ inputs.IMAGE_TAG || inputs.VERSION }}-CHECKSUM --bundle ./end_iso/${{ inputs.IMAGE_NAME }}-${{ inputs.IMAGE_TAG || inputs.VERSION }}.bundle
- name: Upload ISO as artifact
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 0811d47

Please sign in to comment.