compute measurements for single image

This commit is contained in:
miampf 2025-01-23 14:22:02 +01:00
parent 1feaccdc55
commit 206850609b
No known key found for this signature in database
GPG Key ID: EF039364B5B6886C

View File

@ -16,8 +16,12 @@ jobs:
uses: ./.github/actions/setup_bazel_nix
with:
useCache: "false"
# TODO: get correct path to bazel build artifacts, generate measurements and fetch released measurements, then compare.
- name: Build images and produce measurements
# TODO: get correct path to bazel build artifacts, generate measurements and fetch released measurements, then compare.
run: |
bazel build //image/system:stable
bazel build //image/measured-boot/cmd
buildPath="$PWD/bazel-bin/image"
cd $(mktemp -d)
sudo "$buildPath/measured-boot/cmd/cmd_/cmd" "$buildPath/ssystem/qemu_qemu-vtpm_stable/constellation" ./measurements.json
cat ./measurements.json | jq