Workflow permissions
The action needs no
pull-requests: write, contents: write, checks: write, statuses: write, actions: write, or secrets: inherit. It posts no comment or Check, sets no commit status, and writes nothing to the repository. That statement covers this action, not the App or any other consumer. The pull request comment is the GitHub App’s, posted under its own installation (changed in v2.3.0: earlier releases posted a fallback comment themselves and asked for pull-requests: write). A top-level permissions: {} with per-job grants keeps each grant scoped to the job that needs it, rather than handing the whole workflow the default token scope. Fork pull requests are a separate mechanism: on the standard pull_request trigger, they receive no repository secrets and no id-token: write.
These are the workflow’s grants to the action step. The GitHub App below is a separate install with its own permission set; installing it changes nothing in your workflow file. The table below is what the App asks for; what an installation actually granted is visible only in the installing organization’s settings. Recording does not depend on the App: the workflow grants above cover the action, the job summary, and the profile in the dashboard on their own. The comment does.
GitHub App permissions
Installing Garnet Runtime Review shows GitHub’s permission screen. These grants are separate from the workflow token. The live App registration asks for the first four grants below; the Checks row applies only once the optional record-ready check is enabled. The App needs no Workflows grant.Webhook events
The App subscribes toworkflow_run and repository. GitHub sends every App installation and installation_repositories as well. Deliveries go to api.garnet.ai. Garnet checks each delivery against the webhook secret (X-Hub-Signature-256), queues it, and deduplicates it by delivery ID.
The App does not subscribe to
pull_request or workflow_job.
A webhook payload names the repository and its visibility, the run, its conclusion, and its head commit. It carries no code, no diff, and no log.
The App’s readiness check is off by default in production. See the staged Checks model for what it signals and how it differs from repository policy.
Installing the App on a repository that runs the action
The App owns the Runtime Review comment; the action records. Without a Garnet credential, the action records locally only on a forkpull_request that Dependabot did not open or trigger. It uploads a garnet-run-* workflow artifact. Repository readers can download the artifact. The action strips command-line and environment fields from the profile and sets retention to seven days. The App collects the artifact and posts the comment.
Secrets
The action declares two token inputs,api_token and github_token, and reads no other entry in secrets.
- Where
api_tokengoes. The action writes it to/etc/default/jibril, owned by root, mode600, and the sensor reads it from there. The action never passes it on a command line, and the run log prints the file redacted. - What it is used for. This path uses it to mint an Execution Profile into your Garnet organization. Garnet defines the token’s full authorized scope, not this workflow. Rotate it under Settings → API Tokens in app.garnet.ai.
github_tokendefaults to${{ github.token }}. The action uses it forgh attestation verifyon the sensor release and to read the job’s status when no Execution Profile was produced. The action never uses it to post anything.- Recording without credentials. Only fork
pull_requestjobs that Dependabot did not open or trigger use the artifact relay. They write no Garnet credential to the runner and do not fetch managed network policies. Without credentials, jobs on same-repository pull requests,pull_request_target, and Dependabot skip recording.
GitHub OIDC removes the secret. Leave
api_token empty and grant id-token: write: the action requests a short-lived GitHub OIDC token in the job and exchanges it with Garnet. A non-empty api_token always wins and no OIDC token is requested. Both paths are in the quick start.Public repositories can record with OIDC without a Garnet account or a visit to app.garnet.ai. Sign in there to access private records or create API tokens, not to set up public OIDC recording.What runs on the runner
The step downloads the Jibril sensor from garnet-org/jibril-releases over HTTPS, installs it withsudo, and starts it as a systemd service. The sensor runs as root because attaching eBPF programs requires it. Every eBPF program passes the kernel verifier before it loads.
- Sensor version. Each Action release pins its own sensor default. Leave
jibril_versionunset or empty to use it; the input is an optional override. Onlylatestfollows the latest stable sensor release. The integrity checks below apply to tags v2.17.0 and later, including their release candidates. - Integrity and authenticity. Downloads use HTTPS. For sensor tags v2.17.0 and later, the action checks the bundle’s payload digests, checksums and manifest tag. These checks establish bundle consistency. It separately verifies the binary’s attestation with
gh attestation verifyagainst the release signer ingarnet-org/jibril-releases. Withoutgithub_tokenor theghCLI, attestation is skipped with a warning. Older sensor tags download a bare binary and skip both checks. - Observe-only. The sensor reads kernel events. It runs no sidecar, no proxy, and reorders none of your steps. On authenticated runs the action also fetches your project’s Garnet-managed network policy and installs it at
/etc/jibril/netpolicy.yaml. The Action’s default sensor records activity without loading a network policy or blocking destinations; ajibril_versionoverride ofv2.17.0or earlier enforces that policy and can block destinations. Fork pull request runs fetch no managed policy. The action logs the errors it catches as warnings, and the job continues. That is error handling in the action, not a guarantee about every possible sensor or runtime failure. - Post-job cleanup. The post step attempts to remove
/etc/default/jibril, the root-owned credential file. If the sensor started, it requests a service stop, bounded bystop_timeout_seconds(default1800). Interrupting shutdown can lose the Execution Profile. The installed binary, network policy and systemd configuration remain on the runner. GitHub-hosted runners are discarded after the job; on self-hosted machines, use isolated runners or clean these files between jobs. - Where it runs. Linux x86_64 runners with systemd and
sudo. On any other platform or architecture the step logs a warning and skips. Runner by runner: Coverage.
OK=1:
What leaves the runner
On authenticated runs, the sensor sends an Execution Profile toapi.garnet.ai over HTTPS. It carries:
- execution chains: process names, the recorded workflow step, and the working directory a process ran from;
- destinations: domains, IP addresses, ports, and protocols each outbound connection reached;
- runner facts: OS, architecture, kernel version, the workflow and job names, the run ID, and the commit.
What becomes public
The dashboard exposes recorded jobs to your Garnet organization. A Runtime Review comment is visible to whoever can read its pull request; on a public repository, that audience is public. A public run report is a separately published view. Confirm publication controls for your repository in the Garnet dashboard. A published public run report resolves anonymously at its exact?profile= permalink. A bare run URL or a wrong selector fails closed with a 404. Anyone with a published report’s URL can read it without signing in; the selector identifies the profile and is not authentication. Details: The public run report.