This repo and script is to help you attest and compute your measurement hash.
This is recommended for developers that want to ensure the attestation for themselves.
scripts/local-measurement-hash.sh: script to compute measurement hash for nilcc verifierdocker-compose.yaml: sample docker compose
cd scripts
chmod +x local-measurement-hash.sh
./local-measurement-hash.sh
Expected output should be something like:
9e22...b84f4
- Add the following files to your repo
.github/workflows/verify-measurement.ymlscripts/update-verification.sh
-
Edit the
scripts/update-verification.shwith yourallowedDomainsfor the website where you want to display the badge. -
Try running the script locally and then push to main
cd scripts
chmod +x update-verification.sh
./update-verification.sh
-
Push to
main -
Now tag your versions through git to trigger the GitHub Actions workflow:
git tag v0.1.1
git push origin v0.1.1
- It will run the GitHub Action and generate a PR by the GitHub Actions bot. Then merge it and use that verification-measurement-hash.json in the URL input to get the JSX / React code.