Skip to content

Commit

Permalink
image: use systemd-dissect from the host when calculating measurements (
Browse files Browse the repository at this point in the history
#2473)

* image: use systemd-dissect from the host when calculating measurements

* ci: setup bazel and nix toolchains before merging os image measurements
  • Loading branch information
malt3 authored and elchead committed Oct 17, 2023
1 parent 048aefa commit 0ee1df9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-os-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,10 @@ jobs:
with:
ref: ${{ inputs.ref || github.head_ref }}

- uses: ./.github/actions/setup_bazel_nix
with:
useCache: "false"

- name: Download measurements
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
with:
Expand Down
11 changes: 8 additions & 3 deletions image/measured-boot/cmd/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,13 @@ go_binary(
],
embed = [":cmd_lib"],
# keep
env = {
"DISSECT_TOOLCHAIN": "$(rootpath @systemd//:bin/systemd-dissect)",
},
# TODO(malt3): The commented out env variable
# means we are using `systemd-dissect` from the host.
# `systemd-dissect` from nixpkgs breaks GitHub actions runners
# for unknown reasons.
# Fix this.
# env = {
# "DISSECT_TOOLCHAIN": "$(rootpath @systemd//:bin/systemd-dissect)",
# },
visibility = ["//visibility:public"],
)

0 comments on commit 0ee1df9

Please sign in to comment.