Skip to content

Commit

Permalink
Store credentials in a file
Browse files Browse the repository at this point in the history
  • Loading branch information
m110 committed Aug 29, 2024
1 parent 530724d commit 9a7f27b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@ jobs:
run: terraform fmt -check
continue-on-error: true

- run: echo -n "$CREDENTIALS" > /root/credentials.json
env:
CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}

- id: init
run: terraform init
env:
GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
GOOGLE_APPLICATION_CREDENTIALS: /root/credentials.json

- id: validate
run: terraform validate -no-color | tee validation
Expand Down

0 comments on commit 9a7f27b

Please sign in to comment.