Skip to main content

Add repository secret

In your repo: SettingsSecrets and variablesActionsNew repository secret.Name: GARNET_API_TOKEN · Value: your token from app.garnet.aiSettingsAPI Tokens.

Add Garnet to your workflow

name: CI

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Garnet Monitor
        uses: garnet-org/action@f4a67ff8e102a293fcf5f9fdfb34656717d2f45e # v2
        with:
          api_token: ${{ secrets.GARNET_API_TOKEN }}

      # your existing build, test, and deploy steps continue here
The agent runs in the background and profiles all subsequent steps.

Verify

Push or open a PR. Run appears at app.garnet.ai within seconds.

Configuration

ParameterDescriptionRequiredDefault
api_tokenGarnet API tokenYes
debugVerbose workflow logsNofalse

Job Summary

Garnet writes a Runtime Report to the Job Summary automatically.
GitHub Actions Job Summary showing Garnet Runtime Report

Why sudo

Jibril attaches eBPF at the kernel level — requires sudo during install. ubuntu-latest includes it by default. See Architecture for the safety model.

Troubleshooting

Verify GARNET_API_TOKEN is set. Check workflow logs for the Garnet step.
Requires sudo for eBPF. ubuntu-latest includes it by default.
Use the pinned v2 SHA: garnet-org/action@f4a67ff8e102a293fcf5f9fdfb34656717d2f45e.
- uses: garnet-org/action@f4a67ff8e102a293fcf5f9fdfb34656717d2f45e # v2
  with:
    api_token: ${{ secrets.GARNET_API_TOKEN }}
    debug: true