@cdktf/provider-github

中文文档
15.3.1发布于 2025/12/11MPL-2.0TypeScriptCommonJS零依赖近 30 天下载 5.1万

Prebuilt github Provider for Terraform CDK (cdktf)

此软件包已被标记为弃用

See https://cdk.tf/imports for details on how to continue to use the github provider in your CDK for Terraform (CDKTF) projects by generating the bindings locally.

原始使用文档
文档目录7 节
  1. Deprecated Packages
  2. NPM
  3. PyPI
  4. Nuget
  5. Maven
  6. Go
  7. Docs

CDKTF prebuilt bindings for integrations/github provider version 6.9.0

HashiCorp made the decision to stop publishing new versions of prebuilt Terraform github provider bindings for CDK for Terraform on December 10, 2025. As such, this repository has been archived and is no longer supported in any way by HashiCorp. Previously-published versions of this prebuilt provider will still continue to be available on their respective package managers (e.g. npm, PyPi, Maven, NuGet), but these will not be compatible with new releases of cdktf past 0.21.0 and are no longer eligible for commercial support.

As a reminder, you can continue to use the integrations/github provider in your CDK for Terraform (CDKTF) projects, even with newer versions of CDKTF, but you will need to generate the bindings locally. The easiest way to do so is to use the provider add command, optionally with the --force-local flag enabled:

cdktf provider add integrations/github --force-local

For more information and additional examples, check out our documentation on generating provider bindings manually.

Deprecated Packages

NPM

The npm package is available at https://www.npmjs.com/package/@cdktf/provider-github.

npm install @cdktf/provider-github

PyPI

The PyPI package is available at https://pypi.org/project/cdktf-cdktf-provider-github.

pipenv install cdktf-cdktf-provider-github

Nuget

The Nuget package is available at https://www.nuget.org/packages/HashiCorp.Cdktf.Providers.Github.

dotnet add package HashiCorp.Cdktf.Providers.Github

Maven

The Maven package is available at https://mvnrepository.com/artifact/com.hashicorp/cdktf-provider-github.

<dependency>
    <groupId>com.hashicorp</groupId>
    <artifactId>cdktf-provider-github</artifactId>
    <version>[REPLACE WITH DESIRED VERSION]</version>
</dependency>

Go

The go package is generated into the github.com/cdktf/cdktf-provider-github-go package.

go get github.com/cdktf/cdktf-provider-github-go/github/<version>

Where <version> is the version of the prebuilt provider you would like to use e.g. v11. The full module name can be found within the go.mod file.

Docs

Find auto-generated docs for this provider here:

You can also visit a hosted version of the documentation on constructs.dev.

版本与发布记录

@cdktf/provider-github 共发布 1,048 个版本,首次发布于 2020/08/16;过去 12 个月发布了 5 个版本。

版本发布日期距今
15.3.1latest2025/12/1110 个月前
15.3.02025/12/0611 个月前
15.2.22025/11/1811 个月前
15.2.12025/11/1511 个月前
15.2.02025/11/1311 个月前
15.1.32025/11/011 年前

关于 @cdktf/provider-github 的常见问题

@cdktf/provider-github 是什么?

Prebuilt github Provider for Terraform CDK (cdktf)注意:该包已被作者标记为弃用——See https://cdk.tf/imports for details on how to continue to use the github provider in your CDK for Terraform (CDKTF) projects by generating the bindings locally.

如何安装 @cdktf/provider-github?

在项目目录运行 npm install @cdktf/provider-github,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:cdktf(^0.21.0)、constructs(^10.4.2)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@cdktf/provider-github 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@cdktf/provider-github 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@cdktf/provider-github 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >= 20.9.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@cdktf/provider-github 可以商用吗?

@cdktf/provider-github 使用 MPL-2.0 许可。弱 Copyleft:可以商用,也可以和闭源代码一起使用;但如果分发时修改了 MPL 授权的文件,这些文件的修改需以 MPL 开源。以上为概括,不构成法律意见,请以许可原文为准。

@cdktf/provider-github 的下载量有多少?

根据 npm 官方下载统计,@cdktf/provider-github 在 2026/10/10 – 2026/11/08 这 30 天内被下载 51,268 次,日均约 1,709 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@cdktf/provider-github 还在维护吗?

最新版本 15.3.1 发布于 2025/12/11(10 个月前);至今共发布 1048 个版本,其中过去 12 个月发布了 5 个;首次发布于 2020/08/16。作者已将其标记为弃用,新项目建议寻找替代方案。