This repository has been archived by the owner on Oct 12, 2023. It is now read-only.
generated from ContainerSSH/library-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
go.tf
67 lines (60 loc) · 1.47 KB
/
go.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
55
56
57
58
59
60
61
62
63
64
65
66
67
resource "github_repository" "go" {
name = "go.containerssh.io"
description = "The ContainerSSH Go package redirector"
has_issues = true
has_projects = false
has_wiki = false
has_downloads = false
vulnerability_alerts = true
default_branch = "main"
homepage_url = "https://containerssh.io/"
allow_merge_commit = false
allow_squash_merge = true
allow_rebase_merge = true
allow_auto_merge = true
delete_branch_on_merge = true
topics = [
"containerssh",
"infrastructure",
]
pages {
cname = "go.containerssh.io"
source {
branch = "gh-pages"
path = "/"
}
}
lifecycle {
ignore_changes = [
template,
has_downloads,
topics,
pages,
]
prevent_destroy = true
}
}
resource "github_team_repository" "go" {
repository = github_repository.go.name
team_id = github_team.chairs.id
permission = "admin"
}
//noinspection MissingProperty
resource "github_branch_protection" "go" {
repository_id = github_repository.go.node_id
pattern = "main"
enforce_admins = false
require_signed_commits = false
required_pull_request_reviews {
dismiss_stale_reviews = true
required_approving_review_count = 1
}
required_status_checks {
strict = true
contexts = []
}
push_restrictions = [
github_team.chairs.node_id,
github_team.bots.node_id,
]
}