{"id":19359172,"url":"https://github.com/opslevel/opslevel-runner","last_synced_at":"2026-04-21T01:31:47.408Z","repository":{"id":63214611,"uuid":"468364803","full_name":"OpsLevel/opslevel-runner","owner":"OpsLevel","description":"OpsLevel Runner is the Kubernetes based job processor for OpsLevel","archived":false,"fork":false,"pushed_at":"2025-02-17T17:14:06.000Z","size":559,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-02-17T18:23:44.315Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpsLevel.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-10T13:57:18.000Z","updated_at":"2025-01-06T18:32:41.000Z","dependencies_parsed_at":"2023-10-03T20:07:43.562Z","dependency_job_id":"59bd701a-a7d3-4ed2-8d8b-2f9cdb7cc3ca","html_url":"https://github.com/OpsLevel/opslevel-runner","commit_stats":null,"previous_names":[],"tags_count":38,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpsLevel%2Fopslevel-runner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpsLevel%2Fopslevel-runner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpsLevel%2Fopslevel-runner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpsLevel%2Fopslevel-runner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpsLevel","download_url":"https://codeload.github.com/OpsLevel/opslevel-runner/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240475234,"owners_count":19807292,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-10T07:14:18.564Z","updated_at":"2026-04-21T01:31:47.376Z","avatar_url":"https://github.com/OpsLevel.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/OpsLevel/opslevel-runner/blob/main/LICENSE\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/license/OpsLevel/opslevel-runner.svg\" alt=\"License\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://goreportcard.com/report/github.com/OpsLevel/opslevel-runner\"\u003e\n        \u003cimg src=\"https://goreportcard.com/badge/github.com/OpsLevel/opslevel-runner\" alt=\"Go Report Card\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://GitHub.com/OpsLevel/opslevel-runner/releases/\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/v/release/OpsLevel/opslevel-runner\" alt=\"Release\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://masterminds.github.io/stability/experimental.html\"\u003e\n        \u003cimg src=\"https://masterminds.github.io/stability/experimental.svg\" alt=\"Stability: Experimental\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/OpsLevel/opslevel-runner/graphs/contributors\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/contributors/OpsLevel/opslevel-runner\" alt=\"Contributors\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/OpsLevel/opslevel-runner/pulse\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/commit-activity/m/OpsLevel/opslevel-runner\" alt=\"Activity\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/OpsLevel/opslevel-runner/releases\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/downloads/OpsLevel/opslevel-runner/total\" alt=\"Downloads\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n[![Overall](https://img.shields.io/endpoint?style=flat\u0026url=https%3A%2F%2Fapp.opslevel.com%2Fapi%2Fservice_level%2FjcZ9Qt0e3fce3G6Xbo767Z2tXbKKKZ6qsRGzHZWwRME)](https://app.opslevel.com/services/opslevel_runner/maturity-report)\n\n# opslevel-runner\nOpsLevel Runner is the Kubernetes based job processor for [OpsLevel](https://www.opslevel.com/)\n\n### Metrics\n\n| Name                            | Type        | Description                                                   |\n|---------------------------------|-------------|---------------------------------------------------------------|\n| opslevel_runner_jobs_duration   | `histogram` | The duration of jobs in seconds.                              |\n| opslevel_runner_jobs_finished   | `counter`   | The count of jobs that finished processing by outcome status. |\n| opslevel_runner_jobs_processing | `gauge`     | The current number of active jobs being processed.            |\n| opslevel_runner_jobs_started    | `counter`   | The count of jobs that started processing.                    |\n\n\n### Commands\n\nTesting a job\n\n```sh\nOPSLEVEL_API_TOKEN=XXXXX go run main.go test -f job.yaml\n\ncat \u003c\u003c EOF | OPSLEVEL_API_TOKEN=XXXXX go run main.go test -f -\nid: \"1\"\nimage: alpine/curl\ncommands:\n  - export TEST=100\n  - echo \"::set-outcome-var hello-world=42\"\n  - sleep 2\n  - echo $TEST\n  - echo $Secret\n  - echo $NotSecret\n  - /opslevel/check.sh\nvariables:\n  - key: Secret\n    value: \"World!\"\n    sensitive: true\n  - key: NotSecret\n    value: \"World!\"\n    sensitive: false\nfiles:\n  - name: check.sh\n    contents: |\n      #! /bin/bash\n      echo \"Hello from inside the script!\"\n      echo \"Secrets are still ${Secret}\"\n      sleep 2\nEOF\n```\n\nRunning\n\n```sh\n# Production\nOPSLEVEL_API_TOKEN=XXXXX go run main.go run \n# Staging\nOPSLEVEL_API_TOKEN=XXXXX go run main.go run --api-url=https://api.opslevel-staging.com/graphql --app-url=https://app.opslevel-staging.com  \n```\n\n## Running\n\nDownload the latest release from the [Releases](https://github.com/OpsLevel/opslevel-runner/releases/) page for your architecture.\n\nExtract it to a directory of your choice, mark it as executable and move it to something on your path\n\n```\nchmod +x ./opslevel-runner\nmv ./opslevel-runner /usr/local/bin/opslevel-runner\n```\n\nFor OSX you'll probably need to remove the quarantine bit:\n\n```\nsudo xattr -r -d com.apple.quarantine /usr/local/bin/opslevel-runner\n```\n\nAt this point you can run the OpsLevel Runner with OpsLevel by following the [instructions](https://gitlab.com/jklabsinc/OpsLevel/-/blob/master/CONTRIBUTING.md#OpsLevel-Runner) in that repository.\n\n## Developing\n\nTo build, ensure you have go installed\n\n```\nbrew install go\n```\n\nThen init and update the submodules (if you clone with `--recurse-submodules` you can skip this step)\n\n```\ngit submodule init \u0026\u0026 git submodule update\n```\n\nThen run `go build` in `src` to build in the local directory, you can also use `-o \u003cPATH\u003e` to put the file in a target location of your choice.\n\n```\ncd src\ngo build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopslevel%2Fopslevel-runner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopslevel%2Fopslevel-runner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopslevel%2Fopslevel-runner/lists"}