mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-24 14:22:14 -05:00
ci: parse ovmf binaries from metadata (#1962)
Subsequently the metadata will be uploaded to the attestationconfigapi so the CLI can use the data to precalculate measurements.
This commit is contained in:
parent
28e29ffe61
commit
583d3021fa
24
.github/workflows/aws-snp-launchmeasurement.yml
vendored
24
.github/workflows/aws-snp-launchmeasurement.yml
vendored
@ -47,25 +47,19 @@ jobs:
|
||||
ovmfPath=$(realpath result/ovmf_img.fd)
|
||||
echo "ovmfPath=${ovmfPath}" | tee -a "$GITHUB_OUTPUT"
|
||||
|
||||
|
||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
||||
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3.5.2
|
||||
with:
|
||||
repository: IBM/sev-snp-measure.git
|
||||
repository: edgelesssys/sev-snp-measure-go.git
|
||||
ref: main
|
||||
path: sev-snp-measure
|
||||
path: sev-snp-measure-go
|
||||
|
||||
- name: Run sev-snp-measure
|
||||
|
||||
- name: Generate API objects
|
||||
shell: bash
|
||||
run: |
|
||||
pushd sev-snp-measure || exit 1
|
||||
echo '[]' > intermediate.json
|
||||
pushd sev-snp-measure-go/sevsnpmeasure || exit 1
|
||||
go build .
|
||||
|
||||
for vcpus in 2 4 8 16 32 48 64;
|
||||
do
|
||||
measurement="$(./sev-snp-measure.py --mode snp --vmm-type=ec2 --vcpus="$vcpus" --ovmf=${{ steps.build-uefi.outputs.ovmfPath }})"
|
||||
./sevsnpmeasure parse-metadata ${{ steps.build-uefi.outputs.ovmfPath }} -o metadata.json
|
||||
|
||||
jq --arg vcpus "$vcpus" --arg measurement "$measurement" '. += [{"vcpus": $vcpus, "measurement": $measurement}]' intermediate.json > measurements.json
|
||||
cp measurements.json intermediate.json
|
||||
done
|
||||
|
||||
jq < measurements.json
|
||||
jq < metadata.json
|
||||
|
Loading…
Reference in New Issue
Block a user