Skip to content

Commit bc7b60c

Browse files
author
Nathan Gillett
committed
fix(ci): fetch integrity public key from spec repo
For fork PR conformance, download the public integrity key from intentproof-spec and pass it via INTENTPROOF_SPEC_INTEGRITY_PUBLIC_KEY_PATH.
1 parent 4a13aec commit bc7b60c

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,21 @@ jobs:
108108
cache: npm
109109
cache-dependency-path: intentproof-spec/package-lock.json
110110

111+
- name: Fetch spec integrity public key
112+
env:
113+
SPEC_INTEGRITY_KEY_URL: https://raw.githubusercontent.com/IntentProof/intentproof-spec/main/keys/spec-integrity.public.pem
114+
run: |
115+
set -euo pipefail
116+
curl -fsSL "${SPEC_INTEGRITY_KEY_URL}" -o "${RUNNER_TEMP}/spec-integrity.public.pem"
117+
111118
- name: Canonical spec conformance (pin check + oracle + replay)
112119
env:
113120
INTENTPROOF_SPEC_ROOT: ${{ github.workspace }}/intentproof-spec
114121
INTENTPROOF_SDK_ID: python
115122
INTENTPROOF_REPLAY_VERIFY: "1"
116123
INTENTPROOF_CONFORMANCE_JSON: "1"
117124
INTENTPROOF_CERTIFICATE_SCHEMA_VERSION: "v2"
118-
INTENTPROOF_SPEC_INTEGRITY_PUBLIC_KEY_PEM: ${{ secrets.INTENTPROOF_SPEC_INTEGRITY_PUBLIC_KEY_PEM }}
125+
INTENTPROOF_SPEC_INTEGRITY_PUBLIC_KEY_PATH: ${{ runner.temp }}/spec-integrity.public.pem
119126
run: bash scripts/spec-conformance.sh
120127

121128
- name: Upload conformance report artifact

0 commit comments

Comments
 (0)