Skip to content

Commit

Permalink
Add CI for UEFI DBX
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Kopeć <[email protected]>
  • Loading branch information
mkopec committed Nov 21, 2023
1 parent 6ad71fc commit 1174634
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/dbx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Check if UEFI revocation list is up-to-date

on:
push:
branches:
- dasharo
pull_request:
branches:
- dasharo

jobs:
check:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Check if DBX is up-to-date
run: |
echo 'Fetching DBX from uefi.org'
wget https://uefi.org/sites/default/files/resources/x64_DBXUpdate.bin -o /dev/null
if [ $? -ne 0 ]; then
echo 'Failed to fetch latest DBX.'
exit 1
fi
diff <(sha256sum x64_DBXUpdate.bin | awk '{ print $1 }') <(sha256sum UefiPayloadPkg/SecureBootDefaultKeys/DBXUpdate.bin | awk '{ print $1 }')
if [ $? -ne 0 ]; then
echo 'UEFI DBX is out of date.'
exit 1
else
echo 'UEFI DBX is up-to-date.'
fi

0 comments on commit 1174634

Please sign in to comment.