Skip to main content

Generate API token

app.garnet.aiSettingsAPI TokensCreate Token. Copy the token.

Add repository secret

In your repo: SettingsSecrets and variablesActionsNew repository secret.Set the name to GARNET_API_TOKEN and paste your token as the value.

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 steps continue here
Full GitHub Actions reference · Kubernetes

See your first run

Push or open a PR. Your run appears at app.garnet.ai within seconds.
Runs feed in the Garnet dashboard