← All guides
CI pipeline ephemeral secrets
Sometimes a deploy job needs a short-lived token or bundle produced in an earlier CI step. Storing it in GitHub Actions outputs is awkward; FastPaste gives you a one-time handoff.
Example
# Job 1 — produce token
export FASTPASTE_API_KEY=${{ secrets.FASTPASTE_API_KEY }}
CODE=$(node cli/fastpaste.mjs push "$DEPLOY_TOKEN")
echo "code=$CODE" >> $GITHUB_OUTPUT
# Job 2 — consume once
TOKEN=$(node cli/fastpaste.mjs pull ${{ needs.build.outputs.code }})
./deploy.sh "$TOKEN"Good practices
- Use API keys with the minimum plan limits you need.
- Set
webhook_urlif downstream automation should run when the clip is pulled. - Prefer single-read clips unless a human and a bot both need access within minutes.
See the API reference for limits per plan.