Skip to content

Commit 1174634

Browse files
committed
Add CI for UEFI DBX
Signed-off-by: Michał Kopeć <[email protected]>
1 parent 6ad71fc commit 1174634

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/dbx.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Check if UEFI revocation list is up-to-date
2+
3+
on:
4+
push:
5+
branches:
6+
- dasharo
7+
pull_request:
8+
branches:
9+
- dasharo
10+
11+
jobs:
12+
check:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout Code
17+
uses: actions/checkout@v2
18+
19+
- name: Check if DBX is up-to-date
20+
run: |
21+
echo 'Fetching DBX from uefi.org'
22+
wget https://uefi.org/sites/default/files/resources/x64_DBXUpdate.bin -o /dev/null
23+
if [ $? -ne 0 ]; then
24+
echo 'Failed to fetch latest DBX.'
25+
exit 1
26+
fi
27+
diff <(sha256sum x64_DBXUpdate.bin | awk '{ print $1 }') <(sha256sum UefiPayloadPkg/SecureBootDefaultKeys/DBXUpdate.bin | awk '{ print $1 }')
28+
if [ $? -ne 0 ]; then
29+
echo 'UEFI DBX is out of date.'
30+
exit 1
31+
else
32+
echo 'UEFI DBX is up-to-date.'
33+
fi

0 commit comments

Comments
 (0)