Turn a GitHub Actions workflow run into a flamegraph SVG with step-level granularity.
Example for https://github.com/octocat/Hello-World/actions/runs/22796200342:
cargo build --release
# binary at target/release/gha-flamegraphexport GHA_FLAMEGRAPH_GITHUB_TOKEN=ghp_...
gha-flamegraph --repo owner/name --run-id 1234567890
# → Wrote flamegraph to flamegraph.svggha-flamegraph --token $(gh auth token) --repo owner/name --run-id 1234567890
# → Wrote flamegraph to flamegraph.svgUsage:
gha-flamegraph: turn a GitHub Actions workflow run into a flamegraph SVG
Usage: gha-flamegraph [OPTIONS] --repo <REPO> --run-id <RUN_ID> --token <TOKEN>
Options:
--repo <REPO> Repository in `owner/name` form (e.g. `octocat/Hello-World`)
--run-id <RUN_ID> Workflow run ID to inspect
--token <TOKEN> GitHub token. Falls back to GHA_FLAMEGRAPH_GITHUB_TOKEN [env: GHA_FLAMEGRAPH_GITHUB_TOKEN]
--output <PATH> Path for the rendered SVG flamegraph. Defaults to `flamegraph.svg` in the current directory [default: flamegraph.svg]
-h, --help Print help
-V, --version Print version