跳到正文

GitHub ​

The GitHub provider for Pulumi can be used to provision any of the cloud resources available in GitHub. The GitHub provider must be configured with credentials to deploy and update resources in GitHub.

See the full API documentation for complete details of the available GitHub provider APIs.

Setup ​

The GitHub provider supports several options for providing access to GitHub credentials. See the GitHub setup page for details.

Example ​

typescript
import * as github from "@pulumi/github";

const repo = new github.Repository("demo-repo", {
  description: "Generated from automated test",
  private: true,
});

Libraries ​

The following packages are available in packager managers:

The GitHub provider is open source and available in the pulumi/pulumi-github repo.

文档内容翻译自 Pulumi 官方文档。