Skip to content

Instantly share code, notes, and snippets.

@ecukalla
Last active April 21, 2024 13:27
Show Gist options
  • Save ecukalla/be08f09d23f7dca3680b016e9fb98077 to your computer and use it in GitHub Desktop.
Save ecukalla/be08f09d23f7dca3680b016e9fb98077 to your computer and use it in GitHub Desktop.
terraform github
terraform {
required_providers {
github = {
source = "integrations/github"
version = "~> 6.2.1"
}
}
}
# Configure the GitHub Provider
provider "github" {}
resource "github_repository" "this" {
has_downloads = false
has_issues = true
has_projects = false
has_wiki = false
name = "YOUR_GITHUB_REPO"
vulnerability_alerts = true
allow_update_branch = true
description = ""
homepage_url = "https://domain.org"
security_and_analysis {
secret_scanning {
status = "enabled"
}
secret_scanning_push_protection {
status = "enabled"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment