Skip to content

Commit eded788

Browse files
committed
Update the GitHub thumbprint variable
1 parent 03e97ce commit eded788

File tree

4 files changed

+30
-22
lines changed

4 files changed

+30
-22
lines changed

README.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -65,21 +65,22 @@ jobs:
6565

6666
#### Optional
6767

68-
| Name | Default | Description |
69-
|---------------------------------|------------|---------------------------------------------------------|
70-
| `attach_admin_policy` | `false` | Flag to attach/detach the AdministratorAccess policy. |
71-
| `attach_read_only_policy` | `true` | Flag to attach/detach the ReadOnly policy. |
72-
| `enabled` | `true` | Flag to enable/disable creation of resources. |
73-
| `force_detach_policies` | `false` | Flag to force detach policies attached to the IAM role. |
74-
| `iam_policy_name` | `"github"` | Name of the IAM policy to be assumed by GitHub. |
75-
| `iam_policy_path` | `"/"` | Path to the IAM policy. |
76-
| `iam_role_name` | `"github"` | Name of the IAM role. |
77-
| `iam_role_path` | `"/"` | Path to the IAM role. |
78-
| `iam_role_permissions_boundary` | `""` | Permissions boundary to be used by the IAM role. |
79-
| `iam_role_policy_arns` | `[]` | List of IAM policy ARNs to be attached to the IAM role. |
80-
| `managed_policy_arns` | `[]` | List of managed policy ARNs to apply to the IAM role. |
81-
| `max_session_duration` | `3600` | Maximum session duration in seconds. |
82-
| `tags` | `{}` | Map of tags to be applied to all resources. |
68+
| Name | Default | Description |
69+
|---------------------------------|---------------|---------------------------------------------------------|
70+
| `attach_admin_policy` | `false` | Flag to attach/detach the AdministratorAccess policy. |
71+
| `attach_read_only_policy` | `true` | Flag to attach/detach the ReadOnly policy. |
72+
| `enabled` | `true` | Flag to enable/disable creation of resources. |
73+
| `force_detach_policies` | `false` | Flag to force detach policies attached to the IAM role. |
74+
| `github_thumbprint` | `"6938fd4d…"` | GitHub OpenID TLS certificate thumbprint. |
75+
| `iam_policy_name` | `"github"` | Name of the IAM policy to be assumed by GitHub. |
76+
| `iam_policy_path` | `"/"` | Path to the IAM policy. |
77+
| `iam_role_name` | `"github"` | Name of the IAM role. |
78+
| `iam_role_path` | `"/"` | Path to the IAM role. |
79+
| `iam_role_permissions_boundary` | `""` | Permissions boundary to be used by the IAM role. |
80+
| `iam_role_policy_arns` | `[]` | List of IAM policy ARNs to be attached to the IAM role. |
81+
| `managed_policy_arns` | `[]` | List of managed policy ARNs to apply to the IAM role. |
82+
| `max_session_duration` | `3600` | Maximum session duration in seconds. |
83+
| `tags` | `{}` | Map of tags to be applied to all resources. |
8384

8485
### Outputs
8586

examples/complete/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module "aws_oidc_github" {
1010
attach_admin_policy = var.attach_admin_policy
1111
attach_read_only_policy = var.attach_read_only_policy
1212
force_detach_policies = var.force_detach_policies
13+
github_thumbprint = var.github_thumbprint
1314
iam_policy_name = var.iam_policy_name
1415
iam_policy_path = var.iam_policy_path
1516
iam_role_name = var.iam_role_name

examples/complete/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ variable "github_repositories" {
3232
type = list(string)
3333
}
3434

35+
variable "github_thumbprint" {
36+
default = "6938fd4d98bab03faadb97b34396831e3780aea1"
37+
description = "GitHub OpenID TLS certificate thumbprint."
38+
type = string
39+
}
40+
3541
variable "iam_policy_name" {
3642
default = "github"
3743
description = "Name of the IAM policy to be assumed by GitHub."

variables.tf

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,6 @@ variable "force_detach_policies" {
3636
type = string
3737
}
3838

39-
// Refer to the README for information on obtaining the thumbprint.
40-
variable "github_thumbprint" {
41-
default = "15e29108718111e59b3dad31954647e3c344a231"
42-
description = "GitHub OpenID TLS cert thumbprint"
43-
type = string
44-
}
45-
4639
variable "github_organisation" {
4740
description = "GitHub organisation name."
4841
type = string
@@ -53,6 +46,13 @@ variable "github_repositories" {
5346
type = list(string)
5447
}
5548

49+
// Refer to the README for information on obtaining the thumbprint.
50+
variable "github_thumbprint" {
51+
default = "6938fd4d98bab03faadb97b34396831e3780aea1"
52+
description = "GitHub OpenID TLS certificate thumbprint."
53+
type = string
54+
}
55+
5656
variable "iam_policy_name" {
5757
default = "github"
5858
description = "Name of the IAM policy to be assumed by GitHub."

0 commit comments

Comments
 (0)