Skip to content

Commit 558fe5e

Browse files
committed
test: use GH_TOKEN env for git auth
1 parent c399bfc commit 558fe5e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/tf_plan_apply.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ permissions:
1616
contents: read
1717
pull-requests: write
1818

19+
env:
20+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
21+
1922
jobs:
2023
tofu-plan:
2124
name: 'OpenTofu Plan'
@@ -48,10 +51,8 @@ jobs:
4851
tofu_wrapper: false
4952
github_token: ${{ secrets.GH_TOKEN }}
5053

51-
- name: GitHub Configuration
52-
run: |
53-
echo $HOME
54-
echo https://oauth2:${{ secrets.GH_TOKEN }}@github.com > ${HOME}/.git-credentials
54+
# - name: GitHub Configuration
55+
# run: echo https://oauth2:${{ secrets.GH_TOKEN }}@github.com > ${HOME}/.git-credentials
5556

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

0 commit comments

Comments
 (0)