{"id":22071755,"url":"https://github.com/mhutter/gl-env","last_synced_at":"2026-02-08T18:03:42.467Z","repository":{"id":257801848,"uuid":"863728510","full_name":"mhutter/gl-env","owner":"mhutter","description":"Bulk-edit Group- and Project-level CI/CD variables in GitLab.","archived":false,"fork":false,"pushed_at":"2024-11-11T10:45:15.000Z","size":41,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-27T07:12:40.401Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/mhutter.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":"2024-09-26T20:00:43.000Z","updated_at":"2024-11-11T10:45:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"9bcf94f2-1fbe-4f45-b871-705acd03c3b9","html_url":"https://github.com/mhutter/gl-env","commit_stats":null,"previous_names":["mhutter/gl-env"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhutter%2Fgl-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhutter%2Fgl-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhutter%2Fgl-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhutter%2Fgl-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mhutter","download_url":"https://codeload.github.com/mhutter/gl-env/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227428225,"owners_count":17775875,"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-30T20:33:50.474Z","updated_at":"2026-02-08T18:03:42.440Z","avatar_url":"https://github.com/mhutter.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `gl-env`\n\nBulk-edit Group- and Project-level CI/CD variables in GitLab.\n\nThis tools allows you to define your desired variables in a YAML file, and then diff or apply them automatically.\n\nFeatures\n\n- List variables\n- Dump existing variables to YAML\n- Diff between desired and current values\n- Apply variables from local file\n- Support for different environment scopes\n\n## Installation\n\n```sh\ncargo install gl-env\n```\n\n(OS packages \u0026 GitHub releases soon?)\n\n## Usage\n\nStart off by dumping existing variables into a YAML-File\n\n```sh\ngl-env dump -p mygroup/myproject \u003e myproject.yml\n```\n\nAlternatively, create a file from scratch:\n\n```yaml\n# Default configuration to apply to all variables.\n#\n# The same attributes can be applied to individual variables.\ndefaults:\n  # Whether to mask the value in job logs.\n  # NOTE: masked variable values must\n  # - be a single line with no spaces\n  # - be at least 8 characters long\n  # - not match the name of an existing or predefined CI/CD variable\n  # - not include special characters other than `@`, `_`, `-`, `:`, `+`\n  # Default: `false`\n  masked: false\n  # Export variable to pipelines running on protected branches and tags only.\n  # Default: `false`\n  protected: false\n  # Don't expand references to other variables.\n  # `$` will be treated as the start of a reference to another variable.\n  # Default: `false`\n  raw: false\n\n# Variables valid for ALL environments (`*`)\nvariables:\n  KEY:\n    value: The value!\n    raw: true\n  ANOTHER:\n    value: some-val\n\n# Variables only valid for specific environments\nenvironment:\n  test:\n    MYSERVICE_KEY:\n      value: test-environment-api-key\n  prod:\n    MYSERVICE_KEY:\n      value: production-environment-api-key\n```\n\nYou can then use the `diff` and `apply` subcommands:\n\n```sh\ngl-env diff -p mygroup/myproject \u003c myproject.yml\n\n# edit myproject.yml\n\ngl-env apply -p mygroup/myproject \u003c myproject.yml\n```\n\nSee `gl-env help` to get complete usage information.\n\n## Backlog\n\n- [x] Support group-level variables or instance-level variables\n- [ ] Non-ugly error messages\n- [ ] String-or-struct for variables (?)\n- [x] Remove obsolete variables\n- [x] Default settings for all variables\n- [x] diff\n- [x] apply\n- [x] Support identically-named variables in different environments\n- [x] Ensure output order of variables is stable\n- [x] apply: List variables that are defined in GitLab but not locally\n\n## License\n\nLicensed under the [MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhutter%2Fgl-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmhutter%2Fgl-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhutter%2Fgl-env/lists"}