Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
tags:
- "v*"
pull_request:
branches:
- main

permissions:
contents: write
Expand All @@ -26,7 +29,11 @@ jobs:
run: |
go run ./rootfetch/main.go -o client/trusted_root.json
cp client/trusted_root.json wasm/
VERSION=${GITHUB_REF#refs/tags/}
if [[ "$GITHUB_REF" == refs/tags/v* ]]; then
VERSION=${GITHUB_REF#refs/tags/}
else
VERSION="dev-${GITHUB_SHA::8}"
fi
GOOS=js GOARCH=wasm go build \
-trimpath \
-ldflags="-buildid= -X main.version=${VERSION}" \
Expand Down Expand Up @@ -56,11 +63,13 @@ jobs:
zip -ry TinfoilVerifier.xcframework.zip TinfoilVerifier.xcframework

- name: Deploy to GH pages
if: startsWith(github.ref, 'refs/tags/v')
uses: JamesIves/github-pages-deploy-action@d92aa235d04922e8f08b40ce78cc5442fcfbfa2f # v4.8.0
with:
folder: public

- name: Release
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b #v2.5.0
with:
files: |
Expand Down
6 changes: 4 additions & 2 deletions attestation/tdx.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,10 @@ func verifyTdxReport(attestationDoc string, isCompressed bool) ([]string, []byte

// MrSeam are provided by Intel https://github.com/intel/confidential-computing.tdx.tdx-module/releases
AcceptedMrSeams := [][]byte{
{0x49, 0xb6, 0x6f, 0xaa, 0x45, 0x1d, 0x19, 0xeb, 0xbd, 0xbe, 0x89, 0x37, 0x1b, 0x8d, 0xaf, 0x2b, 0x65, 0xaa, 0x39, 0x84, 0xec, 0x90, 0x11, 0x03, 0x43, 0xe9, 0xe2, 0xee, 0xc1, 0x16, 0xa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, 0xba, 0xf7, 0x14, 0x3c, 0xc5, 0x36, 0x62, 0x72, 0x7c, 0xbd, 0xb1, 0x67, 0xc0, 0xad, 0x83, 0x85, 0xf1, 0xf6, 0xf3, 0x57, 0x15, 0x39, 0xa9, 0x1e, 0x10, 0x4a, 0x1c, 0x96, 0xd7, 0x5e, 0x04}, // 2.0.02
{0x49, 0xb6, 0x6f, 0xaa, 0x45, 0x1d, 0x19, 0xeb, 0xbd, 0xbe, 0x89, 0x37, 0x1b, 0x8d, 0xaf, 0x2b, 0x65, 0xaa, 0x39, 0x84, 0xec, 0x90, 0x11, 0x03, 0x43, 0xe9, 0xe2, 0xee, 0xc1, 0x16, 0xaf, 0x08, 0x85, 0x0f, 0xa2, 0x0e, 0x3b, 0x1a, 0xa9, 0xa8, 0x74, 0xd7, 0x7a, 0x65, 0x38, 0x0e, 0xe7, 0xe6}, // 1.5.08
}

// TdAttributes: All zeros except SEPT_VE_DISABLE => 1
Expand Down