A Pulumi package for creating and managing github cloud resources.
Project description
GitHub provider
The GitHub resource provider for Pulumi lets you use GitHub resources in your infrastructure programs. To use this package, please install the Pulumi CLI first.
Installing
This package is available in many languages in the standard packaging formats.
Node.js (Java/TypeScript)
To use from JavaScript or TypeScript in Node.js, install using either npm
:
$ npm install @pulumi/github
or yarn
:
$ yarn add @pulumi/github
Python
To use from Python, install using pip
:
$ pip install pulumi-github
Go
To use from Go, use go get
to grab the latest version of the library
$ go get github.com/pulumi/pulumi-github/sdk/go/...
.NET
To use from .NET, install using dotnet add package
:
$ dotnet add package Pulumi.Github
Configuration
The following configuration points are available:
github:token
- (Optional) This is the GitHub personal access token. It can also be sourced from theGITHUB_TOKEN
environment variable. If anonymous is false, token is required.github:organization
- (Optional) This is the target GitHub organization to manage. The account corresponding to the token will need "owner" privileges for this organization. It can also be sourced from theGITHUB_ORGANIZATION
environment variable. If individual is set to false, organization is required.github:baseUrl
- (Optional) This is the target GitHub base API endpoint. Providing a value is a requirement when working with GitHub Enterprise. It is optional to provide this value and it can also be sourced from theGITHUB_BASE_URL
environment variable. The value must end with a slash, and generally includes the API version, for instancehttps://github.someorg.example/api/v3/
.github:insecure
- (Optional) Whether server should be accessed without verifying the TLS certificate. As the name suggests this is insecure and should not be used beyond experiments, accessing local (non-production) GHE instance etc. There is a number of ways to obtain trusted certificate for free, e.g. from Let's Encrypt. Such trusted certificate does not require this option to be enabled. Defaults tofalse
.github:individual
- (Optional) Run outside an organization. When individual is true, the provider will run outside the scope of an organization. Defaults tofalse
.github:anonymous
- (Optional) Authenticate without a token. When anonymous is true, the provider will not be able to access resources that require authentication. Setting to true will lead the GitHub provider to work in an anonymous mode with the corresponding API rate limits. Defaults tofalse
.
Reference
For further information, please visit the GitHub provider docs or for detailed reference documentation, please visit the API docs.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pulumi_github-1.5.0a1593706624.tar.gz
.
File metadata
- Download URL: pulumi_github-1.5.0a1593706624.tar.gz
- Upload date:
- Size: 28.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78e7c3e34f6f7768af4bcd6da0f5f63ea595dce31e69ca0ac18f6b49529e4eed |
|
MD5 | 492cf6f064f1fba44ed4046ad715dfa6 |
|
BLAKE2b-256 | 16eac516e39a426c03d2673e522d54e1908a048019378532f36ef1a97e760c5d |