{"id":17835865,"url":"https://github.com/guitarrapc/unitymetainjection","last_synced_at":"2026-04-10T16:34:19.630Z","repository":{"id":147478434,"uuid":"142858866","full_name":"guitarrapc/UnityMetaInjection","owner":"guitarrapc","description":"Unity YAML file Injection.","archived":false,"fork":false,"pushed_at":"2020-03-30T20:12:25.000Z","size":23,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-08T04:19:03.432Z","etag":null,"topics":["ci","continuous-integration","dotnet-core","unity","unity-editor"],"latest_commit_sha":null,"homepage":"","language":"C#","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/guitarrapc.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":"2018-07-30T10:07:42.000Z","updated_at":"2023-03-01T22:01:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"9aeadeea-7911-44cb-9dd4-b9c208c5fa45","html_url":"https://github.com/guitarrapc/UnityMetaInjection","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guitarrapc%2FUnityMetaInjection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guitarrapc%2FUnityMetaInjection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guitarrapc%2FUnityMetaInjection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guitarrapc%2FUnityMetaInjection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guitarrapc","download_url":"https://codeload.github.com/guitarrapc/UnityMetaInjection/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246819785,"owners_count":20839095,"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":["ci","continuous-integration","dotnet-core","unity","unity-editor"],"created_at":"2024-10-27T20:26:26.576Z","updated_at":"2026-04-10T16:34:19.584Z","avatar_url":"https://github.com/guitarrapc.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"## UnityMetaInjection\n\nInject specific key:value on Unity Yaml.\n\n## Motivation:thought_balloon:\n\nWant to remove secrets from GitHub Source Management, but this led CI could not bundle with secret.\nThis tool inject to Unity YAML with commandline, so you can input Value to Unity's Scritable Object on CI or any.\n\n## Installation:cat:\n\nRequirement : .NET Core 2.0 or higher.\n\n1. Access to the [Release](https://github.com/guitarrapc/UnityMetaInjection/releases) Page.\n1. Download latest release's .tar or .zip and extract it.\n1. `dotnet UnityMetaInjection.dll -h` to see help.\n\n## Usage:question:\n\n```shell\n$ dotnet UnityMetaInjection.dll -h\nA very simple Unity Meta Injection\n\nUsage: UnityMetaInjection [options]\n\nOptions:\n  -h|--help|-?  Show help information\n  -p|--path     The Unity YAML Path to inject.\n  -k|--kv       `Key:Value` yaml map pair to Inject\n```\n\n\u003cdetails\u003e\n\u003csummary\u003eArguments\u003c/summary\u003e\n\n\n| Parameter | Required | Description | Usage | Tips |\n| ---- | ---- | ---- | ---- | ---- | \n| -p | true | Path to the exising YAML | -p `\u003cPATH TO THE YAML\u003e` | YAML must exists. | \n| -k | true | `:` separated KeyValue pair to inject. | -k hoge:fuga -k piyo:poyo | Only matched section will be replace. | \n\n\u003c/details\u003e\n\n## Sample Usage:eyes:\n\nLet's see how to inject Unity's ScriptableObject's Key:Value.\n\nRun Injection.\n\n```shell\ndotnet UnityMetaInjection.dll -p \"C:\\workspace\\UnitySample\\AzureSettings.asset\" -k storageAccount:STORAGE_ACCOUNT -k accessKey:YOUR_STORAGE_KEY -k container:CONTAINER\n```\n\n\u003cdetails\u003e\n\u003csummary\u003eOriginal YAML\u003c/summary\u003e\n\n```yaml\n%YAML 1.1\n%TAG !u! tag:unity3d.com,2011:\n--- !u!114 \u002611400000\nMonoBehaviour:\n  m_ObjectHideFlags: 0\n  m_PrefabParentObject: {fileID: 0}\n  m_PrefabInternal: {fileID: 0}\n  m_GameObject: {fileID: 0}\n  m_Enabled: 1\n  m_EditorHideFlags: 0\n  m_Script: {fileID: 12345678, guid: 12345678901234567890123456789aaa, type: 3}\n  m_Name: AzureBlobConfiguration\n  m_EditorClassIdentifier:\n  storageAccount: \n  accessKey: \n  container: \n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eInjected YAML\u003c/summary\u003e\n\n```yaml\n%YAML 1.1\n%TAG !u! tag:unity3d.com,2011:\n--- !u!114 \u002611400000\nMonoBehaviour:\n  m_ObjectHideFlags: 0\n  m_PrefabParentObject: {fileID: 0}\n  m_PrefabInternal: {fileID: 0}\n  m_GameObject: {fileID: 0}\n  m_Enabled: 1\n  m_EditorHideFlags: 0\n  m_Script: {fileID: 12345678, guid: 12345678901234567890123456789aaa, type: 3}\n  m_Name: AzureBlobConfiguration\n  m_EditorClassIdentifier:\n  storageAccount: STORAGE_ACCOUNT\n  accessKey: YOUR_STORAGE_KEY\n  container: CONTAINER\n  ```\n  \u003c/details\u003e\n\n## Build\n\nUse docker if possible.\nIn case you want to use ubutnu, see [dotnet-core](https://docs.microsoft.com/en-us/dotnet/core/linux-prerequisites?tabs=netcore2x) to provision environment.\n\n```bash\nwget -q https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb\nsudo dpkg -i packages-microsoft-prod.deb\n\nsudo apt-get install apt-transport-https\nsudo apt-get update\nsudo apt-get install dotnet-sdk-2.0.3\n```\n\nbash build.\n\n```bash\n. src/build.sh\n```\n\npwsh build.\n\n```\npwsh -f src/build.ps1\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguitarrapc%2Funitymetainjection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguitarrapc%2Funitymetainjection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguitarrapc%2Funitymetainjection/lists"}