Repository navigation
Conversation
pin_by_cid returns 403 on the Pinata free plan ('This feature is not
supported by the current plan type'). Switch to the V3 Files API CAR
upload (POST https://uploads.pinata.cloud/v3/files with car=true),
which unpacks the CAR server-side and pins the contained root CID,
preserving the deterministic CID computed by ipfs-deploy-action. The
returned CID is checked against the deploy CID and mismatches fail.
Give each pin step continue-on-error plus an id so one pin service
failing no longer skips the others, and add a final 'Verify pin
results' step that fails the job if any pin outcome was not success.
AI-M4K3R
marked this pull request as ready for review
November 20, 2026 14:31
Collaborator
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cause
The
Pin to Pinatastep calledPOST https://api.pinata.cloud/v3/files/public/pin_by_cid, which returns HTTP 403This feature is not supported by the current plan typeon the Pinata free plan, so the Pinata pin never landed and the failing step also skippedPin to Filebase.Fix
POST https://uploads.pinata.cloud/v3/files, multipart,network=public,file=@<CAR>,name=site,car=true):car=truemakes Pinata unpack the CAR server-side and pin the contained root CID, so the deterministic CID computed byipfs-deploy-actionis preserved — this is the method in the action's official Pinata recipe. The step verifies thatdata.cidin the response matches the deploy CID and fails loudly otherwise.Pin to 4EVERLand,Pin to PinataandPin to Filebaseeach got anid+continue-on-error: true, and a finalVerify pin resultsstep (if: always()) fails the job if ANY pin outcome was notsuccess. One service failing no longer skips the others.Caveat found during research
Pinata's docs currently state that CAR uploads are a paid-plan feature ("Paid plan required - CAR uploads are not available on free plans", docs.pinata.cloud/files/uploading-files). Combined with the 403 on
pin_by_cid, this means the free plan has no API method that preserves the root CID (a plain file upload of the CAR would produce the CAR file's own CID, not the site's). This PR implements the correct CID-preserving endpoint — it will succeed as soon as the Pinata plan allows it, and until then it fails loudly with a clear error while Filebase/4EVERLAND pins now complete regardless.