{"id":50542882,"url":"https://github.com/endorlabs/endorlabs-buildkite-plugin","last_synced_at":"2026-06-03T21:30:34.022Z","repository":{"id":362352155,"uuid":"1244785073","full_name":"endorlabs/endorlabs-buildkite-plugin","owner":"endorlabs","description":"Buildkite plugin for Endor Labs — run endorctl in CI to ship secure code with SCA, SAST, secrets, containers, and policy gating.","archived":false,"fork":false,"pushed_at":"2026-06-03T19:57:28.000Z","size":225,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-03T21:20:47.446Z","etag":null,"topics":["buildkite","buildkite-plugin","endorlabs","sast","sca","security"],"latest_commit_sha":null,"homepage":"https://docs.endorlabs.com/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/endorlabs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","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":"2026-05-20T15:39:59.000Z","updated_at":"2026-06-03T19:07:54.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/endorlabs/endorlabs-buildkite-plugin","commit_stats":null,"previous_names":["endorlabs/endorlabs-buildkite-plugin"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/endorlabs/endorlabs-buildkite-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endorlabs%2Fendorlabs-buildkite-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endorlabs%2Fendorlabs-buildkite-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endorlabs%2Fendorlabs-buildkite-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endorlabs%2Fendorlabs-buildkite-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/endorlabs","download_url":"https://codeload.github.com/endorlabs/endorlabs-buildkite-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endorlabs%2Fendorlabs-buildkite-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33881107,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-03T02:00:06.370Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["buildkite","buildkite-plugin","endorlabs","sast","sca","security"],"created_at":"2026-06-03T21:30:33.199Z","updated_at":"2026-06-03T21:30:34.005Z","avatar_url":"https://github.com/endorlabs.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Endor Labs Buildkite Plugin\n\n[![CI](https://github.com/endorlabs/endorlabs-buildkite-plugin/actions/workflows/ci.yml/badge.svg)](https://github.com/endorlabs/endorlabs-buildkite-plugin/actions/workflows/ci.yml)\n\nBuildkite plugin to run [endorctl](https://docs.endorlabs.com/developers-api/cli/commands/scan) after your step `command` — aligned with the [Endor Labs GitHub Action](https://github.com/endorlabs/github-action) for scan flags and outputs.\n\n## Documentation\n\n- **Endor Labs** — [scan](https://docs.endorlabs.com/scan), [exit codes](https://docs.endorlabs.com/best-practices/troubleshooting/endorctl-exitcodes)\n- **Buildkite** — [writing plugins](https://buildkite.com/docs/pipelines/integrations/plugins/writing), [cluster secrets](https://buildkite.com/docs/agent/v3/clusters/secrets)\n- **This plugin** — [setup](docs/setup.md) · [examples](docs/examples.md) · [troubleshooting](docs/troubleshooting.md)\n\n## Quick example (vendored plugin)\n\n```yaml\nsecrets:\n  - ENDOR_NAMESPACE\n  - ENDOR_API_CREDENTIALS_KEY\n  - ENDOR_API_CREDENTIALS_SECRET\n\nsteps:\n  - label: \":hammer: Build and scan\"\n    command: \"make build\"\n    plugins:\n      - ./.buildkite/vendor/endorlabs-buildkite-plugin:\n          namespace: \"${ENDOR_NAMESPACE}\"\n          api_key_env: ENDOR_API_CREDENTIALS_KEY\n          api_secret_env: ENDOR_API_CREDENTIALS_SECRET\n          scan_dependencies: true\n          annotate: true\n```\n\nVendor with [`scripts/sync-vendor-endorlabs-plugin.sh`](scripts/sync-vendor-endorlabs-plugin.sh). Public git ref: `https://github.com/endorlabs/endorlabs-buildkite-plugin.git#v0.1.4` (or `endorlabs#v0.1.4` after [directory sync](https://buildkite.com/docs/integrations/buildkite-plugins)). Demo: [repro-sandbox](https://github.com/endorlabs/repro-sandbox).\n\n## How it works\n\n- Single **`post-command`** hook — your `command` runs first, then install/auth/scan (avoids replacing the user command).\n- **`plugin.yml`** — full JSON Schema; validated by [plugin-linter](https://github.com/buildkite-plugins/buildkite-plugin-linter) in CI (`additionalProperties: false`).\n- **Credentials** — `api_key_env` / `api_secret_env` (or pre-exported `ENDOR_API_CREDENTIALS_*`); never passed as `--api-key` on the CLI. See [SECURITY.md](SECURITY.md).\n- **Build tools** — plugin installs endorctl only; put Bazel/Node/etc. on the agent or in `command`. See [docs/setup.md §2](docs/setup.md#2-agent-and-cluster-build-tool-prerequisites).\n- **Windows** — `post-command.bat` / `.ps1` delegate to Bash; requires Git Bash on the agent ([writing plugins](https://buildkite.com/docs/pipelines/integrations/plugins/writing)).\n\n## Common options\n\n| Option | Default | Notes |\n|--------|---------|--------|\n| `namespace` | (required) | Endor tenant |\n| `scan_dependencies` | `true` | SCA |\n| `scan_secrets` / `scan_sast` | `false` | Enable per need |\n| `scan_container` | `false` | Requires `image` or `image_tar`; separate from repo scans |\n| `annotate` | `false` | Sanitized Buildkite annotation after scan |\n| `fail_on_policy` | `true` | Exit `128` fails the step |\n| `soft_fail` | `false` | Softens other exits; does not bypass `128` when `fail_on_policy` is true |\n| `mode` | `scan` | `sign` / `verify` for artifact signing |\n\nAll keys, validation rules, and cloud keyless auth: [`plugin.yml`](plugin.yml). Copy-paste pipelines: [docs/examples.md](docs/examples.md).\n\n## Buildkite context mapping\n\n| Buildkite env | endorctl |\n|---------------|----------|\n| `BUILDKITE_BRANCH` | `--detached-ref-name=` |\n| `BUILDKITE_PULL_REQUEST` (numeric) | `--pr=true`, `--scm-pr-id=` (unless `pr: false`) |\n| `BUILDKITE_PULL_REQUEST_BASE_BRANCH` | `--pr-baseline=` |\n\nPR comments need `enable_pr_comments` + `scm_token_env` — see [docs/troubleshooting.md](docs/troubleshooting.md).\n\n## Developing\n\n```bash\ndocker compose run --rm tests\n```\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md). E2E validation: vendored plugin in [repro-sandbox](https://github.com/endorlabs/repro-sandbox).\n\n## License\n\n[Apache License 2.0](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendorlabs%2Fendorlabs-buildkite-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fendorlabs%2Fendorlabs-buildkite-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendorlabs%2Fendorlabs-buildkite-plugin/lists"}