{"id":37088959,"url":"https://github.com/ticketmaster/go-gitlab","last_synced_at":"2026-01-14T10:55:09.780Z","repository":{"id":57592725,"uuid":"162760972","full_name":"ticketmaster/go-gitlab","owner":"ticketmaster","description":"A GitLab API client enabling Go programs to interact with GitLab in a simple and uniform way","archived":false,"fork":true,"pushed_at":"2023-04-04T01:15:35.000Z","size":823,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-06-20T02:05:43.966Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"xanzy/go-gitlab","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ticketmaster.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-21T21:56:44.000Z","updated_at":"2024-06-20T02:05:43.967Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ticketmaster/go-gitlab","commit_stats":null,"previous_names":[],"tags_count":44,"template":false,"template_full_name":null,"purl":"pkg:github/ticketmaster/go-gitlab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ticketmaster%2Fgo-gitlab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ticketmaster%2Fgo-gitlab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ticketmaster%2Fgo-gitlab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ticketmaster%2Fgo-gitlab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ticketmaster","download_url":"https://codeload.github.com/ticketmaster/go-gitlab/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ticketmaster%2Fgo-gitlab/sbom","scorecard":{"id":884624,"data":{"date":"2025-08-11","repo":{"name":"github.com/ticketmaster/go-gitlab","commit":"92d67d2249459d93ca3dcdbbf8e22e8c8fb22a87"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"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":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","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":"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":"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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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":"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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":"Vulnerabilities","score":0,"reason":"17 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0197 / GHSA-4r78-hx75-jjj2 / GHSA-mv93-wvcp-7m7r","Warn: Project is vulnerable to: GO-2020-0014 / GHSA-vfw5-hrgq-h5wf","Warn: Project is vulnerable to: GO-2022-0536 / GHSA-39qc-96h7-956f / GHSA-hgr8-6h9x-f7q9","Warn: Project is vulnerable to: GO-2022-0236 / GHSA-h86h-8ppg-mxmh","Warn: Project is vulnerable to: GO-2021-0238 / GHSA-83g2-8m93-v3w7","Warn: Project is vulnerable to: GO-2022-0288","Warn: Project is vulnerable to: GO-2022-0969 / GHSA-69cg-p879-7622","Warn: Project is vulnerable to: GO-2022-1144 / GHSA-xrjj-mj9h-534m","Warn: Project is vulnerable to: GO-2023-1571 / GHSA-vvpx-j8f3-3w6h","Warn: Project is vulnerable to: GO-2023-1988 / GHSA-2wrh-6pvc-2jm9","Warn: Project is vulnerable to: GO-2023-2102 / GHSA-4374-p667-p6c8","Warn: Project is vulnerable to: GHSA-qppj-fm5r-hxr3","Warn: Project is vulnerable to: GO-2024-2687 / GHSA-4v7x-pqxf-cx7m","Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw","Warn: Project is vulnerable to: GO-2025-3488 / GHSA-6v2p-p543-phr9"],"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-24T09:32:34.095Z","repository_id":57592725,"created_at":"2025-08-24T09:32:34.095Z","updated_at":"2025-08-24T09:32:34.095Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28417740,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-01-14T10:55:08.989Z","updated_at":"2026-01-14T10:55:09.775Z","avatar_url":"https://github.com/ticketmaster.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-gitlab\n\nA GitLab API client enabling Go programs to interact with GitLab in a simple and uniform way\n\n[![Build Status](https://travis-ci.org/xanzy/go-gitlab.svg?branch=master)](https://travis-ci.org/xanzy/go-gitlab)\n[![GitHub license](https://img.shields.io/github/license/xanzy/go-gitlab.svg)](https://github.com/xanzy/go-gitlab/blob/master/LICENSE)\n[![Sourcegraph](https://sourcegraph.com/github.com/xanzy/go-gitlab/-/badge.svg)](https://sourcegraph.com/github.com/xanzy/go-gitlab?badge)\n[![GoDoc](https://godoc.org/github.com/xanzy/go-gitlab?status.svg)](https://godoc.org/github.com/xanzy/go-gitlab)\n[![Go Report Card](https://goreportcard.com/badge/github.com/xanzy/go-gitlab)](https://goreportcard.com/report/github.com/xanzy/go-gitlab)\n[![GitHub issues](https://img.shields.io/github/issues/xanzy/go-gitlab.svg)](https://github.com/xanzy/go-gitlab/issues)\n\n## NOTE\n\nRelease v0.6.0 (released on 25-08-2017) no longer supports the older V3 Gitlab API. If\nyou need V3 support, please use the `f-api-v3` branch. This release contains some backwards\nincompatible changes that were needed to fully support the V4 Gitlab API.\n\n## Coverage\n\nThis API client package covers most of the existing Gitlab API calls and is updated regularly\nto add new and/or missing endpoints. Currently the following services are supported:\n\n- [x] Award Emojis\n- [x] Branches\n- [x] Broadcast Messages\n- [x] Project-level Variables\n- [x] Group-level Variables\n- [x] Commits\n- [x] Custom Attributes\n- [x] Deployments\n- [x] Deploy Keys\n- [x] Environments\n- [ ] Epics\n- [ ] Epic Issues\n- [x] Events\n- [x] Feature flags\n- [ ] Geo Nodes\n- [x] Gitignores templates\n- [x] GitLab CI Config templates\n- [x] Groups\n- [x] Group Access Requests\n- [x] Group Members\n- [x] Issues\n- [x] Issue Boards\n- [x] Group Issue Boards\n- [x] Jobs\n- [x] Keys\n- [x] Labels\n- [x] License\n- [x] Merge Requests\n- [x] Merge Request Approvals\n- [x] Project Milestones\n- [x] Group Milestones\n- [x] Namespaces\n- [x] Notes (comments)\n- [ ] Discussions (threaded comments)\n- [x] Notification settings\n- [x] Open source license templates\n- [x] Pages Domains\n- [x] Pipelines\n- [x] Pipeline Triggers\n- [x] Pipeline Schedules\n- [x] Projects (including setting Webhooks)\n- [x] Project Access Requests\n- [x] Project badges\n- [ ] Project import/export\n- [x] Project Members\n- [x] Project Snippets\n- [x] Protected Branches\n- [x] Protected Tags\n- [x] Repositories\n- [x] Repository Files\n- [x] Runners\n- [x] Search\n- [x] Services\n- [x] Settings\n- [x] Sidekiq metrics\n- [x] System Hooks\n- [x] Tags\n- [x] Todos\n- [x] Users\n- [x] Validate CI configuration\n- [x] Version\n- [x] Wikis\n\n## Usage\n\n```go\nimport \"github.com/xanzy/go-gitlab\"\n```\n\nConstruct a new GitLab client, then use the various services on the client to\naccess different parts of the GitLab API. For example, to list all\nusers:\n\n```go\ngit := gitlab.NewClient(nil, \"yourtokengoeshere\")\n//git.SetBaseURL(\"https://git.mydomain.com/api/v3\")\nusers, _, err := git.Users.ListUsers()\n```\n\nSome API methods have optional parameters that can be passed. For example,\nto list all projects for user \"svanharmelen\":\n\n```go\ngit := gitlab.NewClient(nil)\nopt := \u0026ListProjectsOptions{Search: gitlab.String(\"svanharmelen\")}\nprojects, _, err := git.Projects.ListProjects(opt)\n```\n\n### Examples\n\nThe [examples](https://github.com/xanzy/go-gitlab/tree/master/examples) directory\ncontains a couple for clear examples, of which one is partially listed here as well:\n\n```go\npackage main\n\nimport (\n\t\"log\"\n\n\t\"github.com/xanzy/go-gitlab\"\n)\n\nfunc main() {\n\tgit := gitlab.NewClient(nil, \"yourtokengoeshere\")\n\n\t// Create new project\n\tp := \u0026gitlab.CreateProjectOptions{\n\t\tName:                 gitlab.String(\"My Project\"),\n\t\tDescription:          gitlab.String(\"Just a test project to play with\"),\n\t\tMergeRequestsEnabled: gitlab.Bool(true),\n\t\tSnippetsEnabled:      gitlab.Bool(true),\n\t\tVisibility:           gitlab.Visibility(gitlab.PublicVisibility),\n\t}\n\tproject, _, err := git.Projects.CreateProject(p)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\t// Add a new snippet\n\ts := \u0026gitlab.CreateProjectSnippetOptions{\n\t\tTitle:           gitlab.String(\"Dummy Snippet\"),\n\t\tFileName:        gitlab.String(\"snippet.go\"),\n\t\tCode:            gitlab.String(\"package main....\"),\n\t\tVisibility:      gitlab.Visibility(gitlab.PublicVisibility),\n\t}\n\t_, _, err = git.ProjectSnippets.CreateSnippet(project.ID, s)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n}\n```\n\nFor complete usage of go-gitlab, see the full [package docs](https://godoc.org/github.com/xanzy/go-gitlab).\n\n## ToDo\n\n- The biggest thing this package still needs is tests :disappointed:\n\n## Issues\n\n- If you have an issue: report it on the [issue tracker](https://github.com/xanzy/go-gitlab/issues)\n\n## Author\n\nSander van Harmelen (\u003csander@xanzy.io\u003e)\n\n## License\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at \u003chttp://www.apache.org/licenses/LICENSE-2.0\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fticketmaster%2Fgo-gitlab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fticketmaster%2Fgo-gitlab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fticketmaster%2Fgo-gitlab/lists"}