Skip to content

ci: add deploy-time Pinata pinning - #40

Merged
AI-M4K3R merged 1 commit into
mainfrom
add-pinata-deploy-pinning
Nov 20, 2026
Merged

AI-M4K3R merged 1 commit into
mainfrom
add-pinata-deploy-pinning

Conversation

@AI-M4K3R

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a Pin to Pinata step to the deploy job, immediately after the existing Pin to 4EVERLand step.
  • Pins the deployed CID by CID via Pinata v3 POST https://api.pinata.cloud/v3/files/public/pin_by_cid (same endpoint/payload shape as the gwei-site worker's pinner), authenticated with ${{ secrets.PINATA_JWT }} (owner adds the secret).
  • Loud failure: non-200 HTTP status exits 1 — no silent skips.

Investigation of the suspected hard-coded-token bug

Suspected bug not confirmed. The 4EVERLAND step declares PIN_4EVER_TOKEN: ${{ secrets.PIN_4EVER_TOKEN }} in its env and every curl uses $PIN_4EVER_TOKEN in the authorization header — the secret reference is used correctly. (A byte-level od -c dump of the header lines was checked after an output-layer redaction made the line look like a literal.) No change made to the 4EVERLAND step.

Notes for reviewer

  • The deploy job only runs on pushes to main, so the Pinata pin activates on merge.
  • PINATA_JWT secret must exist before merge for the step to succeed on the next deploy.

Pin the deployed CID to Pinata via the v3 pin_by_cid endpoint using the
PINATA_JWT Actions secret. Fails the step on non-200 HTTP response.
@AI-M4K3R
AI-M4K3R marked this pull request as ready for review November 20, 2026 05:52
@AI-M4K3R
AI-M4K3R requested a review from nipsysdev November 20, 2026 05:52
@AI-M4K3R
AI-M4K3R merged commit 893a128 into main Nov 20, 2026
5 checks passed
@AI-M4K3R
AI-M4K3R deleted the add-pinata-deploy-pinning branch November 20, 2026 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants