{"id":23380586,"url":"https://github.com/flix-tech/gitlab-token-injector","last_synced_at":"2026-07-28T09:36:48.798Z","repository":{"id":149085946,"uuid":"112342809","full_name":"flix-tech/gitlab-token-injector","owner":"flix-tech","description":"his Go project injects JWT tokens into a secret variable of all GitLab projects that the owner of the API token belongs to.","archived":false,"fork":false,"pushed_at":"2017-11-28T14:44:33.000Z","size":9,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-07-28T09:36:45.285Z","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/flix-tech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-11-28T14:03:06.000Z","updated_at":"2019-03-24T00:30:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"d7448b3e-f8ba-414c-989b-40305af2b155","html_url":"https://github.com/flix-tech/gitlab-token-injector","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/flix-tech/gitlab-token-injector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flix-tech%2Fgitlab-token-injector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flix-tech%2Fgitlab-token-injector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flix-tech%2Fgitlab-token-injector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flix-tech%2Fgitlab-token-injector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flix-tech","download_url":"https://codeload.github.com/flix-tech/gitlab-token-injector/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flix-tech%2Fgitlab-token-injector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35987426,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-28T02:00:06.341Z","response_time":109,"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":"2024-12-21T20:16:54.462Z","updated_at":"2026-07-28T09:36:48.380Z","avatar_url":"https://github.com/flix-tech.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## GitLab Token Injector\nThis tool injects a JWT token into a secret variable of all GitLab projects that the owner of the GitLab API token is a member of.\nThe GitLab user for API token needs to have the `Master` role for a project to be able to use the secret variables API.\nThe secret variable has the default name `K8S_TOKEN` and the generated JWT token has a default lifetime of `48h`.\n\n### Build\n```\nglide install\ngo build\n```\n\n### Usage\n```\ngitlab-token-injector -host git.example.com -token MyAPIToken -key /path/to/private.key\n```\n\nThe command line arguments are:\n```\nRequired:\n\n  -host=\"\"          GitLab instance hostname\n  -key=\"\"           Path to a private key file\n  -token=\"\"         GitLab API token\n\nOptional:\n\n  -debug=false      Enable debug output\n  -config=\"\":       Path to a config file\n  -ttl=48h0m0s      Token lifetime in hours\n  -var=\"KUBE_TOKEN\" GitLab secret variable\n\n```\n\nInstead of using arguments, you can also use environment variables (using upppercase argument names) or a ini-style config file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflix-tech%2Fgitlab-token-injector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflix-tech%2Fgitlab-token-injector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflix-tech%2Fgitlab-token-injector/lists"}