Add repository secret
Go to your repo → Settings → Secrets and variables → Actions → New repository secretName:
GARNET_API_TOKEN
Value: Your API token from app.garnet.ai → Settings → API TokensAdd Garnet to your workflow
Add the Garnet action as a step in any workflow file (The Garnet runtime agent runs in the background and profiles all subsequent steps in the job.
.github/workflows/*.yml):Verify
Push a commit or open a pull request. Your runtime agent and first run appear at app.garnet.ai within seconds.
Configuration
| Parameter | Description | Required | Default |
|---|---|---|---|
api_token | API token from Garnet dashboard | Yes | — |
debug | Enable detailed debug output in workflow logs | No | false |
Job Summary
After the workflow completes, Garnet generates a Runtime Report in the GitHub Actions Job Summary. See Alerts & Settings for details on the report format.
Troubleshooting
Runtime agent doesn't appear in the dashboard
Runtime agent doesn't appear in the dashboard
Verify your
GARNET_API_TOKEN secret is set correctly. Check the GitHub Actions logs for error messages from the Garnet step.Permission denied or sudo errors
Permission denied or sudo errors
The Garnet runtime agent requires sudo access to install the eBPF-based systemd service. GitHub-hosted
ubuntu-latest runners include this by default.No Job Summary appearing
No Job Summary appearing
Ensure you are using
garnet-org/action@v2 or later. The Job Summary is generated automatically when the action step completes.Debug mode
Debug mode
Set
debug: true to see detailed output in the workflow logs: