Registry / devops / pulumi-github

pulumi-github

JSON →
library6.13.0pypypi✓ verified 87d ago

Pulumi provider for managing GitHub resources (repositories, teams, webhooks, actions, etc.). Currently at v6.13.0, requires Python >=3.9. Updates follow terraform-provider-github releases, with frequent patch releases.

pip install pulumi-github
INSTALL
IMPORT
SIG · PULUMI-GITHUB
P
pulumi-github
devopspythonv6.13.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Repository
from pulumi_github import Repository
import pulumi_github # then Repository is accessed via pulumi_github.Repository
Direct import from pulumi_github is preferred.
Team
from pulumi_github import Team
ActionsSecret
from pulumi_github import ActionsSecret

Create a public GitHub repository with Pulumi.

import pulumi from pulumi_github import Repository # Set config: pulumi config set github:token <token> repo = Repository("my-repo", name="my-repo", description="Created with Pulumi", visibility="public", has_issues=True, ) pulumi.export("repo_url", repo.html_url)
pulumi --version
Debug
Known issues
gotchaResource name (first argument) is the Pulumi logical name, not the GitHub repo name. The `name` property defines the actual GitHub repo name.
fix
Always set `name=` property to the desired repo name.
affects: all
breakingUpgrading from Pulumi GitHub <6.0.0 requires schema changes; resources like `GithubRepository` renamed to `Repository`. See bridge upgrade guide.
fix
Check the provider changelog for migration steps; use `pulumi preview` before upgrade.
affects: <6.0.0 -> >=6.0.0
gotchaGitHub token must be configured via `pulumi config set github:token` or environment variable `GITHUB_TOKEN`. Missing token leads to auth errors.
fix
Set `GITHUB_TOKEN` env var or use `pulumi config set github:token <token>`.
affects: all
deprecatedSome older resources (e.g., `GithubActionsSecret`) may be deprecated in favour of `ActionsSecret`. Check the provider docs.
fix
Use the new namespaced resources (e.g., `ActionsSecret`).
affects: >=6.0.0
gotchaThe provider relies on the Terraform bridge; some Terraform behaviours (e.g., state drift detection) may differ from native Pulumi providers.
fix
Run `pulumi refresh` periodically to sync state.
affects: all
Errors
Common errors & fixes
pulumi-github: error: 401 Bad credentials
GitHub token not set or invalid.
fix
Set GITHUB_TOKEN environment variable or run `pulumi config set github:token <YOUR_TOKEN>`.
ImportError: cannot import name 'Repository' from 'pulumi_github'
Misnamed import or older version where resource names differed (e.g., `GithubRepository`).
fix
Use correct import: `from pulumi_github import Repository`. For older releases, see docs for the exact resource name.
pulumi-github: error: 404 Not Found: repository not found
Repository name collision or insufficient permissions.
fix
Ensure the repo name is unique in your GitHub account/org and the token has repo scope.
Upgrade
Version history
6.13.0latest on PyPI · released Apr 24, 2026
Audit
Dependencies
pulumirequiredRequired: Pulumi SDK to deploy resources.
Agent activity
2 hits · last 30 days
node
2
Resources
pulumi-github — pip install pulumi-github · libregistry