Skip to content

Commit 07722ae

Browse files
committed
Add step to login github
1 parent ab7ced8 commit 07722ae

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/terraform.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ on:
1616
aws-iam-role-arn:
1717
required: true
1818
type: string
19+
secrets:
20+
github-token:
21+
description: Token to download Terraform modules from GitHub
22+
required: true
1923

2024
permissions:
2125
id-token: write
@@ -58,6 +62,10 @@ jobs:
5862
with:
5963
terraform_wrapper: false
6064

65+
- name: Setup Git for Private Modules
66+
run: |
67+
git config --global url."https://mehr74:${{ secrets.github-token }}@github.com/optiop".insteadOf "https://github.com/optiop"
68+
6169
- name: Terraform init
6270
run: terraform -chdir=${{ inputs.path }} init -no-color
6371

0 commit comments

Comments
 (0)