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
/
authconfig.tf
68 lines (63 loc) · 1.57 KB
/
authconfig.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
resource "github_repository" "authconfig" {
name = "AuthConfig"
description = "The Authentication and Configuration Server for ContainerSSH"
has_issues = true
has_projects = false
has_wiki = false
has_downloads = true
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 = [
"docker",
"kubernetes",
"ssh",
"devsecops",
"security",
]
template {
owner = "ContainerSSH"
repository = "library-template"
}
lifecycle {
ignore_changes = [
template,
has_downloads,
topics,
]
prevent_destroy = true
}
}
resource "github_team_repository" "authconfig" {
repository = github_repository.authconfig.name
team_id = github_team.chairs.id
permission = "admin"
}
//noinspection MissingProperty
resource "github_branch_protection" "authconfig" {
repository_id = github_repository.authconfig.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",
"Run tests",
]
}
push_restrictions = [
github_team.chairs.node_id,
github_team.bots.node_id,
]
}