Skip to main content

What you’ll get

One Runtime Review comment per pull request. It compares recorded jobs with base-branch history where available and keeps workload separate from runner and GitHub traffic. Each job fold links to its Actions log and public record. Comparison selects up to 200 verified base-branch workflow runs from a 30-day window ending at the selected base comparison run. Jobs use their matching records within that shared selection. See comparison limits and counts.

Install the GitHub App

Install Garnet Runtime Review

Pick the repositories you want recorded. The App is what posts the comment.

Add the Action to your workflow

Workflow files live in .github/workflows/ in your repository. Add the step to the file that already builds your pull requests, or create .github/workflows/ci.yml if you have none.Add one pinned step after checkout.
Creating .github/workflows/ci.yml from scratch? The step needs a job around it. A minimal complete file:
The push trigger records main too, so pull requests have base-branch runs to be compared with. Use your default branch name if it is not main.No token. With id-token: write, the action exchanges the job’s GitHub OIDC token with Garnet. There is no API token or repository secret to create, store, or rotate. GitHub supplies github_token itself. The run log confirms the path with Using OIDC workflow token for control-plane requests. See What Garnet sees.Records, does not block. The sensor embedded in Action v2.5.3 (Jibril v2.18.0) loads no network policy. A jibril_version override of v2.17.0 or earlier enforces the Garnet-managed network policy on authenticated runs (Security).Sensor version. Each Action release pins its own sensor default. Leave jibril_version unset to use it; the input is an optional override. For sensor releases v2.17.0 and later, the action checks the release bundle’s checksums before the sensor runs, and verifies its Sigstore attestation when github_token and the gh CLI are available.One step per job, after checkout and before installs, builds, and tests. The sensor has to be running before your workload does, so nothing earlier in the job is recorded. Adding the step twice in one job records nothing extra. A checkout above it is recommended: without one the step resolves your workflow file through the GitHub API instead.The action posts no comment. The job grants contents: read for GitHub reads and id-token: write for OIDC authentication. The comment on the pull request is the GitHub App’s, posted under its own installation. Without the App you get the job summary and the profile in app.garnet.ai, and no comment.Runners. Stock Linux x86_64 GitHub Actions runners (ubuntu-latest) using read-only eBPF — no custom kernel or agent VM plugin required. Self-hosted Linux x86_64 runners with systemd and sudo work on the same terms. In-session agent VM recording is a private design-partner preview. On any other platform or architecture, including arm64, macOS, and Windows runners, the action logs a warning, skips, and the job records nothing. The action logs the errors it catches as warnings; that is not a guarantee about every sensor or runtime failure. Runner by runner: Coverage.Fork pull requests. GitHub does not expose repository secrets to workflows triggered from a fork, so api_token arrives empty and GitHub grants no id-token: write. The action records the job locally anyway and uploads it as a garnet-run-* workflow artifact; the GitHub App collects it after the run and posts the Runtime Review. The action writes no credential to the runner, and managed network policies do not apply to these runs. Details: Fork pull requests.
Using an API token instead. If a job cannot use GitHub OIDC, create a project token in app.garnet.ai → Settings → API Tokens. Save it as the repository secret GARNET_API_TOKEN and pass it as api_token:
A non-empty api_token takes precedence and no OIDC token is requested, so id-token: write is not needed on this secondary path. Already using GARNET_API_TOKEN? You can keep it; upgrading changes no permissions. Kubernetes and other CI systems also use project API tokens.

Open a pull request

The GitHub App posts one Runtime Review comment per pull request. The comment appears while jobs are still running and fills in as each finishes, with one collapsed fold per recorded job. Unchanged folds say nothing new. First-time jobs say nothing to compare yet in the meta line. Empty workload trees say No workload network activity recorded in this job. Each recorded job also gets a Garnet Execution Summary in its job summary, written by the action itself.

Read it

A clean npm install of registry dependencies reaches registry.npmjs.org. Git or tarball dependencies and install scripts that fetch binaries add destinations of their own, so read the tree against what your dependencies explain. A destination that nothing in the job accounts for is what you are looking for. The comment records; whether it matters is your call.How to read the Execution Profile in full: The Execution Profile.

See it live

The pull request comment

Open CI / test to see bash › node reach the npm registry, with nothing new recorded against nine runs on main.

Its Execution Profile

The public report for the same recorded job, with its process tree and destinations.
Next: The Execution Profile · Use Garnet in Devin Review

Dependency-update pull requests

Keep the same pinned Garnet step on dependency bumps as on other pull requests. Put it before dependency installation and tests in each job you want recorded. Do not guard it on a token secret being present or skip bot authors: OIDC needs no repository secret. Without credentials, only fork pull requests reach the Runtime Review, through the artifact relay. Use pull_request for untrusted contributions; do not switch to a privileged pull_request_target workflow to obtain credentials. Check that the App comment names the current head and recorded jobs, then configure your reviewer to cite that evidence. A green workflow alone does not confirm capture.

Action reference

This is v2.5.3, the pinned release above.
The Runtime Review pull request comment and job summary present views of the Execution Profile. Some profiles also have a separately published, logged-out public run report on app.garnet.ai. The action itself posts no comment, no GitHub Check, and sets no commit status. The companion GitHub App’s optional Garnet record ready check is off by default and requires approving the Checks permission when enabled (see Security and permissions).The action logs errors it catches as warnings. This does not guarantee that every sensor or runtime failure leaves the job unaffected.
The action never needs pull-requests: write: the GitHub App posts the pull request comment under its own installation. It does not require contents: write, actions: write, or access to any repository secrets beyond the token you pass. Full model: Security and permissions.
Floating tags like @v2 can move after you adopt them. For supply-chain hygiene, pin to the commit SHA of the latest release.The canonical SHA is always available at garnet.ai/pins (human-readable) and garnet.ai/pins.txt (machine-readable). Both auto-update when a new release ships.
The post step appends the job’s record to the GitHub job summary as the Garnet Execution Summary, headed by that title. It is the per-job surface and does not depend on the GitHub App. What it carries:
  • Workload context — recorded job identity, comparison-independent capture facts, sensor verification status, and a Sensor network totals row. Missing fields are omitted.
  • Network egress — a table keyed by execution chain, with repeated destination names within a chain collapsed. The Execution chains · … destination associations fold shows the recorded chains with canonical names.
  • The permalink — View this job’s Execution Profile in Garnet →, last. Anonymous access requires a public, consented profile; the link alone does not establish publication. See the public run report.
preview: true adds a recorded-context preview and Garnet-managed assertions. That shape is unstable and can change without a major version bump.The PR comment is the cross-job conversation surface; the job summary is the per-job record.
Start from the Garnet step’s own log. It names which of these you are in, and the answers below differ.The step logs Garnet skipped this Runtime Review because no authentication mechanism was available — api_token was empty and no OIDC token could be requested. Fork pull requests use the artifact relay instead; other runs need OIDC or api_token to be recorded. Prefer the OIDC permissions above where available. If you deliberately use token authentication for Dependabot, its secrets.* values come from the separate Dependabot secrets store.OIDC profile lookup returns 401 in the post step — check the App comment for the current head separately. This is a profile-read failure, not proof of empty capture. Preserve the log when reporting it; do not hide the step behind a token-secret guard. Private OIDC-created profiles may also be unreadable through the MCP; a reviewer should disclose unavailable detail and cite the head-bound App comment.The step logs Garnet action encountered an unexpected error and will continue without runtime monitoring — this is the action’s general error handler. Read the specific error logged just before it.The step skips with a warning about the platform — the runner is not Linux x86_64, or systemd or sudo is missing. The log says which. Runner by runner: Coverage.Permission denied — Jibril attaches eBPF programs at the kernel level, which requires sudo during install. ubuntu-latest runners include it by default.No Garnet Execution Summary in the Actions run — set debug: true to upload Jibril’s logs as artifacts, then read jibril.log and jibril.err. If the sensor failed to start, the job summary carries a “not recorded” block with startup diagnostics instead of the record.The App comment says Runtime behavior not recorded — summary outcome not-recorded is terminal: no current-head Execution Profile was recorded. Handle incomplete too; it can describe pending capture, capture gaps, or a shutdown timeout without a record. Read status separately. For either outcome, report runtime evidence as unavailable for this head and continue without waiting. See machine outcome values.No PR comment at all — the GitHub App posts the comment; install it on the repository. The job summary and the profile in app.garnet.ai do not depend on the App, and no workflow permission changes this.The comment exists but stays in the waiting state — finalization waits for instrumented jobs and matrix legs to finish, workflow completion via workflow_run, or timeout. Missing coverage is stated explicitly. No record means unknown, not clean. Check the Garnet step’s log for the sensor’s install and start lines and whether the job summary was written. The record can be complete while the comment is not: open the run’s public run report or the dashboard to see it. If the comment never fills in, check that the repository is one the App is installed on. With GitHub OIDC, the Garnet step’s log shows Using OIDC workflow token for control-plane requests and the job needs id-token: write. With api_token, the token must belong to an organization authorized for the repository. On a fork pull request, check that the run uploaded a garnet-run-* artifact: the App collects the record from it after the run.The post step takes minutes — stop_timeout_seconds bounds sensor shutdown (default 1800). Lowering it can lose the Execution Profile; raising it guarantees neither a profile nor complete capture. See Shutdown and profile writing.A chain appears under Runner & GitHub’s own traffic instead of Workload, or vice versa — step attribution is best effort. The chain was recorded; only its placement is uncertain. See Coverage.The comment or profile names a commit that is not your PR head — the App normally resolves the checkout commit to the PR head and binds the comment to it. It falls back to the recorded commit if resolution fails. Public profile fields can still describe the workflow checkout. Match <!-- garnet:commit <sha> --> and the summary commit to the current PR head. For optional MCP detail, also match data.scenarios.github.head_sha. If head_sha is missing or different, do not use the profile as current-head evidence; use the App comment whose garnet:commit matches the head, otherwise report runtime evidence as unavailable for this head. If the comment markers do not match, report evidence unavailable for that head and continue the review without it. See Coverage for the limits of the record.Debug mode: