{"id":15899098,"url":"https://github.com/neilkuan/cdk-gitlab-runner","last_synced_at":"2026-06-07T02:04:34.991Z","repository":{"id":37051382,"uuid":"271527431","full_name":"neilkuan/cdk-gitlab-runner","owner":"neilkuan","description":"Use AWS CDK to create gitlab runner, and use gitlab runner to help you execute your Gitlab Pipeline Job.","archived":false,"fork":false,"pushed_at":"2026-04-25T00:37:55.000Z","size":15486,"stargazers_count":57,"open_issues_count":2,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-04-25T02:41:06.491Z","etag":null,"topics":["aws-cdk","containers","gitlab-runner","spotfleet-instance"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/neilkuan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"ko_fi":"neilkuan"}},"created_at":"2020-06-11T11:21:05.000Z","updated_at":"2026-04-25T00:35:04.000Z","dependencies_parsed_at":"2024-02-09T01:46:55.807Z","dependency_job_id":"87b4b9a5-c4f1-49c3-9b82-e7f8d473ddd3","html_url":"https://github.com/neilkuan/cdk-gitlab-runner","commit_stats":{"total_commits":1284,"total_committers":11,"mean_commits":"116.72727272727273","dds":0.5085669781931463,"last_synced_commit":"09bfc0928920e4c0e13459966edaa30c9701a573"},"previous_names":["guan840912/cdk-gitlab-runner"],"tags_count":3339,"template":false,"template_full_name":"pahud/awscdk-jsii-template","purl":"pkg:github/neilkuan/cdk-gitlab-runner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neilkuan%2Fcdk-gitlab-runner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neilkuan%2Fcdk-gitlab-runner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neilkuan%2Fcdk-gitlab-runner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neilkuan%2Fcdk-gitlab-runner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neilkuan","download_url":"https://codeload.github.com/neilkuan/cdk-gitlab-runner/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neilkuan%2Fcdk-gitlab-runner/sbom","scorecard":{"id":121966,"data":{"date":"2025-08-04","repo":{"name":"github.com/neilkuan/cdk-gitlab-runner","commit":"573e2cb1653f3bc6cdada8a7435cb77888990043"},"scorecard":{"version":"v5.2.1-28-gc1d103a9","commit":"c1d103a9bb9f635ec7260bf9aa0699466fa4be0e"},"score":5.9,"checks":[{"name":"Maintained","score":10,"reason":"30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#maintained"}},{"name":"Code-Review","score":10,"reason":"all changesets reviewed","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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#code-review"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#binary-artifacts"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#dangerous-workflow"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#cii-best-practices"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":6,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: jobLevel 'contents' permission set to 'write': .github/workflows/build.yml:11","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/build.yml:63","Info: jobLevel 'contents' permission set to 'read': .github/workflows/build.yml:94","Info: jobLevel 'contents' permission set to 'read': .github/workflows/build.yml:128","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/release-cdkv1.yml:16","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/release-cdkv1.yml:70","Info: jobLevel 'contents' permission set to 'read': .github/workflows/release-cdkv1.yml:94","Info: jobLevel 'contents' permission set to 'read': .github/workflows/release-cdkv1.yml:134","Info: jobLevel 'contents' permission set to 'read': .github/workflows/release.yml:94","Info: jobLevel 'contents' permission set to 'read': .github/workflows/release.yml:134","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/release.yml:16","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/release.yml:70","Info: jobLevel 'contents' permission set to 'read': .github/workflows/upgrade-cdkv1.yml:48","Info: jobLevel 'contents' permission set to 'read': .github/workflows/upgrade-cdkv1.yml:13","Info: jobLevel 'contents' permission set to 'read': .github/workflows/upgrade-master.yml:48","Info: jobLevel 'contents' permission set to 'read': .github/workflows/upgrade-master.yml:13","Warn: no topLevel permission defined: .github/workflows/auto-approve.yml:1","Warn: no topLevel permission defined: .github/workflows/build.yml:1","Warn: no topLevel permission defined: .github/workflows/pull-request-lint.yml:1","Warn: no topLevel permission defined: .github/workflows/release-cdkv1.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Warn: no topLevel permission defined: .github/workflows/upgrade-cdkv1.yml:1","Warn: no topLevel permission defined: .github/workflows/upgrade-master.yml:1"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#token-permissions"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#license"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/auto-approve.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/auto-approve.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:54: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:67: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:73: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:97: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:101: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:109: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:131: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:134: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:138: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:146: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pull-request-lint.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/pull-request-lint.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-cdkv1.yml:137: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/release-cdkv1.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-cdkv1.yml:140: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/release-cdkv1.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-cdkv1.yml:144: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/release-cdkv1.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-cdkv1.yml:152: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/release-cdkv1.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-cdkv1.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/release-cdkv1.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-cdkv1.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/release-cdkv1.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-cdkv1.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/release-cdkv1.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-cdkv1.yml:73: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/release-cdkv1.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-cdkv1.yml:77: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/release-cdkv1.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-cdkv1.yml:97: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/release-cdkv1.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-cdkv1.yml:101: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/release-cdkv1.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-cdkv1.yml:109: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/release-cdkv1.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:73: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:77: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:97: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:101: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:109: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:137: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:140: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:144: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:152: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/upgrade-cdkv1.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/upgrade-cdkv1.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/upgrade-cdkv1.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/upgrade-cdkv1.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/upgrade-cdkv1.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/upgrade-cdkv1.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/upgrade-cdkv1.yml:52: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/upgrade-cdkv1.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/upgrade-cdkv1.yml:56: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/upgrade-cdkv1.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/upgrade-cdkv1.yml:68: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/upgrade-cdkv1.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/upgrade-master.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/upgrade-master.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/upgrade-master.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/upgrade-master.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/upgrade-master.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/upgrade-master.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/upgrade-master.yml:52: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/upgrade-master.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/upgrade-master.yml:56: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/upgrade-master.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/upgrade-master.yml:68: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-gitlab-runner/upgrade-master.yml/master?enable=pin","Info:   0 out of  47 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   4 third-party GitHubAction 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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#pinned-dependencies"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#branch-protection"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/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 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T02:39:15.526Z","repository_id":37051382,"created_at":"2025-08-16T02:39:15.526Z","updated_at":"2025-08-16T02:39:15.526Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32520155,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T01:12:54.858Z","status":"online","status_checked_at":"2026-05-02T02:00:05.923Z","response_time":132,"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":["aws-cdk","containers","gitlab-runner","spotfleet-instance"],"created_at":"2024-10-06T10:10:59.546Z","updated_at":"2026-05-02T02:05:23.225Z","avatar_url":"https://github.com/neilkuan.png","language":"TypeScript","funding_links":["https://ko-fi.com/neilkuan"],"categories":[],"sub_categories":[],"readme":"[![NPM version](https://badge.fury.io/js/cdk-gitlab-runner.svg)](https://badge.fury.io/js/cdk-gitlab-runner)\n[![PyPI version](https://badge.fury.io/py/cdk-gitlab-runner.svg)](https://badge.fury.io/py/cdk-gitlab-runner)\n[![release](https://github.com/neilkuan/cdk-gitlab-runner/actions/workflows/release.yml/badge.svg)](https://github.com/neilkuan/cdk-gitlab-runner/actions/workflows/release.yml)\n\n![Downloads](https://img.shields.io/badge/-DOWNLOADS:-brightgreen?color=gray)\n![npm](https://img.shields.io/npm/dt/cdk-gitlab-runner?label=npm\u0026color=orange)\n![PyPI](https://img.shields.io/pypi/dm/cdk-gitlab-runner?label=pypi\u0026color=blue)\n\n![](https://img.shields.io/badge/iam_role_self-enable-green=?style=plastic\u0026logo=appveyor)\n![](https://img.shields.io/badge/vpc_self-enable-green=?style=plastic\u0026logo=appveyor)\n![](https://img.shields.io/badge/gitlab_url-customize-green=?style=plastic\u0026logo=appveyor)\n![](https://img.shields.io/badge/spotfleet-runner-green=?style=plastic\u0026logo=appveyor)\n\n# Welcome to `cdk-gitlab-runner`\nUse AWS CDK to create gitlab runner, and use [gitlab runner](https://gitlab.com/gitlab-org/gitlab-runner) to help you execute your Gitlab Pipeline Job.\n\u003e GitLab Runner is the open source project that is used to run your CI/CD jobs and send the results back to GitLab. [(source repo)](https://gitlab.com/gitlab-org/gitlab-runner)\n\n## Why\nGitlab provides [400 minutes per month for each free user](https://about.gitlab.com/pricing/), hosted Gitlab Runner to execute your gitlab pipeline job.That's pretty good and users don't need to manage gitlab runner. If it is just a simple ci job for test 400, it may be enough.\nBut what if you want to deploy to your AWS production environment through pipeline job?\nIs there any security consideration for using the hosted gitlab runner?!\n\nBut creating Gitlab Runner is not that simple, so I created this OSS so that you can quickly create Gitlab Runner and delete your Gitlab Runner via AWS CDK.\nIt will be used with AWS IAM Role, so you don't need to put AKSK in Gitlab environment variables.\n\n![](./image/cdk-gitlab-runner.png)\n\n\n## Note\n### Default will help you generate below services:\n\n- VPC\n  - Public Subnet (2)\n- EC2 (1 T3.micro)\n\n## Before start you need gitlab runner token in your `gitlab project` or `gitlab group`\n\n## In Group before Gitlab 15.10\nThis registration process is only supported in GitLab Runner 15.10 or later\nThis registration process is not supported in GitLab Runner 15.9 or earlier and only available as an experimental feature in GitLab Runner 15.10 and 15.11. You should upgrade to GitLab Runner 16.0 or later to use a stable version of this registration process. [Check this issue](https://github.com/neilkuan/cdk-gitlab-runner/issues/1796)\n \nGroup \u003e Settings \u003e CI/CD\n![group](image/group_runner_page.png)\n\n## In Group after Gitlab 15.10\nThis registration process is only supported in GitLab Runner 15.10 or later\nThis registration process is not supported in GitLab Runner 15.9 or earlier and only available as an experimental feature in GitLab Runner 15.10 and 15.11. You should upgrade to GitLab Runner 16.0 or later to use a stable version of this registration process. [Check this issue](https://github.com/neilkuan/cdk-gitlab-runner/issues/1796)\n \nGroup \u003e Build \u003e Runners\n![group](image/gitlab-runner-new-register.png)\n![group](image/gitlab-runner-new-register-1.png)\n![group](image/gitlab-runner-new-register-2.png)\n![group](image/gitlab-runner-new-register-3.jpg)\n\n\n### In Project before Gitlab 15.10\nThis registration process is only supported in GitLab Runner 15.10 or later\nThis registration process is not supported in GitLab Runner 15.9 or earlier and only available as an experimental feature in GitLab Runner 15.10 and 15.11. You should upgrade to GitLab Runner 16.0 or later to use a stable version of this registration process. [Check this issue](https://github.com/neilkuan/cdk-gitlab-runner/issues/1796)\n\nProject \u003e Settings \u003e CI/CD \u003e Runners\n![project](image/project_runner_page.png)\n\n### In Project after Gitlab 15.10\nThis registration process is only supported in GitLab Runner 15.10 or later\nThis registration process is not supported in GitLab Runner 15.9 or earlier and only available as an experimental feature in GitLab Runner 15.10 and 15.11. You should upgrade to GitLab Runner 16.0 or later to use a stable version of this registration process. [Check this issue](https://github.com/neilkuan/cdk-gitlab-runner/issues/1796)\n\nProject \u003e Settings \u003e CI/CD \u003e Runners\n![project](image/gitlab-runner-new-register-project.png)\n\n## Usage\n\nReplace your gitlab runner token in `$GITLABTOKEN`\n\n## Install\nUse the npm dist tag to opt in CDKv1 or CDKv2:\n```bash\n// for CDKv2\nnpm install cdk-gitlab-runner\nor\nnpm install cdk-gitlab-runner@latest\n\n// for CDKv1\nnpm install cdk-gitlab-runner@cdkv1 \n```\n\n## 💡💡💡 please click [here](https://github.com/neilkuan/cdk-gitlab-runner/tree/cdkv1#readme), if you are using aws-cdk v1.x.x version.💡💡💡\n\n### Instance Type\n\n```typescript\nimport { GitlabContainerRunner } from 'cdk-gitlab-runner';\n\n// If want change instance type to t3.large .\nnew GitlabContainerRunner(this, 'runner-instance', { gitlabtoken: 'glrt-GITLABTOKEN', ec2type:'t3.large',gitlabRunnerVersion: '15.10' });\n// OR\n// Just create a gitlab runner , by default instance type is t3.micro .\nimport { GitlabContainerRunner } from 'cdk-gitlab-runner';\n\nnew GitlabContainerRunner(this, 'runner-instance', { gitlabtoken: 'glrt-GITLABTOKEN', gitlabRunnerVersion: '15.10' });\n```\n\n### Gitlab Server Customize Url .\n\nIf you want change what you want tag name .\n\n```typescript\n// If you want change  what  your self Gitlab Server Url .\nimport { GitlabContainerRunner } from 'cdk-gitlab-runner';\n\nnew GitlabContainerRunner(this, 'runner-instance-change-tag', {\n  gitlabtoken: 'glrt-GITLABTOKEN',\n  gitlaburl: 'https://gitlab.my.com/',\n  gitlabRunnerVersion: '15.10'\n});\n```\n\n### Tags\n\nIf you want change what you want tag name .\n!!! Not support Gitlab Runner 15.10 and later !!!\n```typescript\n// If you want change  what  you want tag name .\nimport { GitlabContainerRunner } from 'cdk-gitlab-runner';\n\nnew GitlabContainerRunner(this, 'runner-instance-change-tag', {\n  gitlabtoken: 'glrt-GITLABTOKEN',\n  gitlabRunnerVersion: '15.10',\n  tags: ['aa', 'bb', 'cc'],\n});\n```\n\n### IAM Policy\n\nIf you want add runner other IAM Policy like s3-readonly-access.\n\n```typescript\n// If you want add runner other IAM Policy like s3-readonly-access.\nimport { GitlabContainerRunner } from 'cdk-gitlab-runner';\nimport { ManagedPolicy } from 'aws-cdk-lib/aws-iam';\n\nconst runner = new GitlabContainerRunner(this, 'runner-instance-add-policy', {\n  gitlabtoken: 'glrt-GITLABTOKEN',\n  gitlabRunnerVersion: '15.10',\n  tags: ['aa', 'bb', 'cc'],\n});\nrunner.runnerRole.addManagedPolicy(\n  ManagedPolicy.fromAwsManagedPolicyName('AmazonS3ReadOnlyAccess'),\n);\n```\n\n### Security Group\n\nIf you want add runner other SG Ingress .\n\n```typescript\n// If you want add runner other SG Ingress .\nimport { GitlabContainerRunner } from 'cdk-gitlab-runner';\nimport { Port, Peer } from 'aws-cdk-lib/aws-ec2';\n\nconst runner = new GitlabContainerRunner(this, 'runner-add-SG-ingress', {\n  gitlabtoken: 'glrt-GITLABTOKEN',\n  gitlabRunnerVersion: '15.10',\n  tags: ['aa', 'bb', 'cc'],\n});\n\n// you can add ingress in your runner SG .\nrunner.defaultRunnerSG.connections.allowFrom(\n  Peer.ipv4('0.0.0.0/0'),\n  Port.tcp(80),\n);\n```\n\n### Use self VPC\n\n\u003e 2020/06/27 , you can use your self exist VPC or new VPC , but please check your `vpc public Subnet` Auto-assign public IPv4 address must be Yes ,or `vpc private Subnet` route table associated `nat gateway` .\n\n```typescript\nimport { GitlabContainerRunner } from 'cdk-gitlab-runner';\nimport { Port, Peer, Vpc, SubnetType } from 'aws-cdk-lib/aws-ec2';\nimport { ManagedPolicy } from 'aws-cdk-lib/aws-iam';\n\nconst newvpc = new Vpc(stack, 'VPC', {\n  ipAddresses: IpAddresses.cidr('10.0.0.0/16'),\n  maxAzs: 2,\n  subnetConfiguration: [\n    {\n      cidrMask: 26,\n      name: 'RunnerVPC',\n      subnetType: SubnetType.PUBLIC,\n    },\n  ],\n  natGateways: 0,\n});\n\nconst runner = new GitlabContainerRunner(this, 'testing', {\n  gitlabtoken: 'glrt-GITLABTOKEN',\n  gitlabRunnerVersion: '15.10',\n  ec2type: 't3.small',\n  selfvpc: newvpc,\n});\n```\n\n### Use your self exist role\n\n\u003e 2020/06/27 , you can use your self exist role assign to runner\n\n```typescript\nimport { GitlabContainerRunner } from 'cdk-gitlab-runner';\nimport { Port, Peer } from 'aws-cdk-lib/aws-ec2';\nimport { ManagedPolicy, Role, ServicePrincipal } from 'aws-cdk-lib/aws-iam';\n\nconst role = new Role(this, 'runner-role', {\n  assumedBy: new ServicePrincipal('ec2.amazonaws.com'),\n  description: 'For Gitlab EC2 Runner Test Role',\n  roleName: 'TestRole',\n});\n\nconst runner = new GitlabContainerRunner(stack, 'testing', {\n  gitlabtoken: 'glrt-GITLABTOKEN',\n  gitlabRunnerVersion: '15.10',\n  ec2iamrole: role,\n});\nrunner.runnerRole.addManagedPolicy(\n  ManagedPolicy.fromAwsManagedPolicyName('AmazonS3ReadOnlyAccess'),\n);\n```\n\n### Custom Gitlab Runner EBS szie\n\n\u003e 2025/01/03 , you can change you want ebs size.\n\n```typescript\nimport { GitlabContainerRunner } from 'cdk-gitlab-runner';\n// on-demand instance \nnew GitlabContainerRunner(stack, 'testing', {\n  gitlabtoken: 'glrt-GITLABTOKEN',\n  gitlabRunnerVersion: '15.10',\n  onDemandEbsConfig: BlockDeviceVolume.ebs(60),\n});\n\n// spotfleet instance \nnew GitlabContainerRunner(stack, 'testing', {\n  gitlabtoken: 'glrt-GITLABTOKEN',\n  gitlabRunnerVersion: '15.10',\n  spotFleet: true,\n  spotEbsConfig: {\n    volumeSize: 50,\n  },\n});\n```\n\n### Control the number of runners with AutoScalingGroup\n\n\u003e 2020/11/25 , you can set the number of runners.\n\n```typescript\nimport { GitlabRunnerAutoscaling } from 'cdk-gitlab-runner';\n\nnew GitlabRunnerAutoscaling(stack, 'testing', {\n  gitlabToken: 'glrt-GITLABTOKEN',\n  gitlabRunnerVersion: '15.10',\n  minCapacity: 2,\n  maxCapacity: 2,\n});\n```\n\n### Support Spotfleet Gitlab Runner\n\n\u003e 2020/08/27 , you can use spotfleet instance be your gitlab runner,\n\u003e after create spotfleet instance will auto output instance id.\n\n```typescript\nimport { GitlabContainerRunner, BlockDuration } from 'cdk-gitlab-runner';\n\nconst runner = new GitlabContainerRunner(stack, 'testing', {\n  gitlabToken: 'glrt-GITLABTOKEN',\n  gitlabRunnerVersion: '15.10',\n  ec2type: 't3.large',\n  spotFleet: true,\n});\n// configure the expiration after 1 hours\nrunner.expireAfter(Duration.hours(1));\n```\n\n\u003e 2020/11/19, you setting job runtime bind host volumes.\n\u003e see more https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-runnersdocker-section\n\n```typescript\nimport { GitlabContainerRunner, BlockDuration } from 'cdk-gitlab-runner';\n\nconst runner = new GitlabContainerRunner(stack, 'testing', {\n  gitlabToken: 'glrt-GITLABTOKEN',\n  gitlabRunnerVersion: '15.10',\n  ec2type: 't3.large',\n  dockerVolumes: [\n    {\n      hostPath: '/tmp/cache',\n      containerPath: '/tmp/cache',\n    },\n  ],\n});\n```\n\n## Wait about 6 mins , If success you will see your runner in that page .\n\n![runner](image/group_runner2.png)\n\n#### you can use tag `gitlab` , `runner` , `awscdk` ,\n\u003e !!!!! Not Support Gitlab Runner after 15.10 and later\n## Example _`gitlab-ci.yaml`_\n\n[gitlab docs see more ...](https://docs.gitlab.com/ee/ci/yaml/README.html)\n\n```yaml\ndockerjob:\n  image: docker:18.09-dind\n  variables:\n  tags:\n    - runner\n    - awscdk\n    - gitlab\n  variables:\n    DOCKER_TLS_CERTDIR: \"\"\n  before_script:\n    - docker info\n  script:\n    - docker info;\n    - echo 'test 123';\n    - echo 'hello world 1228'\n```\n\n### If your want to debug you can go to aws console\n\n# `In your runner region !!!`\n\n## AWS Systems Manager \u003e Session Manager \u003e Start a session\n\n![system manager](image/session.png)\n\n#### click your `runner` and click `start session`\n\n#### in the brower console in put `bash`\n\n```bash\n# become to root\nsudo -i\n\n# list runner container .\nroot# docker ps -a\n\n# modify gitlab-runner/config.toml\n\nroot# cd /home/ec2-user/.gitlab-runner/ \u0026\u0026 ls\nconfig.toml\n```\n\n\n## :clap:  Supporters\n[![Stargazers repo roster for @neilkuan/cdk-gitlab-runner](https://reporoster.com/stars/neilkuan/cdk-gitlab-runner)](https://github.com/neilkuan/cdk-gitlab-runner/stargazers)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneilkuan%2Fcdk-gitlab-runner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneilkuan%2Fcdk-gitlab-runner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneilkuan%2Fcdk-gitlab-runner/lists"}