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
/
configurator.tf
73 lines (66 loc) · 1.6 KB
/
configurator.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
68
69
70
71
72
73
resource "github_repository" "configurator" {
name = "configurator"
description = "Web configurator for ContainerSSH"
has_issues = true
has_projects = false
has_wiki = false
has_downloads = true
vulnerability_alerts = true
default_branch = "main"
homepage_url = "https://configurator.containerssh.io/"
allow_merge_commit = false
allow_squash_merge = true
allow_rebase_merge = true
allow_auto_merge = true
delete_branch_on_merge = true
pages {
cname = "configurator.containerssh.io"
source {
branch = "gh-pages"
path = "/"
}
}
topics = [
"docker",
"kubernetes",
"ssh",
"devsecops",
"security",
]
lifecycle {
ignore_changes = [
template,
has_downloads,
topics,
]
prevent_destroy = true
}
}
resource "github_team_repository" "configurator" {
repository = github_repository.configurator.name
team_id = github_team.chairs.id
permission = "admin"
}
//noinspection MissingProperty
resource "github_branch_protection" "configurator" {
repository_id = github_repository.configurator.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 = [
"CodeQL",
"Run lint",
"Release",
]
}
push_restrictions = [
github_team.chairs.node_id,
github_team.bots.node_id,
]
}