Files
dev_blog/infra/github/versions.tf
T
Jason RossandCopilot 037edd905a Add OpenTofu module for GitHub repo guard-rails
Manages branch protection ruleset and deployment environments for this
repository. Mirrored to JMR-dev/gh-repo-bootstrap as a reusable module
+ gh CLI extension.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-29 18:30:45 -05:00

34 lines
935 B
Terraform

terraform {
required_version = ">= 1.8.0"
required_providers {
github = {
source = "integrations/github"
version = "~> 6.2"
}
}
# Cloudflare R2 (S3-compatible) backend, mirroring infra/versions.tf.
# Account-specific values are supplied at init time:
# tofu init -backend-config=backend.hcl
# For local-only experimentation, comment this entire block out and
# OpenTofu will fall back to the local backend.
backend "s3" {
key = "dev_blog/github.tfstate"
region = "auto"
skip_credentials_validation = true
skip_metadata_api_check = true
skip_region_validation = true
skip_requesting_account_id = true
skip_s3_checksum = true
use_path_style = true
}
}
provider "github" {
owner = var.repo_owner
# Token is read from the GITHUB_TOKEN environment variable.
# Easiest source: `export GITHUB_TOKEN=$(gh auth token)`.
}