Skip to content

Commit 4481aef

Browse files
committed
Update GitHub's new SSL thumbprint
Fixes #1
1 parent 6525d32 commit 4481aef

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

main.tf

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
locals {
16-
// Refer to the README for information on obtaining the thumbprint.
17-
github_thumbprint = "a031c46782e6e6c662c2c87c76da9aa62ccabd8e"
18-
}
19-
2015
resource "aws_iam_role" "github" {
2116
count = var.enabled ? 1 : 0
2217

@@ -56,6 +51,6 @@ resource "aws_iam_openid_connect_provider" "github" {
5651

5752
client_id_list = ["https://github.com/${var.github_organisation}", "sts.amazonaws.com"]
5853
tags = var.tags
59-
thumbprint_list = [local.github_thumbprint]
54+
thumbprint_list = [var.github_thumbprint]
6055
url = "https://token.actions.githubusercontent.com"
6156
}

variables.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ 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+
3946
variable "github_organisation" {
4047
description = "GitHub organisation name."
4148
type = string

0 commit comments

Comments
 (0)