Skip to content

Commit d369d05

Browse files
committed
test: use GH_TOKEN env for git auth
1 parent ad77753 commit d369d05

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/tf_plan_apply.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,13 @@ jobs:
5353

5454
- name: GitHub Configuration
5555
run: |
56-
env
56+
gh auth status
5757
echo https://oauth2:${{ secrets.GH_TOKEN }}@github.com > ${HOME}/.git-credentials
5858
5959
# Initialize a new or existing OpenTofu working directory by creating initial files, loading any remote state, downloading modules, etc.
6060
- name: OpenTofu Init
61+
env:
62+
TF_TOKEN_github_com: ${{ secrets.GH_TOKEN }}
6163
run: |
6264
tofu init \
6365
-backend-config="resource_group_name=${{ env.ENVIRONMENT_NAME }}-tf-azure-admin" \

0 commit comments

Comments
 (0)