Skip to content

Commit 73853eb

Browse files
committed
fix: add token based gh auth to setup-opentofu
1 parent dfd7267 commit 73853eb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/tf_plan_apply.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
- name: Setup OpenTofu
4141
uses: opentofu/setup-opentofu@v1
4242
with:
43+
github_token: ${{ secrets.GH_TOKEN }}
4344
tofu_wrapper: false
4445

4546
- name: GitHub Configuration
@@ -106,6 +107,8 @@ jobs:
106107
# Install the latest version of OpenTofu CLI and configure the OpenTofu CLI configuration file with a OpenTofu Cloud user API token
107108
- name: Setup OpenTofu
108109
uses: opentofu/setup-opentofu@v1
110+
with:
111+
github_token: ${{ secrets.GH_TOKEN }}
109112

110113
- name: GitHub Configuration
111114
run: git config --global url."https://oauth2:${{ secrets.GH_TOKEN }}@github.com".insteadOf https://github.com

0 commit comments

Comments
 (0)