File tree Expand file tree Collapse file tree 20 files changed +313
-34
lines changed
modules/webhook-github-app Expand file tree Collapse file tree 20 files changed +313
-34
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ Be aware some shells will print some end of line character `%`.
52
52
| ------| --------| ---------|
53
53
| <a name =" module_base " ></a > [ base] ( #module\_ base ) | ../base | n/a |
54
54
| <a name =" module_runners " ></a > [ runners] ( #module\_ runners ) | ../../ | n/a |
55
+ | <a name =" module_webhook-github-app " ></a > [ webhook-github-app] ( #module\_ webhook-github-app ) | ../../modules/webhook-github-app | n/a |
55
56
56
57
## Resources
57
58
Original file line number Diff line number Diff line change @@ -86,3 +86,14 @@ module "runners" {
86
86
# override scaling down
87
87
scale_down_schedule_expression = " cron(* * * * ? *)"
88
88
}
89
+
90
+ module "webhook-github-app" {
91
+ source = " ../../modules/webhook-github-app"
92
+
93
+ github_app = {
94
+ key_base64 = var.github_app.key_base64
95
+ id = var.github_app.id
96
+ webhook_secret = random_id.random.hex
97
+ }
98
+ webhook_endpoint = module. runners . webhook . endpoint
99
+ }
Original file line number Diff line number Diff line change @@ -22,14 +22,12 @@ terraform init
22
22
terraform apply
23
23
```
24
24
25
- You can receive the webhook details by running:
25
+ The module will try to update the GitHub App webhook and secret (only linux/mac). You can receive the webhook details by running:
26
26
27
27
``` bash
28
- terraform output -raw webhook_secret
28
+ terraform output webhook_secret
29
29
```
30
30
31
- Be aware some shells will print some end of line character ` % ` .
32
-
33
31
<!-- BEGIN_TF_DOCS -->
34
32
## Requirements
35
33
@@ -52,6 +50,7 @@ Be aware some shells will print some end of line character `%`.
52
50
| ------| --------| ---------|
53
51
| <a name =" module_base " ></a > [ base] ( #module\_ base ) | ../base | n/a |
54
52
| <a name =" module_runners " ></a > [ runners] ( #module\_ runners ) | ../../ | n/a |
53
+ | <a name =" module_webhook-github-app " ></a > [ webhook-github-app] ( #module\_ webhook-github-app ) | ../../modules/webhook-github-app | n/a |
55
54
56
55
## Resources
57
56
Original file line number Diff line number Diff line change @@ -97,3 +97,14 @@ module "runners" {
97
97
# Enable debug logging for the lambda functions
98
98
# log_level = "debug"
99
99
}
100
+
101
+ module "webhook-github-app" {
102
+ source = " ../../modules/webhook-github-app"
103
+
104
+ github_app = {
105
+ key_base64 = var.github_app.key_base64
106
+ id = var.github_app.id
107
+ webhook_secret = random_id.random.hex
108
+ }
109
+ webhook_endpoint = module. runners . webhook . endpoint
110
+ }
Original file line number Diff line number Diff line change @@ -21,13 +21,12 @@ terraform init
21
21
terraform apply
22
22
```
23
23
24
- You can receive the webhook details by running:
24
+ The module will try to update the GitHub App webhook and secret (only linux/mac). You can receive the webhook details by running:
25
25
26
26
``` bash
27
- terraform output -raw webhook_secret
27
+ terraform output webhook_secret
28
28
```
29
29
30
- Be aware some shells will print some end of line character ` % ` .
31
30
<!-- BEGIN_TF_DOCS -->
32
31
## Requirements
33
32
@@ -50,6 +49,7 @@ Be aware some shells will print some end of line character `%`.
50
49
| ------| --------| ---------|
51
50
| <a name =" module_base " ></a > [ base] ( #module\_ base ) | ../base | n/a |
52
51
| <a name =" module_runners " ></a > [ runners] ( #module\_ runners ) | ../../ | n/a |
52
+ | <a name =" module_webhook-github-app " ></a > [ webhook-github-app] ( #module\_ webhook-github-app ) | ../../modules/webhook-github-app | n/a |
53
53
54
54
## Resources
55
55
Original file line number Diff line number Diff line change @@ -85,3 +85,14 @@ module "runners" {
85
85
# deadLetterTargetArn = null
86
86
# }
87
87
}
88
+
89
+ module "webhook-github-app" {
90
+ source = " ../../modules/webhook-github-app"
91
+
92
+ github_app = {
93
+ key_base64 = var.github_app.key_base64
94
+ id = var.github_app.id
95
+ webhook_secret = random_id.random.hex
96
+ }
97
+ webhook_endpoint = module. runners . webhook . endpoint
98
+ }
Original file line number Diff line number Diff line change @@ -39,14 +39,12 @@ terraform init
39
39
terraform apply
40
40
```
41
41
42
- You can receive the webhook details by running:
42
+ The module will try to update the GitHub App webhook and secret (only linux/mac). You can receive the webhook details by running:
43
43
44
44
``` bash
45
- terraform output -raw webhook_secret
45
+ terraform output webhook_secret
46
46
```
47
47
48
- Be aware some shells will print some end of line character ` % ` .
49
-
50
48
<!-- BEGIN_TF_DOCS -->
51
49
## Requirements
52
50
@@ -69,6 +67,7 @@ Be aware some shells will print some end of line character `%`.
69
67
| ------| --------| ---------|
70
68
| <a name =" module_base " ></a > [ base] ( #module\_ base ) | ../base | n/a |
71
69
| <a name =" module_multi-runner " ></a > [ multi-runner] ( #module\_ multi-runner ) | ../../modules/multi-runner | n/a |
70
+ | <a name =" module_webhook-github-app " ></a > [ webhook-github-app] ( #module\_ webhook-github-app ) | ../../modules/webhook-github-app | n/a |
72
71
73
72
## Resources
74
73
Original file line number Diff line number Diff line change 9
9
resource "random_id" "random" {
10
10
byte_length = 20
11
11
}
12
+
12
13
module "base" {
13
14
source = " ../base"
14
15
@@ -46,3 +47,14 @@ module "multi-runner" {
46
47
# Enable debug logging for the lambda functions
47
48
# log_level = "debug"
48
49
}
50
+
51
+ module "webhook-github-app" {
52
+ source = " ../../modules/webhook-github-app"
53
+
54
+ github_app = {
55
+ key_base64 = var.github_app.key_base64
56
+ id = var.github_app.id
57
+ webhook_secret = random_id.random.hex
58
+ }
59
+ webhook_endpoint = module. multi-runner . webhook . endpoint
60
+ }
Original file line number Diff line number Diff line change @@ -86,14 +86,12 @@ terraform init
86
86
terraform apply
87
87
```
88
88
89
- You can receive the webhook details by running:
89
+ The module will try to update the GitHub App webhook and secret (only linux/mac). You can receive the webhook details by running:
90
90
91
91
``` bash
92
- terraform output -raw webhook_secret
92
+ terraform output webhook_secret
93
93
```
94
94
95
- Be aware some shells will print some end of line character ` % ` .
96
-
97
95
<!-- BEGIN_TF_DOCS -->
98
96
## Requirements
99
97
@@ -117,6 +115,7 @@ Be aware some shells will print some end of line character `%`.
117
115
| ------| --------| ---------|
118
116
| <a name =" module_base " ></a > [ base] ( #module\_ base ) | ../base | n/a |
119
117
| <a name =" module_runners " ></a > [ runners] ( #module\_ runners ) | ../../ | n/a |
118
+ | <a name =" module_webhook-github-app " ></a > [ webhook-github-app] ( #module\_ webhook-github-app ) | ../../modules/webhook-github-app | n/a |
120
119
121
120
## Resources
122
121
You can’t perform that action at this time.
0 commit comments