{"id":37225613,"url":"https://github.com/obcode/glabs","last_synced_at":"2026-04-30T23:02:16.796Z","repository":{"id":43732236,"uuid":"299229992","full_name":"obcode/glabs","owner":"obcode","description":"Manage GitLab for Labs from the Command Line","archived":false,"fork":false,"pushed_at":"2026-04-25T17:43:23.000Z","size":407,"stargazers_count":11,"open_issues_count":5,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-04-25T18:31:36.262Z","etag":null,"topics":["gitlab","go"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/obcode.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-09-28T07:46:52.000Z","updated_at":"2026-04-25T16:47:46.000Z","dependencies_parsed_at":"2024-04-03T13:29:51.203Z","dependency_job_id":"65232ae9-a6fc-4389-a831-cbe7e4dd282e","html_url":"https://github.com/obcode/glabs","commit_stats":null,"previous_names":[],"tags_count":46,"template":false,"template_full_name":null,"purl":"pkg:github/obcode/glabs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obcode%2Fglabs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obcode%2Fglabs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obcode%2Fglabs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obcode%2Fglabs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/obcode","download_url":"https://codeload.github.com/obcode/glabs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obcode%2Fglabs/sbom","scorecard":{"id":700807,"data":{"date":"2025-08-11","repo":{"name":"github.com/obcode/glabs","commit":"546f07f3ccd946d566a5c7da9859b272db92148d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":"Code-Review","score":0,"reason":"Found 2/27 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":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: topLevel 'contents' permission set to 'write': .github/workflows/ci.yml:8","Info: no jobLevel write permissions found"],"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":"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":"Pinned-Dependencies","score":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/obcode/glabs/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/obcode/glabs/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/obcode/glabs/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/obcode/glabs/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/obcode/glabs/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:54: update your workflow using https://app.stepsecurity.io/secureworkflow/obcode/glabs/ci.yml/main?enable=pin","Warn: downloadThenRun not pinned by hash: .github/workflows/ci.yml:38","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   1 out of   1 goCommand dependencies pinned","Info:   0 out of   1 downloadThenRun dependencies pinned"],"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":"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":"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: BSD 3-Clause \"New\" or \"Revised\" License: 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":"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":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.24.1 not signed: https://api.github.com/repos/obcode/glabs/releases/189885196","Warn: release artifact v0.24.0 not signed: https://api.github.com/repos/obcode/glabs/releases/183565182","Warn: release artifact v0.23.0 not signed: https://api.github.com/repos/obcode/glabs/releases/183459316","Warn: release artifact v0.22.0 not signed: https://api.github.com/repos/obcode/glabs/releases/183406509","Warn: release artifact v0.21.0 not signed: https://api.github.com/repos/obcode/glabs/releases/183356743","Warn: release artifact v0.24.1 does not have provenance: https://api.github.com/repos/obcode/glabs/releases/189885196","Warn: release artifact v0.24.0 does not have provenance: https://api.github.com/repos/obcode/glabs/releases/183565182","Warn: release artifact v0.23.0 does not have provenance: https://api.github.com/repos/obcode/glabs/releases/183459316","Warn: release artifact v0.22.0 does not have provenance: https://api.github.com/repos/obcode/glabs/releases/183406509","Warn: release artifact v0.21.0 does not have provenance: https://api.github.com/repos/obcode/glabs/releases/183356743"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 12 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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for 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":"Vulnerabilities","score":1,"reason":"9 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2025-3754 / GHSA-2x5j-vhc8-9cwm","Warn: Project is vulnerable to: GO-2025-3367 / GHSA-r9px-m959-cxf4","Warn: Project is vulnerable to: GO-2025-3368 / GHSA-v725-9546-7q7m","Warn: Project is vulnerable to: GO-2024-3321 / GHSA-v778-237x-gjrc","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77","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-22T05:10:21.674Z","repository_id":43732236,"created_at":"2025-08-22T05:10:21.674Z","updated_at":"2025-08-22T05:10:21.674Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32479448,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: 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":["gitlab","go"],"created_at":"2026-01-15T01:48:24.490Z","updated_at":"2026-04-30T23:02:16.785Z","avatar_url":"https://github.com/obcode.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# glabs\n\nCommand line tool to manage GitLab repositories for student assignments.\n\nThis README is the quick entry point. The full user handbook lives in the docs folder.\n\n## Why glabs\n\n- Create assignment repositories for students or groups\n- Seed repositories from starter code or custom seeding tools\n- Protect branches and set access rules at scale\n- Generate URLs, clone repos, and build reports\n\n## Installation\n\n### Build from source\n\nPrerequisite: Go 1.24+\n\n```sh\ngo install github.com/obcode/glabs/v2@latest\n```\n\n### Add glabs to your PATH\n\nAfter installation, make sure that your Go bin directory is in your `PATH` so you can use `glabs` from anywhere:\n\n```sh\nexport PATH=\"$PATH:$(go env GOPATH)/bin\"\n```\n\nYou can add this line to your `~/.bashrc`, `~/.zshrc`, or `~/.profile` to make it permanent.\n\n### Build from local checkout\n\n```sh\ngo install .\n```\n\n### or just unpack the prebuilt binaries\n\nfrom \u003chttps://github.com/obcode/glabs/releases\u003e\n\n## Quickstart\n\n### 1) Create main config in your home directory\n\nFile: ~/.glabs.yaml\n\n```yaml\ngitlab:\n  host: https://gitlab.example.org\n  token: \u003cpersonal-access-token\u003e\n\ncoursesfilepath: /absolute/path/to/course-configs\ncourses:\n  - mpd\n  - vss\n```\n\n### 2) Create one course file\n\nExample: /absolute/path/to/course-configs/mpd.yaml\n\n```yaml\nmpd:\n  coursepath: mpd/semester\n  semesterpath: ob-26ss\n\n  blatt01:\n    assignmentpath: blatt-01\n    per: student\n    startercode:\n      url: git@gitlab.example.org:mpd/startercode/blatt-01.git\n      fromBranch: startercode\n      template: true\n      templateMessage: Initial Commit\n```\n\n### 3) Validate config and generate repos\n\n```sh\nglabs check mpd\nglabs generate mpd blatt01\n```\n\n## Common commands\n\n```sh\nglabs check \u003ccourse\u003e\nglabs generate \u003ccourse\u003e \u003cassignment\u003e [groups...|students...]\nglabs protect \u003ccourse\u003e \u003cassignment\u003e [groups...|students...]\nglabs clone \u003ccourse\u003e \u003cassignment\u003e [groups...|students...]\nglabs urls \u003ccourse\u003e \u003cassignment\u003e [groups...|students...]\nglabs report \u003ccourse\u003e \u003cassignment\u003e [--html|--json]\n```\n\n## User handbook\n\n- Getting started: [docs/getting-started.md](docs/getting-started.md)\n- Configuration reference: [docs/configuration.md](docs/configuration.md)\n- Workflows and recipes: [docs/workflows.md](docs/workflows.md)\n- Command reference: [docs/commands.md](docs/commands.md)\n- Troubleshooting: [docs/troubleshooting.md](docs/troubleshooting.md)\n- Advanced topics: [docs/advanced.md](docs/advanced.md)\n\n## Contributing\n\nIssues and pull requests are welcome.\n\n## Testing\n\nDefault unit and contract tests:\n\n```sh\ngo test ./...\n```\n\nIntegration tests with GitLab Testcontainers (opt-in):\n\n```sh\n# Group/project lifecycle (createGroup, generateProject, …)\nGLABS_RUN_GITLAB_TC=1 go test -tags=integration -v -count=1 ./gitlab/... -run TestIntegration_GitLab_GroupAndProjectLifecycle\n\n# Archive, Delete, ProtectToBranch, Setaccess end-to-end\nGLABS_RUN_GITLAB_TC=1 go test -tags=integration -v -count=1 ./gitlab/... -run TestIntegration_GitLab_Operations\n\n# Run all integration tests at once\nGLABS_RUN_GITLAB_TC=1 go test -tags=integration -v -count=1 ./gitlab/... -run '^TestIntegration_'\n```\n\nNotes:\n\n- Integration tests are intentionally opt-in because starting GitLab CE in a container takes 5–25 minutes.\n- `GLABS_RUN_GITLAB_TC` means: run GitLab Testcontainer tests.\n- Set `GLABS_RUN_GITLAB_TC=1` to enable them; without it the tests are skipped automatically.\n- Example: `GLABS_RUN_GITLAB_TC=0` (or variable unset) keeps integration tests disabled.\n- In CI, trigger them via the `run_integration` workflow dispatch input (dedicated `test-integration` job).\n\n## License\n\nMIT, see [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobcode%2Fglabs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobcode%2Fglabs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobcode%2Fglabs/lists"}