{"id":29835234,"url":"https://github.com/livekit/mageutil","last_synced_at":"2025-09-04T05:33:51.629Z","repository":{"id":61625887,"uuid":"542262021","full_name":"livekit/mageutil","owner":"livekit","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-11T04:50:21.000Z","size":16,"stargazers_count":3,"open_issues_count":0,"forks_count":4,"subscribers_count":16,"default_branch":"main","last_synced_at":"2025-08-23T06:09:58.311Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/livekit.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,"zenodo":null}},"created_at":"2022-09-27T19:45:03.000Z","updated_at":"2025-06-20T02:00:53.000Z","dependencies_parsed_at":"2025-07-29T12:31:53.702Z","dependency_job_id":"eb2e3cb6-9eb3-4902-a2f5-91be54c86f63","html_url":"https://github.com/livekit/mageutil","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/livekit/mageutil","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/livekit%2Fmageutil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/livekit%2Fmageutil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/livekit%2Fmageutil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/livekit%2Fmageutil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/livekit","download_url":"https://codeload.github.com/livekit/mageutil/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/livekit%2Fmageutil/sbom","scorecard":{"id":594249,"data":{"date":"2025-08-11","repo":{"name":"github.com/livekit/mageutil","commit":"0f1ff63f77318e8d68fff4814a899dc138c9298d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.1,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":2,"reason":"Found 2/9 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":5,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'main'","Info: 'force pushes' disabled on branch 'main'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'main'","Warn: 'stale review dismissal' is disabled on branch 'main'","Warn: required approving review count is 1 on branch 'main'","Warn: codeowners review is not required on branch 'main'","Warn: 'last push approval' is disabled on branch 'main'","Warn: no status checks found to merge onto branch 'main'","Info: PRs are required in order to make changes on branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":2,"reason":"SAST tool is not run on all commits -- score normalized to 2","details":["Warn: 1 commits out of 5 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T22:45:19.197Z","repository_id":61625887,"created_at":"2025-08-20T22:45:19.197Z","updated_at":"2025-08-20T22:45:19.197Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273556025,"owners_count":25126473,"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","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"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":[],"created_at":"2025-07-29T12:17:35.419Z","updated_at":"2025-09-04T05:33:51.582Z","avatar_url":"https://github.com/livekit.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mageutil\n\nA collection of common helpers meant for use in [magefiles](https://magefile.org/).\n\n## Examples:\n\nSingle command\n\n```go\nfunc Build() error {\n    ctx := context.Background()\n    return mageutil.RunDir(ctx, \"cmd/server\", \"go build -o ../../bin/livekit-server\")\n}\n```\n\nMultiple commands\n\n```go\nconst gstVersion = 1.20.3\n\nfunc BuildDocker(version string) error {\n    return mageutil.Run(context.Background(),\n        fmt.Sprintf(\"docker pull livekit/gstreamer:%s-dev\", gstVersion),\n        fmt.Sprintf(\"docker pull livekit/gstreamer:%s-prod\", gstVersion),\n        fmt.Sprintf(\"docker build -t livekit/egress:v%s -f build/Dockerfile .\", version),\n    )\n}\n```\n\nUpdating repos\n\n```go\nfunc BuildLivekit() error {\n    ctx := context.Background()\n\t\n    dir, err := filepath.Abs(\"..\")\n    if err != nil {\n        return err\n    }\n\n    if err = mageutil.CloneRepo(\"livekit\", \"livekit\", dir); err != nil {\n        return err\n    }\n    \n    dir, err = filepath.Abs(\"../livekit\")\n    if err != nil {\n        return err\n    }\n\t\n    return mageutil.RunDir(ctx, dir, \"mage build\")\n}\n```\n\nTools\n\n```go\nfunc Generate() error {\n    ctx := context.Background()\n    err := mageutil.InstallTool(\"github.com/google/wire/cmd/wire\", \"latest\", false)\n    if err != nil {\n        return err\n    }\n    return mageutil.Run(ctx, \"go generate ./...\")\n}\n```\n\nGroup\n\n```go\nfunc RunLivekitWithEgress() error {\n    ctx := context.Background()\n    group := mageutil.NewGroup(ctx)\n    group.Go(func () error {\n        return RunDir(ctx, \"../livekit\", \"bin/livekit-server --dev\")\n    })\n    group.Go(func () error {\n        return Run(ctx, \"docker run --rm -e EGRESS_CONFIG_FILE=/out/local.yaml -v ~/livekit/egress/test:/out livekit/egress\")\n    })\n    group.Wait()\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flivekit%2Fmageutil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flivekit%2Fmageutil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flivekit%2Fmageutil/lists"}