{"id":37492947,"url":"https://github.com/garnet-org/action","last_synced_at":"2026-03-12T23:05:52.978Z","repository":{"id":288085305,"uuid":"960296905","full_name":"garnet-org/action","owner":"garnet-org","description":"GitHub Action for runtime profiling of CI workflows. See every outbound connection with full process lineage","archived":false,"fork":false,"pushed_at":"2026-03-12T04:38:03.000Z","size":1624,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-03-12T11:11:31.225Z","etag":null,"topics":["github-actions","github-security","runtime-security","security"],"latest_commit_sha":null,"homepage":"https://garnet.ai","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/garnet-org.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-04T07:31:55.000Z","updated_at":"2026-03-12T04:38:01.000Z","dependencies_parsed_at":"2025-04-15T13:51:31.660Z","dependency_job_id":"c48e1949-c080-4697-b5d7-dc5a00ba7bd5","html_url":"https://github.com/garnet-org/action","commit_stats":null,"previous_names":["garnet-org/action"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/garnet-org/action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garnet-org%2Faction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garnet-org%2Faction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garnet-org%2Faction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garnet-org%2Faction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/garnet-org","download_url":"https://codeload.github.com/garnet-org/action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garnet-org%2Faction/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30448617,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T21:31:01.033Z","status":"ssl_error","status_checked_at":"2026-03-12T21:30:43.161Z","response_time":114,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github-actions","github-security","runtime-security","security"],"created_at":"2026-01-16T07:40:41.672Z","updated_at":"2026-03-12T23:05:52.973Z","avatar_url":"https://github.com/garnet-org.png","language":"JavaScript","readme":"\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://garnet.ai\"\u003e\n    \u003cimg src=\"brand/garnet-logo.png\" alt=\"Garnet\" width=\"160\" /\u003e\n  \u003c/a\u003e\n\n  \u003ch1\u003eGarnet Runtime Security\u003c/h1\u003e\n  \u003cp\u003e\u003cstrong\u003eRuntime threat detection for your GitHub Actions jobs.\u003c/strong\u003e\u003c/p\u003e\n\n  \u003cp\u003e\n    \u003ca href=\"https://dashboard.garnet.ai\"\u003eDashboard\u003c/a\u003e ·\n    \u003ca href=\"https://jibril.garnet.ai\"\u003eJibril\u003c/a\u003e ·\n    \u003ca href=\"https://app.garnet.ai\"\u003eGet an API token\u003c/a\u003e\n  \u003c/p\u003e\n\n  \u003cp\u003e\n    \u003ca href=\"../../releases\"\u003e\n      \u003cimg alt=\"Release\" src=\"https://img.shields.io/github/v/release/garnet-org/action?display_name=tag\u0026sort=semver\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"../../issues\"\u003e\n      \u003cimg alt=\"Issues\" src=\"https://img.shields.io/github/issues/garnet-org/action\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"./LICENSE\"\u003e\n      \u003cimg alt=\"License\" src=\"https://img.shields.io/badge/license-MIT-blue.svg\" /\u003e\n    \u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\nProtect your CI/CD from inside the runner. This action installs and runs **Jibril** during your job to observe process, filesystem, and network activity, enforce **Garnet network policies**, and publish a **security profile** to the job summary.\n\n## Why this action\n\n- **Catch suspicious behavior at runtime**: alerts when workflows behave like malware (unexpected execs, file access, outbound connections).\n- **Enforce network policy**: block or flag connections that violate your org’s policy.\n- **Ship with low friction**: one step in your workflow; results land in GitHub (job summary) and in Garnet (dashboard).\n\n## Quickstart\n\n### 1) Create a token\n\nCreate an API token in the Garnet app at `https://app.garnet.ai`, then add it as a repo secret named `GARNET_API_TOKEN`.\n\n### 2) Add the action to your workflow\n\n```yaml\nname: Garnet Runtime Security\non:\n  push:\n  pull_request:\n  workflow_dispatch:\n\njobs:\n  monitor:\n    runs-on: ubuntu-latest\n    permissions:\n      contents: read\n    steps:\n      - name: Checkout (recommended)\n        uses: actions/checkout@v4\n\n      - name: Garnet Runtime Security\n        uses: garnet-org/action@v0\n        with:\n          api_token: ${{ secrets.GARNET_API_TOKEN }}\n```\n\n## What you’ll see\n\n- **GitHub job summary**: a Markdown “security profile” appended at the end of the job (runs even if the job fails).\n- **Garnet dashboard**: runtime events and policy evaluation for the workflow run.\n\n## How it works\n\n- **Main step**: downloads `garnetctl` + `jibril`, creates a Garnet “agent” for the run, fetches your merged network policy, and starts Jibril as a `systemd` service on the runner.\n- **Post step (always)**: stops Jibril so it flushes events, then appends the generated profile to `GITHUB_STEP_SUMMARY`. When `debug=true`, it also uploads Jibril logs as build artifacts.\n\n## Inputs\n\n| Input | Description | Required | Default |\n|------|-------------|----------|---------|\n| `api_token` | Garnet API token | Yes | - |\n| `api_url` | Garnet API base URL | No | `https://api.garnet.ai` |\n| `garnetctl_version` | `garnetctl` version (`1.2.3` or `latest`) | No | `latest` |\n| `jibril_version` | Jibril version (`v2.10.8`, `v0.0`, or `latest`) | No | `v0.0` (action@`v0`) / `v2.10.4` (action@`v1`) / `v2.10.8` (action@`v2`) |\n| `profiler_4fun` | Enable profiler “4 fun” mode | No | `false` |\n| `debug` | Enable debug output + upload Jibril logs as artifacts | No | `false` |\n\n## Requirements \u0026 compatibility\n\n- **Runner**: Linux with `systemd` (recommended: `ubuntu-latest`).\n- **Privileges**: the action uses `sudo` to install binaries and configure the Jibril service.\n- **Checkout**: `actions/checkout@v4` is recommended. If your repo isn’t checked out, Jibril may need to fetch the workflow file via the GitHub API instead.\n\n## Troubleshooting\n\n- **“API token is required”**: make sure `api_token` is set and the `GARNET_API_TOKEN` secret exists.\n- **No summary output**: enable `debug: \"true\"` to upload Jibril logs as artifacts, then inspect `jibril.log` / `jibril.err`.\n- **Restrictive permissions**: this action typically works with `permissions: contents: read`. If your workflow hardens permissions aggressively, ensure the job can read repository contents.\n\n## License\n\nMIT\n\n---\n\n\u003cdiv align=\"center\"\u003e\n  \u003cp\u003e\u003csub\u003eBuilt by the Garnet team · \u003ca href=\"https://garnet.ai\"\u003egarnet.ai\u003c/a\u003e\u003c/sub\u003e\u003c/p\u003e\n\u003c/div\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgarnet-org%2Faction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgarnet-org%2Faction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgarnet-org%2Faction/lists"}