-
Notifications
You must be signed in to change notification settings - Fork 0
/
github.tf
54 lines (46 loc) · 1.3 KB
/
github.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
terraform {
required_version = "1.1.7"
required_providers {
github = {
source = "integrations/github"
version = "~> 4.20.0"
}
}
}
provider "github" {
token = var.github_token
}
variable "github_token" {
type = string
description = "The GitHub Personal Access Token (PAT) to use for authentication"
}
resource "github_repository" "webmencoder" {
#ts:skip=AC_GITHUB_0002 repo is intentionally public
name = "webmencoder"
description = "An opinionated CLI for converting MPEG to WebM"
has_issues = true
has_projects = true
has_wiki = true
allow_squash_merge = true
allow_merge_commit = false
allow_rebase_merge = false
delete_branch_on_merge = true
vulnerability_alerts = "true"
}
resource "github_branch_default" "main" {
repository = github_repository.webmencoder.name
branch = "main"
}
resource "github_branch_protection" "main" {
repository_id = github_repository.webmencoder.node_id
pattern = "main"
enforce_admins = false
require_signed_commits = true
required_status_checks {
strict = true
contexts = ["audit", "lint-clippy", "lint-superlinter"]
}
required_pull_request_reviews {
dismiss_stale_reviews = true
}
}