Repository navigation
ci: add Filebase pin step after Pinata pin - #41
Merged
Merged
Conversation
Pin every deploy CID to Filebase via its IPFS Pinning Service API (POST https://api.filebase.io/v1/ipfs/pins, Bearer token, JSON {cid, name}), verified against the current Filebase docs: - re-pin existing CID: pinning-files guide -> Pinning Service API - auth: per-bucket Secret Access Token generated in the console (Access Keys -> IPFS RPC API endpoint -> Choose Bucket to Generate Token) - replace flow (POST /pins/{requestid}) reuses the existing 'site' pin on redeploy instead of stacking duplicate pins, mirroring the 4EVERLAND step The step fails the deploy on any error: non-200 list, non-202 create/replace, 'failed' pin status, or a 60s poll timeout. FILEBASE_TOKEN secret holds the pin token (falls back to FILEBASE_SECRET if the token was stored there).
AI-M4K3R
marked this pull request as ready for review
November 20, 2026 11:29
nipsysdev
approved these changes
Nov 20, 2026
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.
What
Adds a Pin to Filebase step to the deploy job, directly after the Pinata step, so every deploy CID is pinned at 4EVERLAND → Pinata → Filebase.
API verified from current official Filebase docs
POST https://api.filebase.io/v1/ipfs/pinswith JSON{"cid": "...", "name": "site"}— the documented way to re-pin an existing CID (docs: Pinning files → Re-pin an existing CID and IPFS Pinning Service API).202 Acceptedreturning aPinStatus(requestid,status) — the step requires 202 and fails otherwise.Authorization: Bearer <access-token>where the token is a per-bucket Secret Access Token generated in the console (Access Keys → IPFS RPC API endpoint → Choose Bucket to Generate Token). Important: the current docs do not document using the S3 access-key/secret pair against/v1/ipfs/pins— those authenticate the S3 API (SigV4, s3.filebase.io) and the Platform API only. See owner steps below.GET /v1/ipfs/pins?name=site&match=exact&limit=1, 200) and replaces the existing pin (POST /v1/ipfs/pins/{requestid}, 202 — documented replace semantics) instead of stacking duplicate pins, mirroring the 4EVERLAND step. It then pollsGET /v1/ipfs/pins/{requestid}(max 60s) and fails the deploy on any error: non-200 list, non-202 create/replace,failedstatus, or poll timeout — no silent skips.Checks
actionlint: no issues in the new step (the two SC2086 shellcheck infos in the 4EVERLAND step pre-exist on main, verified againstorigin/main).bash -non the embedded script: clean.pnpm lint(biome): 107 files, clean.Owner steps (before the first Filebase pin can succeed)
FILEBASE_TOKENActions secret. The step reads${{ secrets.FILEBASE_TOKEN || secrets.FILEBASE_SECRET }}— if the already-setFILEBASE_SECRETholds this token it works as-is; if it holds the S3 secret key, the pins API will reject it with 401 and the token must go intoFILEBASE_TOKEN.Related worker-side change: nipsysdev/gwei-site#6 fills the Filebase gateway slot in the serving failover chain.