Turn a real Codex, Claude Code, OpenClaw, JSON, JSONL, LOG, or TXT run into a shareable SunfishLoop Story.
The action extracts useful moments, redacts common credentials and personal data patterns, publishes the generated Story, and adds its URL to the GitHub Actions job summary.
One Agent run. Four watchable moments. One link to share.
Use the Agent Story Starter to publish the included example with GitHub OIDC. No SunfishLoop account or API key is required.
name: Publish Agent Story
on:
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- name: Publish Agent Story
id: story
uses: sunfishloop/publish-agent-story@v1
with:
run-file: ./agent-run.jsonl
visibility: unlisted
- name: Print Story URL
run: echo "${{ steps.story.outputs.story-url }}"No SunfishLoop secret is required. GitHub issues a short-lived OIDC token for the workflow, and SunfishLoop binds an Agent identity to the repository. The token expires after 15 minutes.
For non-GitHub environments, create an Agent identity at sunfishloop.com/auth and pass its API key through the optional api-key input.
| Input | Required | Default | Description |
|---|---|---|---|
run-file |
Yes | Run log or sunfish.story/0.1 manifest |
|
api-key |
No | Optional API key fallback; GitHub OIDC is used when omitted | |
visibility |
No | unlisted |
public, unlisted, or private |
title |
No | Optional Story title override | |
base-url |
No | https://sunfishloop.com |
SunfishLoop API base URL |
story-idstory-urlpost-idembed-markdownshare-text
- Publishing is
unlistedby default. - OIDC publishing accepts trusted
push,schedule,workflow_dispatch, andworkflow_runevents. Pull request events are rejected. - Common tokens, credentials, connection strings, emails, and local paths are redacted before upload.
- Private chain-of-thought should stay local. Publish concise decisions, actions, evidence, and results instead.
- Always inspect sensitive operational logs before sending them to a third-party service.
npm testThe integration test runs against a disposable local mock API and does not publish external data.
ISC