File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 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-
2015resource "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}
Original file line number Diff line number Diff 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+
3946variable "github_organisation" {
4047 description = " GitHub organisation name."
4148 type = string
You can’t perform that action at this time.
0 commit comments