Skip to content

Commit 96688a1

Browse files
committed
ci: publish portable sealed proof bundle
1 parent 8b170a6 commit 96688a1

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

.github/workflows/prove.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,30 @@ jobs:
6060
> artifacts/receipt-verification.json
6161
node scripts/verify-delivery.mjs .
6262
63+
- name: Prepare portable proof bundle
64+
run: |
65+
RECEIPT_ID="$(jq -r .receipt_id artifacts/run-result.json)"
66+
PORTABLE_RECEIPT="${RECEIPT_ID//:/_}.json"
67+
mkdir -p published-receipts
68+
cp "receipts/$RECEIPT_ID.json" "published-receipts/$PORTABLE_RECEIPT"
69+
jq -n \
70+
--arg receipt_id "$RECEIPT_ID" \
71+
--arg portable_path "published-receipts/$PORTABLE_RECEIPT" \
72+
'{receipt_id: $receipt_id, portable_path: $portable_path}' \
73+
> artifacts/receipt-file-map.json
74+
tar -czf dependency-cve-audit-proof.tar.gz artifacts receipts
75+
6376
- name: Upload immutable workflow artifact
6477
uses: actions/upload-artifact@v4
6578
with:
6679
name: dependency-cve-audit-proof
67-
path: |
68-
artifacts/
69-
receipts/
80+
path: dependency-cve-audit-proof.tar.gz
7081
if-no-files-found: error
7182

7283
- name: Publish proof branch
7384
run: |
7485
git config user.name "Versy Proof Bot"
7586
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
76-
git add -f artifacts receipts
87+
git add -f artifacts published-receipts dependency-cve-audit-proof.tar.gz
7788
git commit -m "chore(proof): publish sealed CVE audit"
7889
git push --force origin HEAD:proof

0 commit comments

Comments
 (0)