Skip to content

Commit bf1bfa9

Browse files
committed
fix: use git-credentials
1 parent d369d05 commit bf1bfa9

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

.github/workflows/tf_plan_apply.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,12 @@ jobs:
4949
uses: opentofu/setup-opentofu@v1
5050
with:
5151
tofu_wrapper: false
52-
github_token: ${{ secrets.GH_TOKEN }}
5352

5453
- name: GitHub Configuration
55-
run: |
56-
gh auth status
57-
echo https://oauth2:${{ secrets.GH_TOKEN }}@github.com > ${HOME}/.git-credentials
54+
run: echo https://oauth2:${{ secrets.GH_TOKEN }}@github.com > ${HOME}/.git-credentials
5855

5956
# Initialize a new or existing OpenTofu working directory by creating initial files, loading any remote state, downloading modules, etc.
6057
- name: OpenTofu Init
61-
env:
62-
TF_TOKEN_github_com: ${{ secrets.GH_TOKEN }}
6358
run: |
6459
tofu init \
6560
-backend-config="resource_group_name=${{ env.ENVIRONMENT_NAME }}-tf-azure-admin" \
@@ -120,11 +115,6 @@ jobs:
120115
# Install the latest version of OpenTofu CLI and configure the OpenTofu CLI configuration file with a OpenTofu Cloud user API token
121116
- name: Setup OpenTofu
122117
uses: opentofu/setup-opentofu@v1
123-
# with:
124-
# github_token: ${{ secrets.GH_TOKEN }}
125-
126-
# - name: GitHub Configuration
127-
# run: git config --global url."https://oauth2:${{ secrets.GH_TOKEN }}@github.com".insteadOf https://github.com
128118

129119
# Initialize a new or existing OpenTofu working directory by creating initial files, loading any remote state, downloading modules, etc.
130120
- name: OpenTofu Init

0 commit comments

Comments
 (0)