{"id":21324321,"url":"https://github.com/haikoschol/ort-operator-api","last_synced_at":"2026-05-21T04:04:22.884Z","repository":{"id":154485102,"uuid":"632028989","full_name":"haikoschol/ort-operator-api","owner":"haikoschol","description":"API for the ORT k8s operator","archived":false,"fork":false,"pushed_at":"2023-05-18T09:32:12.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-15T23:26:29.064Z","etag":null,"topics":["compliance","kubernetes","oss-review-toolkit"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/haikoschol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2023-04-24T15:01:38.000Z","updated_at":"2023-05-17T15:24:05.000Z","dependencies_parsed_at":"2023-06-11T03:45:21.254Z","dependency_job_id":null,"html_url":"https://github.com/haikoschol/ort-operator-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/haikoschol/ort-operator-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haikoschol%2Fort-operator-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haikoschol%2Fort-operator-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haikoschol%2Fort-operator-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haikoschol%2Fort-operator-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haikoschol","download_url":"https://codeload.github.com/haikoschol/ort-operator-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haikoschol%2Fort-operator-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33288143,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T02:57:32.698Z","status":"ssl_error","status_checked_at":"2026-05-21T02:57:31.990Z","response_time":62,"last_error":"SSL_read: 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":["compliance","kubernetes","oss-review-toolkit"],"created_at":"2024-11-21T20:32:56.174Z","updated_at":"2026-05-21T04:04:22.848Z","avatar_url":"https://github.com/haikoschol.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ORT Operator API\n\nThis repository contains a HTTP/JSON API, a Matrix chatbot and a (currently broken) Slack chatbot for the\n[ORT Kubernetes Operator](https://github.com/haikoschol/ort-operator). The bots should probably live in separate repos.\n\n## HTTP Endpoints\n\n### `GET /runs` - Returns a list of all OrtRun resources\n\nResponse:\n\n```json\n{\n  \"runs\": [\n    {\n      \"name\": \"\u003cname\u003e\",\n      \"repoUrl\": \"\u003crepoUrl\u003e\",\n      \"status\": {\n        \"analyzer\": \"[Pending|Running|Succeeded|Failed|Aborted]\",\n        \"scanner\": \"[Pending|Running|Succeeded|Failed|Aborted]\",\n        \"reporter\": \"[Pending|Running|Succeeded|Failed|Aborted]\"\n      }\n    }\n  ]\n}\n```\n\n### `GET /runs/\u003cname\u003e` - Return the OrtRun resources with the given name\n\nResponse:\n\n```json\n{\n  \"name\": \"\u003cname\u003e\",\n  \"repoUrl\": \"\u003crepoUrl\u003e\",\n  \"status\": {\n    \"analyzer\": \"[Pending|Running|Succeeded|Failed|Aborted]\",\n    \"scanner\": \"[Pending|Running|Succeeded|Failed|Aborted]\",\n    \"reporter\": \"[Pending|Running|Succeeded|Failed|Aborted]\"\n  },\n  \"kubernetesResource\": \"\u003cyaml\u003e\"\n}\n```\n\n### `POST /runs` - Create a new OrtRun resources\n\nPayload:\n\n```json\n{\n    \"repoUrl\": \"https://github.com/haikoschol/cats-of-asia.git\"\n}\n```\n\nResponse:\n\n```json\n{\n  \"name\": \"\u003cname\u003e\",\n  \"repoUrl\": \"\u003crepoUrl\u003e\",\n  \"status\": {\n    \"analyzer\": \"[Pending|Running|Succeeded|Failed|Aborted]\",\n    \"scanner\": \"[Pending|Running|Succeeded|Failed|Aborted]\",\n    \"reporter\": \"[Pending|Running|Succeeded|Failed|Aborted]\"\n  },\n  \"kubernetesResource\": \"\u003cyaml\u003e\"\n}\n```\n\n### `GET /logs/\u003cname\u003e/[analyzer|scanner|reporter]` - Fetch the logs from the analyzer, scanner or reporter of an ORT run\n\nResponse:\n\n```json\n{\n  \"name\": \"\u003cname\u003e\",\n  \"stage\": \"[analyzer|scanner|reporter]\",\n  \"podLogs\": [\n    {\n      \"podName\": \"\u003cname\u003e\",\n      \"podLogs\": \"\u003clog\u003e\"\n    }\n  ]\n}\n```\n\n## Configuration\n\nTo talk to Kubernetes, the API process first tries [InClusterConfig](https://pkg.go.dev/k8s.io/client-go/rest#InClusterConfig)\nand if that fails looks for a kubeconfig in `$HOME/.kube/config`.\n\nif `MATRIX_SERVER` is set, `MATRIX_USER` and `MATRIX_ACCESS_TOKEN` are assumed to be set as well and an instance of the\nMatrix bot is created and run.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaikoschol%2Fort-operator-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaikoschol%2Fort-operator-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaikoschol%2Fort-operator-api/lists"}