Skip to content

Commit 0cc3662

Browse files
authored
Bump OIDC module (#6)
1 parent 6a840e9 commit 0cc3662

File tree

6 files changed

+35
-18
lines changed

6 files changed

+35
-18
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ permissions:
1414

1515
jobs:
1616
ci:
17-
uses: SPHTech-Platform/reusable-workflows/.github/workflows/terraform.yaml@main
17+
uses: SPHTech-Platform/reusable-workflows/.github/workflows/terraform.yaml@v2
1818
with:
1919
upload_sarif: true

.pre-commit-config.yaml

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,40 @@
11
repos:
22
- repo: https://github.com/gruntwork-io/pre-commit
3-
rev: v0.1.17
3+
rev: v0.1.22
44
hooks:
5-
- id: terraform-fmt
6-
- id: terraform-validate
7-
- id: tflint
8-
args:
9-
- "--module"
10-
- "--config=.tflint.hcl"
11-
- id: markdown-link-check
125
- id: shellcheck
136

7+
- repo: https://github.com/tcort/markdown-link-check
8+
rev: v3.11.2
9+
hooks:
10+
- id: markdown-link-check
11+
args:
12+
- "--config=mlc_config.json"
13+
1414
- repo: https://github.com/antonbabenko/pre-commit-terraform
15-
rev: v1.64.0
15+
rev: v1.81.0
1616
hooks:
17+
- id: terraform_fmt
18+
- id: terraform_providers_lock
19+
args:
20+
- --args=-platform=linux_amd64
21+
- id: terraform_validate
22+
- id: terraform_tflint
23+
args:
24+
- --args=--module
25+
- --args=--config=__GIT_WORKING_DIR__/.tflint.hcl
1726
- id: terraform_docs
1827
args:
19-
- "--args=--lockfile=false"
28+
- --hook-config=--path-to-file=README.md
29+
- --hook-config=--add-to-existing-file=true
30+
- --hook-config=--recursive=true
2031
- id: terraform_tfsec
2132
args:
2233
- --args=--exclude-downloaded-modules
23-
- id: checkov
34+
- id: terraform_checkov
35+
2436
- repo: https://github.com/pre-commit/pre-commit-hooks
25-
rev: v4.1.0
37+
rev: v4.4.0
2638
hooks:
2739
# Git style
2840
- id: check-added-large-files

.tflint.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugin "aws" {
22
enabled = true
3-
version = "0.13.4"
3+
version = "0.24.1"
44
source = "github.com/terraform-linters/tflint-ruleset-aws"
55
}
66

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,20 @@
77
|------|---------|
88
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
99
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.0 |
10+
| <a name="requirement_tls"></a> [tls](#requirement\_tls) | >= 4.0 |
1011

1112
## Providers
1213

1314
| Name | Version |
1415
|------|---------|
1516
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 4.0 |
16-
| <a name="provider_tls"></a> [tls](#provider\_tls) | n/a |
17+
| <a name="provider_tls"></a> [tls](#provider\_tls) | >= 4.0 |
1718

1819
## Modules
1920

2021
| Name | Source | Version |
2122
|------|--------|---------|
22-
| <a name="module_tfc_workload_identity_role"></a> [tfc\_workload\_identity\_role](#module\_tfc\_workload\_identity\_role) | terraform-aws-modules/iam/aws//modules/iam-assumable-role-with-oidc | ~> 5.3.0 |
23+
| <a name="module_tfc_workload_identity_role"></a> [tfc\_workload\_identity\_role](#module\_tfc\_workload\_identity\_role) | terraform-aws-modules/iam/aws//modules/iam-assumable-role-with-oidc | ~> 5.27 |
2324

2425
## Resources
2526

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ resource "aws_iam_openid_connect_provider" "tfc_provider" {
44
url = local.oidc_provider_url
55
client_id_list = var.tfc_oidc_provider_audiences
66
thumbprint_list = [
7-
data.tls_certificate.tfc_certificate.certificates.0.sha1_fingerprint,
7+
data.tls_certificate.tfc_certificate.certificates[0].sha1_fingerprint,
88
]
99
}
1010

1111
module "tfc_workload_identity_role" {
1212
source = "terraform-aws-modules/iam/aws//modules/iam-assumable-role-with-oidc"
13-
version = "~> 5.3.0"
13+
version = "~> 5.27"
1414

1515
# Role must not be created if no workspaces are listed. Otherwise, anyone on TFC with the right
1616
# audience can assume this role.

versions.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,9 @@ terraform {
55
source = "hashicorp/aws"
66
version = ">= 4.0"
77
}
8+
tls = {
9+
source = "hashicorp/tls"
10+
version = ">= 4.0"
11+
}
812
}
913
}

0 commit comments

Comments
 (0)